Turn legalization failures into hard failures to make sure that we do
not miss conversion pattern application failures.
Add a message on type conversion failure.
Move unsupported cases into a separate test file.
Paths
| Differential D137102
[mlir][arith][spirv] Hard fail in `-convert-arith-to-spirv` ClosedPublic Authored by kuhar on Oct 31 2022, 12:27 PM.
Details Summary Turn legalization failures into hard failures to make sure that we do Add a message on type conversion failure. Move unsupported cases into a separate test file.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 31 2022, 1:56 PM Closed by commit rG179978d7b8ec: [mlir][arith][spirv] Hard fail in `-convert-arith-to-spirv` (authored by kuhar). · Explain WhyOct 31 2022, 2:02 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 472125 mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
mlir/lib/Conversion/SPIRVCommon/Pattern.h
mlir/test/Conversion/ArithToSPIRV/arith-to-spirv-unsupported.mlir
mlir/test/Conversion/ArithToSPIRV/arith-to-spirv.mlir
|