summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/SVEInstrFormats.td
diff options
context:
space:
mode:
authorjasonliu <jasonliu.development@gmail.com>2020-01-10 16:15:46 +0000
committerjasonliu <jasonliu.development@gmail.com>2020-01-10 17:33:35 +0000
commitdfed052fb3ecef53bf01612ec3fc7df73c2134b7 (patch)
treee00408a83c6be76318d52801689777815df5ef8f /llvm/lib/Target/AArch64/SVEInstrFormats.td
parentff92e469caefff9f86e5e812c08b9bba582be5d3 (diff)
downloadbcm5719-llvm-dfed052fb3ecef53bf01612ec3fc7df73c2134b7.tar.gz
bcm5719-llvm-dfed052fb3ecef53bf01612ec3fc7df73c2134b7.zip
[AIX] Allow vararg calls when all arguments reside in registers
Summary: This patch pushes the AIX vararg unimplemented error diagnostic later and allows vararg calls so long as all the arguments can be passed in register. This patch extends the AIX calling convention implementation to initialize GPR(s) for vararg float arguments. On AIX, both GPR(s) and FPR are allocated for floating point arguments. The GPR(s) are only initialized for vararg calls, otherwise the callee is expected to retrieve the float argument in the FPR. f64 in AIX PPC32 requires special handling in order to allocated and initialize 2 GPRs. This is performed with bitcast, SRL, truncation to initialize one GPR for the MSW and bitcast, truncations to initialize the other GPR for the LSW. A future patch will follow to add support for arguments passed on the stack. Patch provided by: cebowleratibm Reviewers: sfertile, ZarkoCA, hubert.reinterpretcast Differential Revision: https://reviews.llvm.org/D71013
Diffstat (limited to 'llvm/lib/Target/AArch64/SVEInstrFormats.td')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud