aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorzhanghb97 <hongbin2019@iscas.ac.cn>2021-01-12 21:40:27 +0800
committerzhanghb97 <hongbin2019@iscas.ac.cn>2021-01-13 09:32:32 +0800
commitc0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8 (patch)
tree8df91d8ab5471fc0942b9d1720c759f77dc14a2a /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent25b3921f2fcd8fb3241c2f79e488f25a6374b99f (diff)
downloadllvm-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