search for: x86targetmachine_8cpp_source

Displaying 2 results from an estimated 2 matches for "x86targetmachine_8cpp_source".

2018 Jan 20
1
No Targets in TargetRegistry
This is from https://stackoverflow.com/questions/48360685/no-targets-in-targetregistry I have the following code, which should get the default llvm::Target. auto const targetTriple = llvm::sys::getDefaultTargetTriple(); llvm_module.setTargetTriple(targetTriple); std::string error; auto const * target = llvm::TargetRegistry::lookupTarget(targetTriple, error); if (target ==
2018 Jan 23
0
MachineVerifier and undef
...gt; > Content-Type: text/plain; charset="utf-8" > > Not sure. But when doing this in the C-Api, you've to initialize/add the > Targets first. It'll not run with all buildin-targets by default. > As an example: LLVMInitializeX86Target > <http://llvm.org/doxygen/X86TargetMachine_8cpp_source.html#l00068> > This is for the C-API, so i think similar things apply to the C++ API the > C-API is based on. > > 2018-01-20 22:32 GMT+01:00 Brent Lewis via llvm-dev <llvm-dev at lists.llvm.org >>: > >> This is from https://stackoverflow.com/questions/48360685/no-ta...