Mercurial > hg > CbC > CbC_llvm
view mlir/test/mlir-tblgen/expect-symbol.td @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | c4bab56944e8 |
children |
line wrap: on
line source
// RUN: not mlir-tblgen -gen-rewriters -I %S/../../include %s 2>&1 | FileCheck %s include "mlir/IR/OpBase.td" include "mlir/IR/PatternBase.td" def Test_Dialect : Dialect { let name = "test"; } def OpA : Op<Test_Dialect, "a"> { let arguments = (ins I32Attr:$attr); } def OpB : Op<Test_Dialect, "b"> { let arguments = (ins I32Attr:$attr); } def : Pat<(OpA $attr), (OpB $attr), // CHECK: operands to additional constraints can only be symbol references [(Constraint<CPred<"$0->getValue() == $1">> $attr, 42)]>;