search for: llvm_tablegen

Displaying 17 results from an estimated 17 matches for "llvm_tablegen".

2020 Jul 14
2
[Beginner] Understanding Tablegen language
...> know of learning how this works. I haven't seen a separate guide, > although it would be very cool if one existed. FWIW, there are also some third-party resources that may be of help: "Lessons in TableGen" FOSDEM 2019; Nicolai Hähnle https://fosdem.org/2019/schedule/event/llvm_tablegen/ Slides: https://archive.fosdem.org/2019/schedule/event/llvm_tablegen/attachments/slides/3304/export/events/attachments/llvm_tablegen/slides/3304/tablegen.pdf Series: - What has TableGen ever done for us?: http://nhaehnle.blogspot.com/2018/02/tablegen-1-what-has-tablegen-ever-done.html - Functio...
2020 Jul 15
2
[Beginner] Understanding Tablegen language
...separate guide, >> > although it would be very cool if one existed. >> >> FWIW, there are also some third-party resources that may be of help: >> >> "Lessons in TableGen" >> FOSDEM 2019; Nicolai Hähnle >> https://fosdem.org/2019/schedule/event/llvm_tablegen/ >> Slides: >> >> https://archive.fosdem.org/2019/schedule/event/llvm_tablegen/attachments/slides/3304/export/events/attachments/llvm_tablegen/slides/3304/tablegen.pdf >> >> Series: >> - What has TableGen ever done for us?: >> >> http://nhaehnle.blogs...
2011 Nov 02
1
[LLVMdev] RFC: Upcoming Build System Changes
...e build, although that is currently used only when cross-compiling. I guess that the Makefile-based build does the same. Expanding its application for debug builds is simple, although some time measurements should be performed before adding the feature. In the meantime, interested users can set the LLVM_TABLEGEN variable, which allows to use an arbitrary tblgen executable. So if you have an optimized tblgen around, you can already use it for debug builds.
2013 Nov 02
2
[LLVMdev] Clang can't be built out of tree on windows
This seems to be a CMake issue that I just can't figure out. The only reason I'm sending an email to llvmdev is in hope of getting the attention of more CMake ninjas (I'm not subscribed to this list so please reply to all). By "out of source" I mean llvm at c:/llvm and clang at c:/clang and both are configured separately so that I get two solutions. Basically
2020 Jul 13
2
[Beginner] Understanding Tablegen language
Hi, I am new to LLVM and I find TableGen language really cryptic. The reference manual to the language is not helpful either. I can look at the existing .td file and reverse engineer but I am looking for a detailed manual. Specifically, I have below questions: 1. What is a basic syntax for writing a dag? From the lang ref manual I can see that its something like operator followed by ArgList which
2018 Sep 22
2
can't build/run after adding lib to Fibonacci example, even reverting the complete llvm tree does not help
first: thank you for helping out >I might try compiling your source from the VS's Developer Command Prompt: >cmake --build . --target Fibonacci >Does this work? call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat" cd llvm-build cmake --build . --config Debug --target Fibonacci building Fibonacci example works BUT
2017 May 29
3
Should we split llvm Support and ADT?
...s modified, as > this usually triggers recompilation of large parts of LLVM. > Tablegen built in debug is really slow though, I remember an out-of-tree backend where running llvm-tblgen was taking up to 5 min per file! The CMake option LLVM_OPTIMIZED_TABLEGEN helps a lot with this. Otherwise LLVM_TABLEGEN is even more efficient, but it's a double-edged sword. But we could also use the diff-and-copy approach not on the tablegen output but on the llvm-tblgen binary itself, that way we wouldn't re-run it when it does not change itself (I'm not sure why CMake does not use this strategy by d...
2011 Nov 02
0
[LLVMdev] RFC: Upcoming Build System Changes
Just for informational purposes on a smaller system (Core 2 Duo MacBook Pro): make none X86.td X86InstrInfo.cpp real 11.568 217% 76.283 177% 34.435 169% user 7.726 141% 70.659 100% 25.608 116% sys 3.234 111% 3.992 100% 6.438 104% make -j2 none X86.td X86InstrInfo.cpp real 7.7346 145% 43.138 100% 25.77 127% user 7.6072 139% 70.414 100% 26.589 121% sys 3.2492 111% 3.984 100%
2017 May 29
3
Should we split llvm Support and ADT?
...ion of large parts of LLVM. >>> >> >> Tablegen built in debug is really slow though, I remember an out-of-tree >> backend where running llvm-tblgen was taking up to 5 min per file! >> The CMake option LLVM_OPTIMIZED_TABLEGEN helps a lot with this. Otherwise >> LLVM_TABLEGEN is even more efficient, but it's a double-edged sword. >> >> But we could also use the diff-and-copy approach not on the tablegen >> output but on the llvm-tblgen binary itself, that way we wouldn't re-run it >> when it does not change itself (I'm not sure why CM...
2014 Mar 17
2
[LLVMdev] cross-compiling current trunk fails
Hi, cross-compiling LLVM on the ppc64 architecture fails with: make[1]: *** No rule to make target `../build/llvm-r204075/BuildTools/Debug+Asserts/bin/llvm-tblgen', needed by `../build/llvm-r204075/lib/IR/Debug+Asserts/Intrinsics.gen.tmp'. Stop. make[1]: *** Waiting for unfinished jobs.... this fails for me for r204075 (today) and r203443. Configuration details: $LLVMPATH/configure
2011 Nov 02
5
[LLVMdev] RFC: Upcoming Build System Changes
Hello John. John Criswell <criswell at illinois.edu> writes: [snip] > I did not use CMake but the standard autoconf + Makefile build. > > Not sure if this helps, but here it is, for what it's worth. Very interesting, thanks! CMake introduces more parallelism and it would be great to see how much impact it makes. If you can, please run the cmake build with -j32, just to
2017 May 29
3
Should we split llvm Support and ADT?
...ion of large parts of LLVM. >>> >> >> Tablegen built in debug is really slow though, I remember an out-of-tree >> backend where running llvm-tblgen was taking up to 5 min per file! >> The CMake option LLVM_OPTIMIZED_TABLEGEN helps a lot with this. Otherwise >> LLVM_TABLEGEN is even more efficient, but it's a double-edged sword. >> >> But we could also use the diff-and-copy approach not on the tablegen >> output but on the llvm-tblgen binary itself, that way we wouldn't re-run it >> when it does not change itself (I'm not sure why CM...
2017 May 27
8
Should we split llvm Support and ADT?
It's that TableGen depends on Support, so if you change one file in support, support gets recompiled into a new static archive, which triggers a rerun of tablegen on all the tablegen inputs, which is extremely slow. On Fri, May 26, 2017 at 5:56 PM Hal Finkel <hfinkel at anl.gov> wrote: > > > On 05/26/2017 07:47 PM, Zachary Turner via llvm-dev wrote: > > Changing a header
2016 Jul 23
3
[llvm-toolchain v3.8.1] LTO: Linking clang hangs with ld.gold and LLVMgold.so plugin
> On Jul 23, 2016, at 1:53 PM, Sedat Dilek via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > > On Sat, Jul 23, 2016 at 7:48 PM, Piotr Padlewski <prazek at google.com <mailto:prazek at google.com>> wrote: >> How big is your project? >> LTO eats RAM even faster than chrome. For example linking clang with LTO >>
2016 Mar 17
2
Building with LLVM_PARALLEL_XXX_JOBS
On Mon, Mar 14, 2016 at 5:30 PM, Chris Bieneman <cbieneman at apple.com> wrote: [ brutal-snip ] ... > [ TODO#S: Before doing a 2nd build (and in a 3rd run using more > optimized binaries) ] > > How do I anable LTO via CMAKE? > > > LLVM_ENALBLE_LTO=On > [ v4 of my build-script attached ] Hi Chris, thanks for the response! That seems to work (see below). $ cd
2017 Feb 11
2
Asan self host problems: Failed to deallocate
Trying to run a self host "ninja check-clang" with ASan enabled I hit a /lot/ of errors like this (strangely I hit none of these in check-llvm, only in check-clang): Any ideas? ==10525==ERROR: AddressSanitizer failed to deallocate 0x10800 (67584) bytes at address 0x631000014800 ==10525==AddressSanitizer CHECK failed:
2017 Feb 15
2
Asan self host problems: Failed to deallocate
...rmance. LLVM_PROFDATA_FILE:FILEPATH= //Path to a library. LLVM_PTHREAD_LIBRARY_PATH:FILEPATH=/usr/lib/x86_64-linux-gnu/libpthread.so //Value Computed by CMake LLVM_SOURCE_DIR:STATIC=/usr/local/google/home/blaikie/dev/llvm/src //Native TableGen executable. Saves building one when cross-compiling. LLVM_TABLEGEN:STRING=llvm-tblgen //Semicolon-separated list of targets to build, or "all". LLVM_TARGETS_TO_BUILD:STRING=all //Set target to use for LLVM JIT or use "host" for automatic detection. LLVM_TARGET_ARCH:STRING=host //Path for binary subdirectory (defaults to 'bin') LLVM_T...