Types should be checked with the type hierarchy. This should result in
better responsibility division and API surface.
Depends On D76242
Paths
| Differential D76243
[mlir][spirv] Move type checks from dialect class to type hierarchy ClosedPublic Authored by antiagainst on Mar 16 2020, 11:52 AM.
Details Summary Types should be checked with the type hierarchy. This should result in Depends On D76242
Diff Detail
Event Timelineantiagainst added a child revision: D76244: [mlir][spirv] Make SPIRVTypeConverter target environment aware.Mar 16 2020, 11:53 AM Comment Actions This is so much nicer! Thanks
This revision is now accepted and ready to land.Mar 16 2020, 12:30 PM antiagainst added inline comments.
Closed by commit rGf741b8eabed3: [mlir][spirv] Move type checks from dialect class to type hierarchy (authored by antiagainst). · Explain WhyMar 18 2020, 5:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 251227 mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h
mlir/lib/Dialect/SPIRV/LayoutUtils.cpp
mlir/lib/Dialect/SPIRV/SPIRVCanonicalization.cpp
mlir/lib/Dialect/SPIRV/SPIRVDialect.cpp
mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
mlir/lib/Dialect/SPIRV/SPIRVOps.cpp
mlir/lib/Dialect/SPIRV/SPIRVTypes.cpp
mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp
|
You could just make this a dyn_cast<spirv::SPIRVType>()