[cfe-commits] [PATCH] Add PNaCl ABIInfo

David Meyer pdox at google.com
Sun Sep 18 21:02:12 PDT 2011


Hello!

This patch:

1)
Adds ABIArgInfo::Abstract as a style of argument passing. Using this
style indicates that aggregate types should be passed and returned as
a single argument, without conversion, using their LLVM type.

void bar(struct foo x); ---> declare void @bar(%struct.foo %x)
struct foo bar(); ---> declare %struct.foo @bar()

2)
Adds PNaClABIInfo for target le32-*, which uses the Abstract passing
style for aggregate arguments in PNaCl. It may eventually be used for
return values (but LLVM CodeGen does not handle these well at the
moment).

3)
Adds a test to prevent regressions in the argument passing style for
le32-unknown-nacl.


This is the first time I've played with Clang, so I would appreciate a
thorough review! Thanks!
- David Meyer (pdox at google.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pnacl_abi.patch
Type: application/octet-stream
Size: 8316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110918/fcf2b30e/attachment.obj>


More information about the cfe-commits mailing list