diff options
| author | Momchil Velikov <momchil.velikov@arm.com> | 2023-11-15 09:27:01 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-15 09:27:01 +0000 |
| commit | dedf2c6bb5193652f6ad7d9ff9e676624c2485b7 (patch) | |
| tree | 60fd4dbeb6ce321b49d1cae96f84cd8d05a16121 /clang/lib/CodeGen/CGDebugInfo.cpp | |
| parent | 1b781ee9284ded54aabd88690a726b615c29cc2d (diff) | |
| download | llvm-dedf2c6bb5193652f6ad7d9ff9e676624c2485b7.zip llvm-dedf2c6bb5193652f6ad7d9ff9e676624c2485b7.tar.gz llvm-dedf2c6bb5193652f6ad7d9ff9e676624c2485b7.tar.bz2 | |
[AArch64] Refactor allocation of locals and stack realignment (#72028)
Factor out some stack allocation in a separate function. This patch
splits out the generic portion of a larger refactoring done as a part of
stack clash protection support.
The patch is almost, but not quite NFC. The only difference should
be that where we have adjacent allocation of stack space
for local SVE objects and non-local SVE objects the order
of `sub sp, ...` and `addvl sp, ...` instructions is reversed, because now
it's done with a single call to `emitFrameOffset` and it happens
add/subtract the fixed part before the scalable part, e.g.
addvl sp, sp, #-2
sub sp, sp, #16, lsl #12
sub sp, sp, #16
becomes
sub sp, sp, #16, lsl #12
sub sp, sp, #16
addvl sp, sp, #-2
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions
