[Mlir-commits] [mlir] [MLIR][LLVM] Support dso_local_equivalent constants (PR #132131)
Bruno Cardoso Lopes
llvmlistbot at llvm.org
Fri Mar 21 12:50:38 PDT 2025
================
@@ -1575,6 +1575,44 @@ def LLVM_AliasOp : LLVM_Op<"mlir.alias",
let hasRegionVerifier = 1;
}
+def LLVM_DSOLocalEquivalentOp : LLVM_Op<"dso_local_equivalent",
+ [Pure, ConstantLike, DeclareOpInterfaceMethods<SymbolUserOpInterface>]> {
+ let arguments = (ins FlatSymbolRefAttr:$function_name);
----------------
bcardosolopes wrote:
That doesn't work, we get some type issues that we don't get with `FlatSymbolRefAttr` (it probably requires teaching something special to tablegen?):
```
error: undefined type for argument #0
def LLVM_DSOLocalEquivalentOp : LLVM_Op<"dso_local_equivalent",
```
https://github.com/llvm/llvm-project/pull/132131
More information about the Mlir-commits
mailing list