[LLVMdev] Missing ExecutionEngine EngineKind::MCJIT ?

Josh Klontz josh.klontz at gmail.com
Sat Dec 22 19:47:04 PST 2012


Greetings, I have a simple C++ EDSL working using the JIT execution engine.
When I upgraded to LLVM 3.2 (effortless upgrade, awesome stuff!) I thought I
would try taking the MCJIT for a spin after having read that the JIT is
considered to be "legacy".

So the changes I made to my code were:
+ #include <llvm/ExecutionEngine/MCJIT.h>
- #include <llvm/ExecutionEngine/JIT.h>
+ llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES mcjit native)
- llvm_map_components_to_libraries(REQ_LLVM_LIBRARIES jit native)

However the following call now returns NULL:
EngineBuilder(TheModule).setEngineKind(EngineKind::JIT).setErrorStr(&error).create();

There doesn't appear to be an EngineKind::MCJIT option. Am I missing
something? Should EDSL authors stick to the old JIT for now? Is this a patch
a relative LLVM novice like myself could contribute?

Thanks!
-Josh



--
View this message in context: http://llvm.1065342.n5.nabble.com/Missing-ExecutionEngine-EngineKind-MCJIT-tp52809.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.



More information about the llvm-dev mailing list