================
@@ -20,6 +20,17 @@ class CIR_IsAttrPred<code attr> : CPred<"::mlir::isa<" # 
attr # ">($_self)">;
 class CIR_AttrConstraint<code attr, string summary = "">
     : Attr<CIR_IsAttrPred<attr>, summary>;
 
+//===----------------------------------------------------------------------===//
+// DistinctAttr constraints
+//===----------------------------------------------------------------------===//
+
+def CIR_AnyDistinctAttr : CIR_AttrConstraint<"::mlir::DistinctAttr",
+  "distinct attribute"> {
+  let storageType = "::mlir::DistinctAttr";
+  let returnType = "::mlir::DistinctAttr";
+  let convertFromStorage = "$_self";
+}
----------------
xlauko wrote:

I believe this should go to core mlir as it wraps code attribute.

https://github.com/llvm/llvm-project/pull/235052
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to