[mlir] Add number of operands verification for shape.assuming_all operation
authormsifontes <sifontes@google.com>
Tue, 9 Jun 2020 16:55:35 +0000 (09:55 -0700)
committerJacques Pienaar <jpienaar@google.com>
Tue, 9 Jun 2020 16:59:04 +0000 (09:59 -0700)
commit1c189d71dbb9ea0f8dd2f396c051c4c89e0ad2df
treec462c526e0e7542de0bacc12b868602afb8b402c
parentbabd3aefc9193b44ad0620a2cfd63ebb6ad7e952
[mlir] Add number of operands verification for shape.assuming_all operation

Implemented a verification to ensure that the shape.assuming_all
operation always has at least one operand.
mlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
mlir/lib/Dialect/Shape/IR/Shape.cpp
mlir/test/Dialect/Shape/invalid.mlir