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
|
2019-03-24 00:03:07 +08:00
|
|
|
// CHECK: bool OneOperandOp::verify() {
|
2019-03-27 08:05:09 +08:00
|
|
|
// CHECK: if (!((this->getOperation()->getOperand(0)->getType().isInteger(32))))
|
2019-03-07 04:50:01 +08:00
|
|
|
// CHECK-NEXT: return emitOpError("operand #0 must be 32-bit integer");
|