Debug var, expr and loc were only supported for non-fixed stack objects.
This patch adds the following fields to the "fixedStack:" entries, and renames the ones from "stack:" to:
- debug-info-variable
- debug-info-expression
- debug-info-location
Paths
| Differential D46032
[MIR] Add support for debug metadata for fixed stack objects ClosedPublic Authored by thegameg on Apr 24 2018, 3:54 PM.
Details Summary Debug var, expr and loc were only supported for non-fixed stack objects. This patch adds the following fields to the "fixedStack:" entries, and renames the ones from "stack:" to:
Diff Detail Event Timeline
thegameg marked 2 inline comments as done. Comment Actions
thegameg marked 2 inline comments as done. Comment ActionsAdd comment for int Slot;.
Comment Actions
Alright, fair enough. Thanks Francis, this LGTM. This revision is now accepted and ready to land.Apr 25 2018, 8:27 AM Closed by commit rL330859: [MIR] Add support for debug metadata for fixed stack objects (authored by thegameg). · Explain WhyApr 25 2018, 12:01 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 143826 include/llvm/CodeGen/MIRYamlMapping.h
include/llvm/CodeGen/MachineFunction.h
lib/CodeGen/MIRParser/MIRParser.cpp
lib/CodeGen/MIRPrinter.cpp
test/CodeGen/MIR/X86/callee-saved-info.mir
test/CodeGen/MIR/X86/fixed-stack-di.mir
test/CodeGen/MIR/X86/spill-slot-fixed-stack-objects.mir
test/CodeGen/X86/fixed-stack-di-mir.ll
|
I find that spelling weird: I would either go for the full debug-info-variable, or debug-variable, or dbg-variable, if it has to be lower-case.