Previously we only consider the version/extension/capability requirement
on the op itself. This commit updates SPIRVConversionTarget to also
take into consideration the values' types when deciding op legality.
Depends On D75875
Paths
| Differential D75876
[mlir][spirv] Let SPIRVConversionTarget consider type availability ClosedPublic Authored by antiagainst on Mar 9 2020, 2:10 PM.
Details Summary Previously we only consider the version/extension/capability requirement Depends On D75875
Diff Detail
Event Timelineantiagainst added a child revision: D76242: [mlir][spirv] Plumbing target environment into type converter.Mar 16 2020, 11:51 AM mravishankar added inline comments.
This revision now requires changes to proceed.Mar 16 2020, 12:12 PM
antiagainst edited parent revisions, added: D76241: [mlir][spirv] Use memref memory space for storage class; removed: D75875: [mlir][spirv] Support querying type extension/capability requirements.Mar 16 2020, 3:07 PM antiagainst added inline comments.
This revision is now accepted and ready to land.Mar 17 2020, 2:50 PM Closed by commit rG67e8690e53c3: [mlir][spirv] Let SPIRVConversionTarget consider type availability (authored by antiagainst). · Explain WhyMar 18 2020, 5:24 PM This revision was automatically updated to reflect the committed changes. antiagainst marked an inline comment as done.
Revision Contents
Diff 251224 mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
mlir/test/Conversion/GPUToSPIRV/if.mlir
mlir/test/Conversion/GPUToSPIRV/load-store.mlir
mlir/test/Conversion/GPUToSPIRV/loop.mlir
mlir/test/Conversion/StandardToSPIRV/std-to-spirv.mlir
mlir/test/Conversion/StandardToSPIRV/subview-to-spirv.mlir
|
Could we add a method that sets some targetEnv by default (the one that are used in the tests here for example).