[llvm] [DebugInfo][NVPTX] Adding support for `inlined_at` debug directive in NVPTX backend (PR #170239)

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 08:27:01 PST 2025


================
@@ -2204,13 +2204,26 @@ void DwarfDebug::beginInstruction(const MachineInstr *MI) {
       Flags |= DWARF2_FLAG_IS_STMT;
   }
 
-  RecordSourceLine(DL, Flags);
+  // Call target-specific source line recording.
+  recordTargetSourceLine(*MI, DL, Flags);
----------------
jmorse wrote:

This leads to three ways to emit a source-line in this function:
 * `recordSourceLine`,
 * `RecordSourceLine` (a helper lambda around the former,)
 * `recordTargetSourceLine

Which has the potential to be confusing -- would it be alright to always call `recordTargetSourceLine` from the helper lambda perhaps, just to reduce the number of options?

https://github.com/llvm/llvm-project/pull/170239


More information about the llvm-commits mailing list