20 lines · plain
1// RUN: not mlir-tblgen -gen-rewriters -I %S/../../include %s 2>&1 | FileCheck %s2 3include "mlir/IR/OpBase.td"4include "mlir/IR/PatternBase.td"5 6def Test_Dialect : Dialect {7 let name = "test";8}9 10def OpA : Op<Test_Dialect, "a"> {11 let arguments = (ins I32Attr:$attr);12}13def OpB : Op<Test_Dialect, "b"> {14 let arguments = (ins I32Attr:$attr);15}16 17def : Pat<(OpA $attr), (OpB $attr),18 // CHECK: operands to additional constraints can only be symbol references19 [(Constraint<CPred<"$0->getValue() == $1">> $attr, 42)]>;20