This is an archive of the discontinued LLVM Phabricator instance.

[mlir][sparse] remove restriction on vectorization of index type
ClosedPublic

Authored by aartbik on Apr 14 2021, 7:07 PM.

Details

Summary

Rationale:
Now that vector<?xindex> is allowed, the restriction on vectorization
of index types in the sparse compiler can be removed. Also needs
generalization of scatter/gather index types.

Diff Detail

Event Timeline

aartbik created this revision.Apr 14 2021, 7:07 PM
aartbik requested review of this revision.Apr 14 2021, 7:07 PM
gysit accepted this revision.Apr 15 2021, 1:19 AM
gysit added inline comments.
mlir/include/mlir/Dialect/Vector/VectorOps.td
1687

Right I missed that one! At some point, we may also want to adapt the gather_op_index and the scatter_op_index tests in vector-to-llvm.mlir to check if all goes well (meaning if the index type is properly converted to an i64 during the lowering).

This revision is now accepted and ready to land.Apr 15 2021, 1:19 AM
This revision was automatically updated to reflect the committed changes.
aartbik marked an inline comment as done.