This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Vector] First step for 0D vector type
ClosedPublic

Authored by michalt on Nov 17 2021, 6:31 AM.

Details

Summary

There seems to be a consensus that we should allow 0D vectors:
https://llvm.discourse.group/t/should-we-have-0-d-vectors/3097

This commit is only the first step: it changes the verifier and the parser to
allow vectors like vector<f32> (but does not allow explicit 0 dimensions,
i.e., vector<0xf32> is not allowed).

Diff Detail

Event Timeline

michalt created this revision.Nov 17 2021, 6:31 AM
michalt requested review of this revision.Nov 17 2021, 6:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 17 2021, 6:31 AM
nicolasvasilache accepted this revision.Nov 17 2021, 6:51 AM

Thanks for starting this @michalt !

This revision is now accepted and ready to land.Nov 17 2021, 6:51 AM
This revision was automatically updated to reflect the committed changes.