Add a helper method to check if an index vector contains a permutation of its indices. Additionally, refactor applyPermutationToVector to take int64_t.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/Linalg/Utils/Utils.h | ||
---|---|---|
34 | AFAIK the context is needed to create an AffineMap. Optionally, we may also add an assertion inside of applyPermutationToVector, but this would also require adding context to the argument list. |
Comment Actions
you could also just traverse by recording the min, max and unique counts to avoid creating the AffineMap in the first place.
This works too.
AFAIK the context is needed to create an AffineMap. Optionally, we may also add an assertion inside of applyPermutationToVector, but this would also require adding context to the argument list.