File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
clang/include/clang/CIR/Dialect/IR Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1515
1616include "mlir/IR/CommonAttrConstraints.td"
1717
18+ class CIR_IsAttrPred<code attr> : CPred<"::mlir::isa<" # attr # ">($_self)">;
19+
20+ class CIR_AttrConstraint<code attr, string summary = "">
21+ : Attr<CIR_IsAttrPred<attr>, summary>;
22+
1823//===----------------------------------------------------------------------===//
1924// IntAttr constraints
2025//===----------------------------------------------------------------------===//
2126
22- def CIR_AnyIntAttr : Attr<CPred<"mlir::isa< cir::IntAttr>($_self)"> , "integer attribute">;
27+ def CIR_AnyIntAttr : CIR_AttrConstraint<":: cir::IntAttr" , "integer attribute">;
2328
2429//===----------------------------------------------------------------------===//
2530// FPAttr constraints
You can’t perform that action at this time.
0 commit comments