This commit updates SPIR-V dialect to support integer signedness
by relaxing various checks for signless to just normal integers.
The hack for spv.Bitcast can now be removed.
Depends On D75610
Paths
| Differential D75611
[mlir][spirv] Support integer signedness ClosedPublic Authored by antiagainst on Mar 4 2020, 7:49 AM.
Details Summary This commit updates SPIR-V dialect to support integer signedness The hack for spv.Bitcast can now be removed. Depends On D75610
Diff Detail
Event TimelineComment Actions Minor nits, but happy to see that this got resolved and bitcast can now be autogened.
This revision is now accepted and ready to land.Mar 4 2020, 10:25 AM antiagainst added inline comments.
Closed by commit rG9600b55ac8b1: [mlir][spirv] Support integer signedness (authored by antiagainst). · Explain WhyMar 4 2020, 12:23 PM This revision was automatically updated to reflect the committed changes. antiagainst marked 2 inline comments as done.
Revision Contents
Diff 248279 mlir/docs/Dialects/SPIR-V.md
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVGroupOps.td
mlir/include/mlir/Dialect/SPIRV/SPIRVNonUniformOps.td
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/lib/Dialect/SPIRV/Serialization/Deserializer.cpp
mlir/lib/Dialect/SPIRV/Serialization/Serializer.cpp
mlir/test/Dialect/SPIRV/Serialization/cast-ops.mlir
mlir/test/Dialect/SPIRV/Serialization/constant.mlir
mlir/test/Dialect/SPIRV/non-uniform-ops.mlir
mlir/test/Dialect/SPIRV/ops.mlir
|
Do we need no signedness semantics. This is effectively saying no signedness is same as unsigned. Might as well make that explicit?