[PATCH] D90020: [AArch64][SVE] Emit DWARF location expression for SVE stack objects.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 03:03:20 PDT 2020


sdesmalen created this revision.
sdesmalen added reviewers: efriedma, aprantl, ctetreau, momchil.velikov.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: rengolin.
Herald added a project: LLVM.
sdesmalen requested review of this revision.

Extend PEI to emit a DWARF expression for StackOffsets that have
a fixed and scalable component. This means the expression that needs
to be added is either:

  <base> + offset

or:

  <base> + offset + scalable_offset * scalereg

where for SVE, the scale reg is the Vector Granule Dwarf register, which
encodes the number of 64bit 'granules' in an SVE vector and which
the debugger can evaluate at runtime.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90020

Files:
  llvm/include/llvm/CodeGen/TargetRegisterInfo.h
  llvm/include/llvm/IR/DebugInfoMetadata.h
  llvm/lib/CodeGen/PrologEpilogInserter.cpp
  llvm/lib/IR/DebugInfoMetadata.cpp
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.h
  llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
  llvm/lib/Target/AArch64/AArch64RegisterInfo.h
  llvm/test/CodeGen/AArch64/debug-info-sve-dbg-value.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90020.300205.patch
Type: text/x-patch
Size: 19977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201023/cd0fa024/attachment.bin>


More information about the llvm-commits mailing list