@@ -26,7 +26,6 @@ class PDL_Op<string mnemonic, list<Trait> traits = []>
26
26
: Op<PDL_Dialect, mnemonic, traits> {
27
27
let printer = [{ ::print(p, *this); }];
28
28
let parser = [{ return ::parse$cppClass(parser, result); }];
29
- let verifier = [{ return ::verify(*this); }];
30
29
}
31
30
32
31
//===----------------------------------------------------------------------===//
@@ -66,6 +65,7 @@ def PDL_ApplyNativeConstraintOp
66
65
params.empty() ? ArrayAttr() : $_builder.getArrayAttr(params));
67
66
}]>,
68
67
];
68
+ let hasVerifier = 1;
69
69
}
70
70
71
71
//===----------------------------------------------------------------------===//
@@ -118,6 +118,7 @@ def PDL_ApplyNativeRewriteOp
118
118
$name ($constParams^)? (`(` $args^ `:` type($args) `)`)?
119
119
(`:` type($results)^)? attr-dict
120
120
}];
121
+ let hasVerifier = 1;
121
122
}
122
123
123
124
//===----------------------------------------------------------------------===//
@@ -164,6 +165,7 @@ def PDL_AttributeOp : PDL_Op<"attribute", [NoSideEffect]> {
164
165
build($_builder, $_state, $_builder.getType<AttributeType>(), Value(), attr);
165
166
}]>,
166
167
];
168
+ let hasVerifier = 1;
167
169
}
168
170
169
171
//===----------------------------------------------------------------------===//
@@ -185,7 +187,6 @@ def PDL_EraseOp : PDL_Op<"erase", [HasParent<"pdl::RewriteOp">]> {
185
187
}];
186
188
let arguments = (ins PDL_Operation:$operation);
187
189
let assemblyFormat = "$operation attr-dict";
188
- let verifier = ?;
189
190
}
190
191
191
192
//===----------------------------------------------------------------------===//
@@ -224,6 +225,7 @@ def PDL_OperandOp
224
225
build($_builder, $_state, $_builder.getType<ValueType>(), Value());
225
226
}]>,
226
227
];
228
+ let hasVerifier = 1;
227
229
}
228
230
229
231
//===----------------------------------------------------------------------===//
@@ -263,6 +265,7 @@ def PDL_OperandsOp
263
265
Value());
264
266
}]>,
265
267
];
268
+ let hasVerifier = 1;
266
269
}
267
270
268
271
//===----------------------------------------------------------------------===//
@@ -396,6 +399,7 @@ def PDL_OperationOp : PDL_Op<"operation", [AttrSizedOperandSegments]> {
396
399
/// inference.
397
400
bool hasTypeInference();
398
401
}];
402
+ let hasVerifier = 1;
399
403
}
400
404
401
405
//===----------------------------------------------------------------------===//
@@ -452,6 +456,7 @@ def PDL_PatternOp : PDL_Op<"pattern", [
452
456
/// Returns the rewrite operation of this pattern.
453
457
RewriteOp getRewriter();
454
458
}];
459
+ let hasVerifier = 1;
455
460
}
456
461
457
462
//===----------------------------------------------------------------------===//
@@ -492,6 +497,7 @@ def PDL_ReplaceOp : PDL_Op<"replace", [
492
497
$operation `with` (`(` $replValues^ `:` type($replValues) `)`)?
493
498
($replOperation^)? attr-dict
494
499
}];
500
+ let hasVerifier = 1;
495
501
}
496
502
497
503
//===----------------------------------------------------------------------===//
@@ -524,7 +530,6 @@ def PDL_ResultOp : PDL_Op<"result", [NoSideEffect]> {
524
530
let arguments = (ins PDL_Operation:$parent, I32Attr:$index);
525
531
let results = (outs PDL_Value:$val);
526
532
let assemblyFormat = "$index `of` $parent attr-dict";
527
- let verifier = ?;
528
533
}
529
534
530
535
//===----------------------------------------------------------------------===//
@@ -567,6 +572,7 @@ def PDL_ResultsOp : PDL_Op<"results", [NoSideEffect]> {
567
572
($index^)? `of` $parent custom<ResultsValueType>(ref($index), type($val))
568
573
attr-dict
569
574
}];
575
+ let hasVerifier = 1;
570
576
}
571
577
572
578
//===----------------------------------------------------------------------===//
@@ -629,6 +635,7 @@ def PDL_RewriteOp : PDL_Op<"rewrite", [
629
635
($body^)?
630
636
attr-dict-with-keyword
631
637
}];
638
+ let hasVerifier = 1;
632
639
}
633
640
634
641
//===----------------------------------------------------------------------===//
@@ -657,6 +664,7 @@ def PDL_TypeOp : PDL_Op<"type", [NoSideEffect]> {
657
664
let arguments = (ins OptionalAttr<TypeAttr>:$type);
658
665
let results = (outs PDL_Type:$result);
659
666
let assemblyFormat = "attr-dict (`:` $type^)?";
667
+ let hasVerifier = 1;
660
668
}
661
669
662
670
//===----------------------------------------------------------------------===//
@@ -685,6 +693,7 @@ def PDL_TypesOp : PDL_Op<"types", [NoSideEffect]> {
685
693
let arguments = (ins OptionalAttr<TypeArrayAttr>:$types);
686
694
let results = (outs PDL_RangeOf<PDL_Type>:$result);
687
695
let assemblyFormat = "attr-dict (`:` $types^)?";
696
+ let hasVerifier = 1;
688
697
}
689
698
690
699
#endif // MLIR_DIALECT_PDL_IR_PDLOPS
0 commit comments