[llvm-commits] representing the alignment of a function argument

Rafael Espindola espindola at google.com
Fri Aug 31 10:51:14 PDT 2007

To handle calls to functions with byval arguments, the code generator
must create copies of those arguments. To do that efficiently, it
needs to know the alignment.

On x86-64, all stack arguments are 8 byte aligned. I am trying to find
out how to represent that on LLVM.

The GCC way would be to add another method to the subtarget that given
a type returns the assured stack alignment of arguments.

Another way would be to make the FE handle the stack and issue
llvm.memcpy with the correct alignment :-)


Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4

Registered in Dublin, Ireland
Registration Number: 368047

More information about the llvm-commits mailing list