summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-01-14 17:45:36 +0000
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>2013-01-14 17:45:36 +0000
commit924c478827ee3a21b669c2f65f9a76b15567f852 (patch)
tree43a8277dd1773b129aa84f8a452946808509d794 /clang/lib/Lex/ModuleMap.cpp
parent6ddfca91e04e62089d685b31533b9a2d677d9a5e (diff)
downloadbcm5719-llvm-924c478827ee3a21b669c2f65f9a76b15567f852.tar.gz
bcm5719-llvm-924c478827ee3a21b669c2f65f9a76b15567f852.zip
This patch addresses varargs processing for small complex types under
the 64-bit PowerPC ELF ABI. The ABI requires that the real and imaginary parts of a complex argument each occupy their own doubleword. Arguments smaller than 8 bytes are right-adjusted within the doubleword. Clang expects EmitVAARG() to return a pointer to a structure in which the real and imaginary parts are packed adjacently in memory. To accomplish this, we generate code to load the code appropriately from the varargs location and pack the values into a temporary variable in the form Clang expects, returning a pointer to that structure. The test case demonstrates correct code generation for all "small" complex types on PPC64: int, short, char, and float. llvm-svn: 172438
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud