[Mlir-commits] [mlir] [MLIR][LLVM] Support dso_local_equivalent constants (PR #132131)

Tobias Gysi llvmlistbot at llvm.org
Fri Mar 21 12:52:14 PDT 2025


================
@@ -1213,6 +1213,17 @@ def LLVM_UndefAttr : LLVM_Attr<"Undef", "undef">;
 /// Folded into from LLVM::PoisonOp.
 def LLVM_PoisonAttr : LLVM_Attr<"Poison", "poison">;
 
+//===----------------------------------------------------------------------===//
+// DSOLocalEquivalentAttr
+//===----------------------------------------------------------------------===//
+
+/// Folded into from LLVM::DSOLocalEquivalentOp.
+def LLVM_DSOLocalEquivalentAttr : LLVM_Attr<"DSOLocalEquivalent",
+                                            "dso_local_equivalent"> {
----------------
gysit wrote:

Ok that would have to be implemented similar to FlatSymbolRefAttr then (in code https://github.com/llvm/llvm-project/blob/052a4b54a75364f13ea5001bba00691da4d8c239/mlir/include/mlir/IR/BuiltinAttributes.h#L869). Let's not do that then. 

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


More information about the Mlir-commits mailing list