Lines Matching defs:permutation
205 mlir::invertPermutationVector(ArrayRef<int64_t> permutation) {
206 assert(llvm::all_of(permutation, [](int64_t s) { return s >= 0; }) &&
207 "permutation must be non-negative");
208 SmallVector<int64_t> inversion(permutation.size());
209 for (const auto &pos : llvm::enumerate(permutation)) {
215 bool mlir::isIdentityPermutation(ArrayRef<int64_t> permutation) {
216 for (auto i : llvm::seq<int64_t>(0, permutation.size()))
217 if (permutation[i] != i)
224 "permutation must be non-negative");
370 "expected loop order to be a permutation of rank equal to outer "