Add conversions from arith.bitcast, std.br, std.cond_br to spirv.
test @simple_loop is copied from standard-to-llvm.mlir
Paths
| Differential D112819
[mlir][spirv] Add conversions from arith.bitcast, std.br, std.cond_br to spirv. ClosedPublic Authored by xndcn on Oct 29 2021, 7:53 AM.
Details Summary Add conversions from arith.bitcast, std.br, std.cond_br to spirv. test @simple_loop is copied from standard-to-llvm.mlir
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 20 others. · View Herald TranscriptOct 29 2021, 7:53 AM Comment Actions Nice, thanks!
This revision is now accepted and ready to land.Oct 29 2021, 4:24 PM Closed by commit rG6e2c0e6931af: [mlir][spirv] Add conversions from arith.bitcast, std.br, std.cond_br to spirv. (authored by xndcn). · Explain WhyOct 30 2021, 9:43 AM This revision was automatically updated to reflect the committed changes. Comment Actions
Thanks, have removed constant conversions by using func arguments.
Revision Contents
Diff 383350 mlir/lib/Conversion/ArithmeticToSPIRV/ArithmeticToSPIRV.cpp
mlir/lib/Conversion/StandardToSPIRV/StandardToSPIRV.cpp
mlir/test/Conversion/ArithmeticToSPIRV/arithmetic-to-spirv.mlir
mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir |
We can avoid checking the constant conversion. They are irrelevant in this test and they are checked in their dedicated tests. Similarly for other non-control-flow checks. :)