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).
Paths
| Differential D94068
[MLIR][SPIRV] Add `UnsignedOp` trait. ClosedPublic Authored by ergawy on Jan 5 2021, 1:08 AM.
Details
Summary This commit adds a new trait that can be attached to ops that have TODO:
Diff Detail
Event TimelineComment Actions This looks awesome! Thanks so much! Just one request.
This revision now requires changes to proceed.Jan 5 2021, 5:07 AM This revision is now accepted and ready to land.Jan 6 2021, 4:34 AM Closed by commit rGf60e0a91fbdd: [MLIR][SPIRV] Add `UnsignedOp` trait. (authored by ergawy). · Explain WhyJan 6 2021, 6:28 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 314880 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
mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp
|
This should be updated to match the filename.