llvm/mlir
John Demme 6b0bed7ea5 [MLIR] [Python] Add a method to clear live operations map
Introduce a method on PyMlirContext (and plumb it through to Python) to
invalidate all of the operations in the live operations map and clear
it. Since Python has no notion of private data, an end-developer could
reach into some 3rd party API which uses the MLIR Python API (that is
behaving correctly with regard to holding references) and grab a
reference to an MLIR Python Operation, preventing it from being
deconstructed out of the live operations map. This allows the API
developer to clear the map when it calls C++ code which could delete
operations, protecting itself from its users.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D123895
2022-04-19 15:14:09 -07:00
..
benchmark/python
cmake/modules
docs [mlir:NFC] Remove the forward declaration of FuncOp in the mlir namespace 2022-04-18 12:01:55 -07:00
examples [mlir:NFC] Remove the forward declaration of FuncOp in the mlir namespace 2022-04-18 12:01:55 -07:00
include [mlir] Adds getUpperBound() to LoopLikeInterface. 2022-04-19 19:56:44 +00:00
lib [MLIR] [Python] Add a method to clear live operations map 2022-04-19 15:14:09 -07:00
python [mlir][Linalg] Add pooling_nchw_sum op. 2022-04-08 17:57:47 +05:30
test [MLIR] [Python] Add a method to clear live operations map 2022-04-19 15:14:09 -07:00
tools Apply clang-tidy fixes for readability-identifier-naming in OpFormatGen.cpp (NFC) 2022-04-16 06:36:12 +00:00
unittests [mlir][interfaces] Fix infinite loop in insideMutuallyExclusiveRegions 2022-04-19 16:28:52 +09:00
utils [mlir] Fix a typo to load lsp-mode correctly. 2022-04-14 00:04:40 +00:00
.clang-format
.clang-tidy
CMakeLists.txt mlir: set CMAKE_INCLUDE_CURRENT_DIR to fix out-of-tree builds 2022-03-19 18:22:09 -05:00
LICENSE.TXT
README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.