summaryrefslogtreecommitdiff
path: root/mlir/lib/CAPI/IR/AffineMap.cpp
AgeCommit message (Collapse)Author
2023-01-10Move from llvm::makeArrayRef to ArrayRef deduction guides - last partserge-sans-paille
This is a follow-up to https://reviews.llvm.org/D140896, split into several parts as it touches a lot of files. Differential Revision: https://reviews.llvm.org/D141298
2021-06-24[mlir][linalg][python] Add attribute support to the OpDSL.Tobias Gysi
Extend the OpDSL with index attributes. After tensors and scalars, index attributes are the third operand type. An index attribute represents a compile-time constant that is limited to index expressions. A use cases are the strides and dilations defined by convolution and pooling operations. The patch only updates the OpDSL. The C++ yaml codegen is updated by a followup patch. Differential Revision: https://reviews.llvm.org/D104711
2021-04-01[mlir][Python][Linalg] Add missing attributes to linalg opsNicolas Vasilache
This revision tightens up the handling of attributes for both named and generic linalg ops. To demonstrate the IR validity, a working e2e Linalg example is added. Differential Revision: https://reviews.llvm.org/D99430
2021-01-11[mlir] More Python bindings for AffineMapAlex Zinenko
Now that the bindings for AffineExpr have been added, add more bindings for constructing and inspecting AffineMap that consists of AffineExprs. Depends On D94225 Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D94297
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 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-09-17[mlir] expose affine map to C APIzhanghb97
This patch provides C API for MLIR affine map. - Implement C API for AffineMap class. - Add Utils.h to include/mlir/CAPI/, and move the definition of the CallbackOstream to Utils.h to make sure mlirAffineMapPrint work correct. - Add TODO for exposing the C API related to AffineExpr and mutable affine map. Differential Revision: https://reviews.llvm.org/D87617
2020-08-18[mlir] expose standard types to C APIAlex Zinenko
Provide C API for MLIR standard types. Since standard types live under lib/IR in core MLIR, place the C APIs in the IR library as well (standard ops will go into a separate library). This also defines a placeholder for affine maps that are necessary to construct a memref, but are not yet exposed to the C API. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D86094