[all-commits] [llvm/llvm-project] abb4cd: [mlir][Python] Initial Affine Map Python Bindings.

zhanghb97 via All-commits all-commits at lists.llvm.org
Wed Dec 30 02:38:38 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: abb4cd3e74954ccb43307c71f7d0f0f937e0e045
      https://github.com/llvm/llvm-project/commit/abb4cd3e74954ccb43307c71f7d0f0f937e0e045
  Author: zhanghb97 <hongbin2019 at iscas.ac.cn>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M mlir/include/mlir-c/Bindings/Python/Interop.h
    M mlir/lib/Bindings/Python/IRModules.cpp
    M mlir/lib/Bindings/Python/IRModules.h
    A mlir/test/Bindings/Python/ir_affine_map.py

  Log Message:
  -----------
  [mlir][Python] Initial Affine Map Python Bindings.

- Add `PyAffineMap` to wrap around `MlirAffineMap`.
- Add `mlirPythonAffineMapToCapsule` and `mlirPythonCapsuleToAffineMap` to interoperate with python capsule.
- Add and test some simple bindings of `PyAffineMap`.

Differential Revision: https://reviews.llvm.org/D93200




More information about the All-commits mailing list