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 :-)

Thoughts?

Cheers,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047
_______________________________________________
llvm-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to