Displaying 3 results from an estimated 3 matches for "alltargetsasmparsers".
2018 Mar 19
1
How to link against all available targets - problems with NVPTX?
As the question asks, I'm having some trouble using initializeAllTargets().
I have a CMakeLists that uses:
llvm_map_components_to_libnames(LLVM_LIBS ...
AllTargetsAsmParsers
AllTargetsAsmPrinters
AllTargetsDescs
AllTargetsInfos
...)
However, even with these, when I try to compile my program, I get linker
errors:
CMakeFiles/sxhc.dir/src/main.cpp.o: In function
`llvm::InitializeAllTargets()':
/home/bollu/.local/include/llvm/Config/Targets.def:27: u...
2017 Nov 28
2
TargetSelect.h and layering
...were right).
A few problems:
It seems there are users of TargetSelect.h that want pretty much every
granular split of the functionality possible. For example:
* Some executables only depend on the asm parsers and only call
InitializeAllAsmParsers (similarly for any other All*) - see the various
AllTargetsAsmParsers and similar rules in cmake/modules/LLVM-Config.cmake
* Some executables depend only on the native target support
InitializeNativeTarget* functions - see the JIT tests and the "native" and
"nativecodegen" rules in the above cmake file.
So... - any ideas? Should we just give up s...
2020 May 16
2
Building A Project Against LLVM
I've managed to get 10.0.0 working now.. there were a couple things I had
to adjust.
The Kaleidoscope example had me doing this before creating the object file:
llvm::InitializeAllTargetInfos();
llvm::InitializeAllTargets();
llvm::InitializeAllTargetMCs();
llvm::InitializeAllAsmParsers();
llvm::InitializeAllAsmPrinters();
It turns out I can get away with just this, since I'm not (yet)