[LLVMdev] Argument Lowering

Duncan Sands baldrick at free.fr
Tue Feb 12 02:59:52 PST 2013


Rather than trying to have LLVM codegen take care of ABI issues (which means
passing all kinds of extra information in the IR), another possibility is to
have LLVM provide a helper library for generating correct IR.  You would say
to the library: my parameter is a union type with these fields (described
using C/C++ language concepts such as unions, POD etc), and it would tell you
what IR to output (or output it for you).  This library could then be used by
clang and every front-end confronted with ABI issues.  There is a bug report
about this somewhere.

Ciao, Duncan.



More information about the llvm-dev mailing list