summaryrefslogtreecommitdiff
path: root/mlir/lib/CAPI/IR/AffineExpr.cpp
AgeCommit message (Collapse)Author
2025-04-01[mlir] Expose `simplifyAffineExpr` through python api (#133926)Ivan Butygin
2025-03-16[mlir] Expose `AffineExpr.shift_dims/shift_symbols` through C and Python ↵Ivan Butygin
bindings (#131521)
2023-11-14[mlir][affine][nfc] cleanup deprecated T.cast style functions (#71269)long.chen
detail see the docment: https://mlir.llvm.org/deprecation/ Not all changes are made manually, most of them are made through a clang tool I wrote https://github.com/lipracer/cpp-refactor.
2021-11-03[mlir][python] improve usability of Python affine construct bindingsAlex Zinenko
- 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
2021-01-11[mlir] Add Python bindings for AffineExprAlex Zinenko
This adds the Python bindings for AffineExpr and a couple of utility functions to the C API. AffineExpr is a top-level context-owned object and is modeled similarly to attributes and types. It is required, e.g., to build layout maps of the built-in memref type. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D94225
2020-11-29[mlir][CAPI] Convert the rest of the API int -> bool.Stella Laurenzo
* Follows on https://reviews.llvm.org/D92193 * I had a mid-air collision with some additional occurrences and then noticed that there were a lot more. Think I got them all. Differential Revision: https://reviews.llvm.org/D92292
2020-11-04Switch from C-style comments `/* ... */` to C++ style `//` (NFC)Mehdi Amini
This is mostly a scripted update, it may not be perfect. function replace() { FROM=$1 TO=$2 git grep "$FROM" $REPO_PATH |cut -f 1 -d : | sort -u | \ while read file; do sed -i "s#$FROM#$TO#" $file ; done } replace '|\*===----------------------------------------------------------------------===\*|$' '//===----------------------------------------------------------------------===//' replace '^/\* =' '//==' replace '^/\*=' '//=' replace '^\\\*=' '//=' replace '^|\*' '//' replace ' \*|$' '' replace '=\*\\$' '=//' replace '== \*/$' '===//' replace '==\*/$' '==//' replace '^/\*\*\(.*\)\*/$' '///\1' replace '^/\*\(.*\)\*/$' '//\1' replace '//============================================================================//' '//===----------------------------------------------------------------------===//' Differential Revision: https://reviews.llvm.org/D90732
2020-11-04Switch the CallbackOstream wrapper in the MLIR C API to an Unbuffered streamMehdi Amini
This delegate the control of the buffering to the user of the API. This seems like a safer option as messages are immediately propagated to the user, which may lead to less surprising behavior during debugging for instance. In terms of performance, a user can add a buffered stream on the other side of the callback. Differential Revision: https://reviews.llvm.org/D90726
2020-10-23[mlir] Expose affine expression to C APIzhanghb97
This patch provides C API for MLIR affine expression. - Implement C API for methods of AffineExpr class. - Implement C API for methods of derived classes (AffineBinaryOpExpr, AffineDimExpr, AffineSymbolExpr, and AffineConstantExpr). Differential Revision: https://reviews.llvm.org/D89856