This patch removes an old recursive implementation to lower vector.transpose to extract/insert operations
and replaces it with a iterative approach that leverages newer linearization/delinearization utilities.
The patch should be NFC except by the order in which the extract/insert ops are generated.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/Utils/IndexingUtils.cpp | ||
---|---|---|
33 ↗ | (On Diff #414176) | actually, now that I see this, I remember we have: void applyPermutationToVector(SmallVector<T, N> &inVec, ArrayRef<int64_t> permutation) in LinalgUtils.h; mind refactoring a bit more so that one uses the other / we end with only 1 version ? |
mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp | ||
421 | can we use/add a builder that would take ArrayRef and avoid the need for users to materialize the Attr ? |
can we use/add a builder that would take ArrayRef and avoid the need for users to materialize the Attr ?