This is an archive of the discontinued LLVM Phabricator instance.

[NFC][mlir] VectorUtils / IndexingUtils simplifications and cleanups
ClosedPublic

Authored by nicolasvasilache on Nov 22 2022, 7:37 AM.

Details

Summary

This revision refactors and cleans up a bunch of infra related to vector, shapes and indexing into more reusable APIs.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache requested review of this revision.Nov 22 2022, 7:37 AM
Herald added a project: Restricted Project. · View Herald Transcript
nicolasvasilache retitled this revision from [NFC] VectorUtils / IndexingUtils simplifications and cleanups to [NFC][mlir] VectorUtils / IndexingUtils simplifications and cleanups.

Drop spurious filter in assert, update commit message.

Cleanup variable name.

springerm accepted this revision.Nov 22 2022, 8:33 AM
springerm added inline comments.
mlir/include/mlir/Dialect/Utils/IndexingUtils.h
35

dup

46

backtick missing

50

typo

53

this one does not make sense to me. expected None because 3/2 does not divide evenly. but even then, the other two values do also not make sense to me.

This revision is now accepted and ready to land.Nov 22 2022, 8:33 AM
dcaballe accepted this revision.Nov 22 2022, 9:58 AM
nicolasvasilache marked 4 inline comments as done.

Address comments.

This revision was landed with ongoing or failed builds.Nov 22 2022, 11:42 PM
This revision was automatically updated to reflect the committed changes.