[all-commits] [llvm/llvm-project] c0f3ea: [mlir][Python] Add checking process before create ...

zhanghb97 via All-commits all-commits at lists.llvm.org
Tue Jan 12 17:32:53 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8
      https://github.com/llvm/llvm-project/commit/c0f3ea8a08ca9a9ec473f6e9072ccf30dad5def8
  Author: zhanghb97 <hongbin2019 at iscas.ac.cn>
  Date:   2021-01-13 (Wed, 13 Jan 2021)

  Changed paths:
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/test/Bindings/Python/ir_affine_map.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list