[llvm-commits] [patch][pr14113] Use inreg in combination with x86_fastcallcc

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 18 07:42:50 PDT 2012


If a argument to a fastcall function should be passed in registers or
not depends on the original C type, but both "int x" and "struct {int
x;}" become just an i32 llvm argument. I think the best way to solve
this is to do what we do for the regparm attribute and use inreg to
mark the arguments that should go in registers.

The attached patches implement that. Are they OK?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: application/octet-stream
Size: 2530 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121018/95df2249/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: application/octet-stream
Size: 4925 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121018/95df2249/attachment-0001.obj>


More information about the llvm-commits mailing list