This is an archive of the discontinued LLVM Phabricator instance.

[mlir][spirv] Fail vector.bitcast conversion with different bitwidth
ClosedPublic

Authored by antiagainst on Dec 20 2022, 3:16 PM.

Details

Summary

Depending on the target environment, we may need to emulate certain
types, which can cause issue with bitcast.

Diff Detail

Event Timeline

antiagainst created this revision.Dec 20 2022, 3:16 PM
Herald added a project: Restricted Project. · View Herald Transcript
antiagainst requested review of this revision.Dec 20 2022, 3:16 PM
ThomasRaoux accepted this revision.Dec 28 2022, 10:32 AM
ThomasRaoux added inline comments.
mlir/lib/Conversion/VectorToSPIRV/VectorToSPIRV.cpp
40

you can use getSizeInBits() instead.

62

typo: destination

This revision is now accepted and ready to land.Dec 28 2022, 10:32 AM
antiagainst marked 2 inline comments as done.Dec 29 2022, 3:44 PM