[LLVMdev] Native codegen

Tom Stellard thomas.stellard at amd.com
Thu Apr 12 07:54:17 PDT 2012


On Fri, Apr 13, 2012 at 02:41:58AM +1200, James Miller wrote:
> Hi, I've just started working with LLVM, and have just finished the
> Kaleidoscope tutorial. Everything is fine, however I am finding it
> difficult to find any information on how to use the /library/ to
> generate native object files. I'm assume that it should be possible, but
> almost all of the information on llvm.org and beyond is centered around
> either JIT compilation or writing new backends for codegen.
> 
> If somebody could point me in the right direction for this, I would be
> most grateful.
> 

Take a look at the tools/llc/llc.cpp file, it is a pretty good example
of how to do this.

-Tom




More information about the llvm-dev mailing list