[Mlir-commits] [mlir] [MLIR][LLVM] Add DILocAttr for debug locations (PR #186146)
Krzysztof Drewniak
llvmlistbot at llvm.org
Thu Mar 12 08:46:56 PDT 2026
================
@@ -642,6 +642,33 @@ 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. Replaces the convention-based FusedLoc encoding for instruction-level
----------------
krzysz00 wrote:
I think this could be a second paragraph and something of a parenthetical note - something like "(Note: older code represented this with a `FusedLoc` and a convention on how to interpret it)"
https://github.com/llvm/llvm-project/pull/186146
More information about the Mlir-commits
mailing list