diff options
author | zhanghb97 <hongbin2019@iscas.ac.cn> | 2021-01-12 21:40:27 +0800 |
---|---|---|
committer | zhanghb97 <hongbin2019@iscas.ac.cn> | 2021-01-13 09:32:32 +0800 |
commit | c0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8 (patch) | |
tree | 8df91d8ab5471fc0942b9d1720c759f77dc14a2a /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 25b3921f2fcd8fb3241c2f79e488f25a6374b99f (diff) | |
download | llvm-c0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8.zip llvm-c0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8.tar.gz llvm-c0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8.tar.bz2 |
[mlir][Python] Add checking process before create an AffineMap from a permutation.
An invalid permutation will trigger a C++ assertion when attempting to create an AffineMap from the permutation.
This patch adds an `isPermutation` function to check the given permutation before creating the AffineMap.
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D94492
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions