[LLVMdev] Trouble using the MCJIT: "Target does not support MC emission" error
grosbach at apple.com
Thu Aug 25 09:52:57 CDT 2011
You may want to have a look at lli in the llvm codebase. It can use the MCJIT for x86_64, so will have examples of all the setup required.
Do note, however, that the MCJIT is relatively feature limited at this point. It's not (yet) a drop-in replacement for the old JIT.
On Aug 25, 2011, at 4:16 AM, Matt Pharr wrote:
> I'm trying to wire up some code to use the MC-based JIT; my understanding is that it should be able to JIT AVX code (and that the regular JIT cannot). However, I'm getting the error "Target does not support MC emission!" when I call EngineBuilder::create(). I assume that I'm just not doing something necessary for initialization, but I'm not sure what it would be--I am calling all of:
> and the module I'm trying to load does have a reasonable target:
> target triple = "x86_64-apple-darwin11.0.0"
> I've attached a short test case that has the sequence of calls that I'm making and one of the bitcode files I'm trying to use. I'd be happy for any guidance or suggestions.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the LLVMdev