[PATCH] D85746: [DebugInstrRef][2/9] Parse debug instruction-references from/to MIR
Jeremy Morse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 11 09:12:56 PDT 2020
jmorse created this revision.
jmorse added a reviewer: debug-info.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
jmorse requested review of this revision.
This patch defines a MIR format for debug instruction references: it's an integer trailing an instruction, marked out by "debug-instr-number", much like how "debug-location" identifies the DebugLoc metadata of an instruction. I'm not wed to this name, or particularly to this syntax, but something is needed.
I've added a round-trip test and two verifier checks: that we don't label meta-instructions as generating values, and that there are no duplicates.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85746
Files:
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MIRParser/MILexer.cpp
llvm/lib/CodeGen/MIRParser/MILexer.h
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/MIRParser/MIRParser.cpp
llvm/lib/CodeGen/MIRPrinter.cpp
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/DebugInfo/MIR/InstrRef/instr-ref-roundtrip.mir
llvm/test/DebugInfo/MIR/InstrRef/no-duplicates.mir
llvm/test/DebugInfo/MIR/InstrRef/no-metainstrs.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85746.284775.patch
Type: text/x-patch
Size: 11646 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/08ff0c2c/attachment.bin>
More information about the llvm-commits
mailing list