This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

xndcn created this revision.Oct 29 2021, 7:53 AM
xndcn requested review of this revision.Oct 29 2021, 7:53 AM
antiagainst accepted this revision.Oct 29 2021, 4:24 PM

Nice, thanks!

mlir/test/Conversion/StandardToSPIRV/std-ops-to-spirv.mlir
954

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. :)

This revision is now accepted and ready to land.Oct 29 2021, 4:24 PM
xndcn added a comment.Oct 30 2021, 9:44 AM

Nice, thanks!

Thanks, have removed constant conversions by using func arguments.