diff options
author | Xiang1 Zhang <xiang1.zhang@intel.com> | 2020-12-16 20:23:29 -0800 |
---|---|---|
committer | Xiang1 Zhang <xiang1.zhang@intel.com> | 2020-12-16 22:17:25 -0800 |
commit | 39584ae5b5cbc817d19499b003d4eaba259c31b5 (patch) | |
tree | c6331693224b4037f59db59a6b9cd2c4891e3321 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 4ad5b634f6834331c526d0a06ade34aa35670d52 (diff) | |
download | llvm-39584ae5b5cbc817d19499b003d4eaba259c31b5.zip llvm-39584ae5b5cbc817d19499b003d4eaba259c31b5.tar.gz llvm-39584ae5b5cbc817d19499b003d4eaba259c31b5.tar.bz2 |
[Debugify] Support checking Machine IR debug info
Add mir-check-debug pass to check MIR-level debug info.
For IR-level, currently, LLVM have debugify + check-debugify to generate
and check debug IR. Much like the IR-level pass debugify, mir-debugify
inserts sequentially increasing line locations to each MachineInstr in a
Module, But there is no equivalent MIR-level check-debugify pass, So now
we support it at "mir-check-debug".
Reviewed By: djtodoro
Differential Revision: https://reviews.llvm.org/D91595
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp index 92a2b73..9492549 100644 --- a/llvm/lib/CodeGen/CodeGen.cpp +++ b/llvm/lib/CodeGen/CodeGen.cpp @@ -25,6 +25,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) { initializeBranchRelaxationPass(Registry); initializeCFGuardLongjmpPass(Registry); initializeCFIInstrInserterPass(Registry); + initializeCheckDebugMachineModulePass(Registry); initializeCodeGenPreparePass(Registry); initializeDeadMachineInstructionElimPass(Registry); initializeDebugifyMachineModulePass(Registry); |