summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
diff options
context:
space:
mode:
authorCullen Rhodes <cullen.rhodes@arm.com>2019-08-05 13:44:10 +0000
committerCullen Rhodes <cullen.rhodes@arm.com>2019-08-05 13:44:10 +0000
commit2a4817637350661b9002c10ff830241697e0f639 (patch)
tree297a5e20b04c064d003d2847c5dac68645186ea9 /llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp
parent8b8f66d9935a1523a73b20e879851062ed9026f2 (diff)
downloadbcm5719-llvm-2a4817637350661b9002c10ff830241697e0f639.tar.gz
bcm5719-llvm-2a4817637350661b9002c10ff830241697e0f639.zip
[AArch64] Implement initial SVE calling convention support
Summary: This patch adds initial support for the SVE calling convention such that SVE types can be passed as arguments and return values to/from a subroutine. The SVE AAPCS states [1]: z0-z7 are used to pass scalable vector arguments to a subroutine, and to return scalable vector results from a function. If a subroutine takes arguments in scalable vector or predicate registers, or if it is a function that returns results in such registers, it must ensure that the entire contents of z8-z23 are preserved across the call. In other cases it need only preserve the low 64 bits of z8-z15, as described in ยง5.1.2. p0-p3 are used to pass scalable predicate arguments to a subroutine and to return scalable predicate results from a function. If a subroutine takes arguments in scalable vector or predicate registers, or if it is a function that returns results in these registers, it must ensure that p4-p15 are preserved across the call. In other cases it need not preserve any scalable predicate register contents. SVE predicate and data registers are passed indirectly (i.e. spilled to the stack and pass the address) if they exceed the registers used for argument passing defined by the PCS referenced above. Until SVE stack support is merged we can't spill SVE registers to the stack, so currently an llvm_unreachable is used where we will eventually handle this. [1] https://static.docs.arm.com/100986/0000/100986_0000.pdf Reviewed By: ostannard Differential Revision: https://reviews.llvm.org/D65448 llvm-svn: 367859
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/SymbolDumper.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud