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