[llvm] [DebugInfo][RemoveDIs] Handle non-instr debug-info in GlobalISel (PR #75228)
Stephen Tozer via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 07:25:34 PST 2023
================
@@ -204,6 +204,19 @@ class IRTranslator : public MachineFunctionPass {
/// \return true if the materialization succeeded.
bool translate(const Constant &C, Register Reg);
+ /// Examine any debug-info attached to the instruction (in the form of
+ /// DPValues) and translate it.
+ void translateDbgInfo(const Instruction &Inst,
+ MachineIRBuilder &MIRBuilder);
+
+ /// Translate a debug-info record: either a dbg.declare or dbg.value
+ /// equivalent. Pass in all the contents of the record, rather than relying
+ /// on how it's stored.
+ void translateDbgRecord(bool isDeclare, Value *V, bool hasArgList,
----------------
SLTozer wrote:
Very minor nit, should these args be capitalized?
https://github.com/llvm/llvm-project/pull/75228
More information about the llvm-commits
mailing list