[clang] [CIR] Add 'loop-id' to loop and branch types. (PR #235052)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 23 11:58:21 PDT 2026
================
@@ -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
More information about the cfe-commits
mailing list