[spirv] Add bit ops
authorDenis Khalikov <khalikov.denis@huawei.com>
Fri, 15 Nov 2019 18:51:42 +0000 (10:51 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 15 Nov 2019 19:03:19 +0000 (11:03 -0800)
commit68e48ba1116ddf9d0a11d2b308205787a18ca089
tree2198b799c3f81df968705e278d86a4b21fb935b0
parentf90d5d703a814f70a06f719636d61ccb9fa26f21
[spirv] Add bit ops

This CL added op definitions for a few bit operations:

* OpBitFieldInsert
* OpBitFieldSExtract
* OpBitFieldUExtract

Closes tensorflow/mlir#233

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/mlir/pull/233 from denis0x0D:sandbox/bit_field_ops e7fd85b00d72d483d7992dc42b9cc4d673903455
PiperOrigin-RevId: 280691816
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVBitOps.td
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/test/Dialect/SPIRV/Serialization/bit-ops.mlir [moved from mlir/test/Dialect/SPIRV/Serialization/bit-ops.td with 58% similarity]
mlir/test/Dialect/SPIRV/ops.mlir