This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Vector] Support 0-D vectors in `BitCastOp`
ClosedPublic

Authored by michalt on Dec 1 2021, 12:57 AM.

Details

Summary

The implementation only allows to bit-cast between two 0-D vectors. We could
probably support casting from/to vectors like vector<1xf32>, but I wasn't
convinced that this would be important and it would require breaking the
invariant that BitCastOp works only on vectors with equal rank.

Diff Detail

Event Timeline

michalt created this revision.Dec 1 2021, 12:57 AM
michalt requested review of this revision.Dec 1 2021, 12:57 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 12:57 AM
nicolasvasilache accepted this revision.Dec 3 2021, 12:55 AM
This revision is now accepted and ready to land.Dec 3 2021, 12:55 AM
This revision was automatically updated to reflect the committed changes.