llvm-project/mlir/test/mlir-tblgen/op-operand.td

13 lines
433 B
TableGen
Raw Normal View History

// RUN: mlir-tblgen -gen-op-definitions -I %S/../../include %s | FileCheck %s
include "mlir/IR/OpBase.td"
def OneOperandOp : Op<"one_operand_op", []> {
let arguments = (ins I32:$input);
}
// CHECK-LABEL: class OneOperandOp
// CHECK: bool verify() const {
// CHECK: if (!((this->getInstruction()->getOperand(0)->getType().isInteger(32)))) {
// CHECK-NEXT: return emitOpError("operand #0 must be 32-bit integer");