[cfe-dev] Code Generator

Anton Korobeynikov anton at korobeynikov.info
Fri Nov 6 07:48:29 PST 2009


> Using... clang -O2 -S -c foo.c ... I get assembly code for an x86
> architecture. However, where is the assembly code generator?
clang itself generates just LLVM IR and then uses LLVM for all the
stuff like optimization, codegeneration, etc.

> I just need a guide how to start.
http://llvm.org/docs/ contains some (small) amount of useful
information. In your case - you need to modify emitPrologue() and
emitEpilogue() methods of the X86RegisterInfo class.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list