Add spv.Branch and spv.BranchConditional
authorLei Zhang <antiagainst@google.com>
Fri, 30 Aug 2019 19:17:21 +0000 (12:17 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 30 Aug 2019 19:17:53 +0000 (12:17 -0700)
commit4f6c29223ee5395dd955cefafce6f03ed99170e0
treee4ac8a52045f15198e81ea690abdaebeedf0f522
parent3ee3710fd1da25631eb99c2fe58360ccecd3d703
Add spv.Branch and spv.BranchConditional

This CL just covers the op definition, its parsing, printing,
and verification. (De)serialization is to be implemented
in a subsequent CL.

PiperOrigin-RevId: 266431077
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVControlFlowOps.td
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/test/Dialect/SPIRV/control-flow-ops.mlir
mlir/utils/spirv/gen_spirv_dialect.py