This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Conversion] Allow lowering to fixed arrays of scalable vectors
ClosedPublic

Authored by benmxwl-arm on Aug 24 2023, 9:41 AM.

Details

Summary

This allows lowering vector types like: vector<3x[4]> or vector<3x2x[4]>
to LLVM IR, i.e. vectors where the trailing dim is scalable.

This is contingent on:
https://discourse.llvm.org/t/rfc-enable-arrays-of-scalable-vector-types/72935

More tests will be added in later patches, however, some MLIR fixes are
needed first.

Depends on: D158517

Diff Detail

Event Timeline

benmxwl-arm created this revision.Aug 24 2023, 9:41 AM
Herald added a reviewer: ftynse. · View Herald Transcript
Herald added a reviewer: dcaballe. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
benmxwl-arm requested review of this revision.Aug 24 2023, 9:41 AM
  • Remove dependency on (abandoned) VectorType helper methods
benmxwl-arm edited the summary of this revision. (Show Details)Aug 29 2023, 11:13 AM
awarzynski accepted this revision.Sep 14 2023, 7:32 AM

D158517 has just landed, so LGTM, thank you! 🙏🏻

This revision is now accepted and ready to land.Sep 14 2023, 7:32 AM
  • Return failure rather than assert.