Skip to content

Commit f599308

Browse files
committed
Update IntArray Attr Constraints
1 parent 27e8333 commit f599308

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

clang/include/clang/CIR/Dialect/IR/CIRAttrConstraints.td

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,11 @@
1515

1616
include "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-
2318
//===----------------------------------------------------------------------===//
2419
// IntAttr constraints
2520
//===----------------------------------------------------------------------===//
2621

27-
def CIR_AnyIntAttr : CIR_AttrConstraint<"::cir::IntAttr", "integer attribute">;
22+
def CIR_AnyIntAttr : Attr<CPred<"mlir::isa<cir::IntAttr>($_self)">, "integer attribute">;
2823

2924
//===----------------------------------------------------------------------===//
3025
// FPAttr constraints

0 commit comments

Comments
 (0)