Add a convenient operation build method for spirv::SelectOp
authorMahesh Ravishankar <ravishankarm@google.com>
Tue, 29 Oct 2019 06:03:54 +0000 (23:03 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 29 Oct 2019 06:04:36 +0000 (23:04 -0700)
commit61225d678e5db64ba2109261596492700c5475e0
tree63a8f836ab05a146888dea5da11daacb471a6769
parentca2538e9a749deeedb6c790d85d811133e88ad91
Add a convenient operation build method for spirv::SelectOp

The SelectOp always has the same result type as its true/false
value. Add a builder method that uses the operand type to get the
result type.

PiperOrigin-RevId: 277217978
mlir/include/mlir/Dialect/SPIRV/SPIRVLogicalOps.td
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp