This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Convert std.and/std.or ops to spv.LogicalAnd/spv.LogicalOr
ClosedPublic

Authored by mravishankar on Dec 25 2019, 4:50 PM.

Details

Summary

The conversion from std.and/std.or to spv.LogicalAnd/spv.LogicalOr is
only valid for boolean (i1) types. Modify BinaryOpPattern in
StandardToSPIRV.td to allow limiting the type of the operands for
which the pattern is applied.

Diff Detail

Event Timeline

mravishankar created this revision.Dec 25 2019, 4:50 PM

Can you please join this group as well: https://reviews.llvm.org/project/members/78/ ; it'll enable CI testing on your revisions

antiagainst accepted this revision.Dec 27 2019, 6:02 AM

Changes LGTM, thanks!

This revision is now accepted and ready to land.Dec 27 2019, 6:02 AM
This revision was automatically updated to reflect the committed changes.