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

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Oct 18 11:16:55 PDT 2012


Turns out that references should also go in registers. An updated
clang patch is attached. The llvm side stays the same.

On 18 October 2012 10:42, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:
> 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: clang.patch
Type: application/octet-stream
Size: 5406 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121018/abd961c0/attachment.obj>


More information about the llvm-commits mailing list