[MLIR][SPIRV] Add `UnsignedOp` trait.
authorKareemErgawy-TomTom <kareem.ergawy@gmail.com>
Wed, 6 Jan 2021 13:56:53 +0000 (14:56 +0100)
committerKareemErgawy-TomTom <kareem.ergawy@gmail.com>
Wed, 6 Jan 2021 14:28:41 +0000 (15:28 +0100)
commitf60e0a91fbdd8e3409f5ee883a05a6c77f70720c
tree8eed601a8fd7bba4405e99bf37acb73a7881bfa8
parent26c486c2eb1a0f302eb60a4b959456f09adbbacb
[MLIR][SPIRV] Add `UnsignedOp` trait.

This commit adds a new trait that can be attached to ops that have
unsigned semantics.

TODO:
- Check if other places in code can use the new attribute (possibly in this patch).
- Add a similar `SignedOp` attribute (in a new patch).

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D94068
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVArithmeticOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVAtomicOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBitOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCastOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVLogicalOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVNonUniformOps.td
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOpTraits.h [new file with mode: 0644]
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp