[LLVMdev] Proper values for LLVMCreateTargetMachine
dmitry at kernelgen.org
Wed Dec 26 15:26:26 PST 2012
In this example either Host or NVPTX target machine is created and then
used for code generation:
This example in turn was long ago studied from llc.cpp, I think.
So the basic idea is first to select triple, then create target for this
triple, then create target machine from target, triple and extra
If you are compiling for native host, default triple would suffice:
Hope it helps.
2012/12/26 Timothy Baldridge <tbaldridge at gmail.com>
> I can't seem to get LLVMCreateTargetMachine to work on my box (MBP i7 OS X
> 10.8). What should the values of triple, cpu and features be? I'm just
> looking for a way to get this up and going for now, I don't need specific
> No matter what I send the function, I always get nil back. I'm giving it
> LLVMGetFirstTarget as the target value.
> Thanks for the help,
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev