[Mlir-commits] [mlir] [MLIR][LLVM] Add DILocAttr for debug locations (PR #186146)

Christian Ulmann llvmlistbot at llvm.org
Thu Mar 12 23:36:18 PDT 2026


================
@@ -642,6 +642,35 @@ def LLVM_DILexicalBlockFile : LLVM_Attr<"DILexicalBlockFile", "di_lexical_block_
   let genMnemonicAlias = 1;
 }
 
+//===----------------------------------------------------------------------===//
+// DILocAttr
+//===----------------------------------------------------------------------===//
+
+def LLVM_DILocAttr : LocationAttrDef<LLVM_Dialect, "DILoc"> {
+  let description = [{
+    Represents a debug location combining a source position and a debug info
+    scope for instruction-level and function-level debug locations.
+
+    Note: Older code represented this with a FusedLoc carrying the debug
----------------
Dinistro wrote:

```suggestion
    Note: Older code represent this with a FusedLoc carrying the debug
```

Nit: This is not a thing of the past, so I suggest to not formulate it like that. 

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


More information about the Mlir-commits mailing list