[all-commits] [llvm/llvm-project] 53c866: Enable python bindings for tensor, shape and linal...
Stella Laurenzo via All-commits
all-commits at lists.llvm.org
Mon Jan 11 12:36:54 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 53c866c286a7ca52bd09c7661d4c532ce5c0def8
https://github.com/llvm/llvm-project/commit/53c866c286a7ca52bd09c7661d4c532ce5c0def8
Author: Stella Laurenzo <stellaraccident at gmail.com>
Date: 2021-01-11 (Mon, 11 Jan 2021)
Changed paths:
M mlir/cmake/modules/AddMLIRPythonExtension.cmake
M mlir/lib/Bindings/Python/CMakeLists.txt
A mlir/lib/Bindings/Python/LinalgOps.td
A mlir/lib/Bindings/Python/ShapeOps.td
A mlir/lib/Bindings/Python/TensorOps.td
M mlir/test/Bindings/Python/CMakeLists.txt
Log Message:
-----------
Enable python bindings for tensor, shape and linalg dialects.
* We've got significant missing features in order to use most of these effectively (i.e. custom builders, region-based builders).
* We presently also lack a mechanism for actually registering these dialects but they can be use with contexts that allow unregistered dialects for further prototyping.
Differential Revision: https://reviews.llvm.org/D94368
Commit: cceb1bfcbbc4ee2e9cc56b76a4acc4cd52968791
https://github.com/llvm/llvm-project/commit/cceb1bfcbbc4ee2e9cc56b76a4acc4cd52968791
Author: Stella Laurenzo <stellaraccident at gmail.com>
Date: 2021-01-11 (Mon, 11 Jan 2021)
Changed paths:
A mlir/include/mlir-c/Dialect/Linalg.h
A mlir/include/mlir-c/Dialect/SCF.h
A mlir/include/mlir-c/Dialect/Shape.h
A mlir/include/mlir-c/Dialect/Standard.h
A mlir/include/mlir-c/Dialect/Tensor.h
M mlir/include/mlir-c/Registration.h
R mlir/include/mlir-c/StandardDialect.h
A mlir/include/mlir/CAPI/Registration.h
M mlir/lib/CAPI/CMakeLists.txt
A mlir/lib/CAPI/Dialect/CMakeLists.txt
A mlir/lib/CAPI/Dialect/Linalg.cpp
A mlir/lib/CAPI/Dialect/SCF.cpp
A mlir/lib/CAPI/Dialect/Shape.cpp
A mlir/lib/CAPI/Dialect/Standard.cpp
A mlir/lib/CAPI/Dialect/Tensor.cpp
R mlir/lib/CAPI/Standard/CMakeLists.txt
R mlir/lib/CAPI/Standard/StandardDialect.cpp
M mlir/test/CAPI/ir.c
Log Message:
-----------
[mlir][CAPI] Introduce standard source layout for mlir-c dialect registration.
* Registers a small set of sample dialects.
* NFC with respect to existing C-API symbols but some headers have been moved down a level to the Dialect/ sub-directory.
* Adds an additional entry point per dialect that is needed for dynamic discovery/loading.
* See discussion: https://llvm.discourse.group/t/dialects-and-the-c-api/2306/16
Differential Revision: https://reviews.llvm.org/D94370
Compare: https://github.com/llvm/llvm-project/compare/c1ae378205db...cceb1bfcbbc4
More information about the All-commits
mailing list