aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorHari Limaye <hari.limaye@arm.com>2024-07-25 09:03:48 +0100
committerGitHub <noreply@github.com>2024-07-25 09:03:48 +0100
commitdc1c00f6b13f724154f9883990f8b21fb8dcccef (patch)
treea87b34157f3555ef86b84de05477bd53bdcdbf6a /lldb/source/Plugins/ScriptInterpreter/Python
parent91450f1b57b34034376662dae5452af8c992c103 (diff)
downloadllvm-dc1c00f6b13f724154f9883990f8b21fb8dcccef.zip
llvm-dc1c00f6b13f724154f9883990f8b21fb8dcccef.tar.gz
llvm-dc1c00f6b13f724154f9883990f8b21fb8dcccef.tar.bz2
[StackFrameLayoutAnalysis] Use target-specific hook for SP offsets (#100386)
StackFrameLayoutAnalysis currently calculates SP-relative offsets in a target-independent way via MachineFrameInfo offsets. This is incorrect for some Targets, e.g. AArch64, when there are scalable vector stack slots. This patch adds a virtual function to TargetFrameLowering to provide offsets from SP, with a default implementation matching what is currently used in StackFrameLayoutAnalysis, and refactors StackFrameLayoutAnalysis to use this function. Only non-zero scalable offsets are output by the analysis pass. An implementation of this function is added for AArch64 targets, which aims to provide correct SP offsets in most cases.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions