[all-commits] [llvm/llvm-project] c4d2d4: [Debugify] Support checking Machine IR debug info

xiangzh1 via All-commits all-commits at lists.llvm.org
Mon Dec 14 17:54:26 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c4d2d4337d50bed3cafd564daece1a197005b22b
      https://github.com/llvm/llvm-project/commit/c4d2d4337d50bed3cafd564daece1a197005b22b
  Author: Xiang1 Zhang <xiang1.zhang at intel.com>
  Date:   2020-12-14 (Mon, 14 Dec 2020)

  Changed paths:
    M llvm/docs/HowToUpdateDebugInfo.rst
    M llvm/include/llvm/CodeGen/Passes.h
    M llvm/include/llvm/CodeGen/TargetPassConfig.h
    M llvm/include/llvm/InitializePasses.h
    M llvm/lib/CodeGen/CMakeLists.txt
    M llvm/lib/CodeGen/CodeGen.cpp
    A llvm/lib/CodeGen/MachineCheckDebugify.cpp
    M llvm/lib/CodeGen/MachineDebugify.cpp
    M llvm/lib/CodeGen/TargetPassConfig.cpp
    A llvm/test/CodeGen/Generic/MIRDebugify/check-line-and-variables-x.mir
    A llvm/test/CodeGen/Generic/MIRDebugify/check-line-and-variables.ll
    A llvm/test/CodeGen/Generic/MIRDebugify/check-line-and-variables.mir
    M llvm/test/CodeGen/Generic/MIRDebugify/locations-and-values.mir
    M llvm/utils/gn/secondary/llvm/lib/CodeGen/BUILD.gn

  Log Message:
  -----------
  [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




More information about the All-commits mailing list