[llvm] Add support for NSDI DebugLine and DebugNoLine. (PR #215851)

Manuel Carrasco via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 07:42:02 PDT 2026


================
@@ -167,6 +171,16 @@ class SPIRVNonSemanticDebugHandler : public DebugHandlerBase {
 
   bool DebugFunctionDefinitionEmitted = false;
 
+  struct DebugLineState {
+    MCRegister SrcReg;
+    unsigned Line;
+    unsigned Col;
+  };
+  const MachineBasicBlock *CurLineMBB = nullptr;
+  std::optional<DebugLineState> CurLineState;
+
+  bool EmitDebugLineForCurrentFn = false;
----------------
mgcarrasco wrote:

Thanks! Simplified it.

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


More information about the llvm-commits mailing list