[all-commits] [llvm/llvm-project] fc7594: [mlir][python] improve usability of Python affine ...
ftynse via All-commits
all-commits at lists.llvm.org
Wed Nov 3 02:48:15 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fc7594cc4aa5e652fe61f278a13e865141797245
https://github.com/llvm/llvm-project/commit/fc7594cc4aa5e652fe61f278a13e865141797245
Author: Alex Zinenko <zinenko at google.com>
Date: 2021-11-03 (Wed, 03 Nov 2021)
Changed paths:
M mlir/include/mlir-c/AffineExpr.h
M mlir/lib/Bindings/Python/IRAffine.cpp
M mlir/lib/CAPI/IR/AffineExpr.cpp
M mlir/test/CAPI/ir.c
M mlir/test/python/ir/affine_expr.py
M mlir/test/python/ir/affine_map.py
M mlir/test/python/ir/integer_set.py
Log Message:
-----------
[mlir][python] improve usability of Python affine construct bindings
- Provide the operator overloads for constructing (semi-)affine expressions in
Python by combining existing expressions with constants.
- Make AffineExpr, AffineMap and IntegerSet hashable in Python.
- Expose the AffineExpr composition functionality.
Reviewed By: gysit, aoyal
Differential Revision: https://reviews.llvm.org/D113010
More information about the All-commits
mailing list