llvm-project/mlir/test
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
..
Analysis [mlir] Move the Builtin FuncOp to the Func dialect 2022-03-16 17:07:03 -07:00
CAPI [MLIR] Add function to create BFloat16 array attribute 2022-04-19 19:27:06 +00:00
Conversion [mlir][nvgpu] Move mma.sync and ldmatrix in nvgpu dialect 2022-04-14 23:44:52 +00:00
Dialect [mlir][transform] Introduce transform.sequence op 2022-04-19 21:41:02 +02:00
Examples [mlir][CSE] Remove duplicated operations with MemRead side-effect 2022-04-07 10:08:55 +02:00
IR [mlir:NFC] Remove the forward declaration of FuncOp in the mlir namespace 2022-04-18 12:01:55 -07:00
Integration [mlir][sparse][taco] Use the SparseCompiler from python/tools. 2022-04-14 15:17:18 -07:00
Interfaces [mlir] Data layout for integer and float types 2022-03-02 14:56:49 +01:00
Pass Print custom assembly on pass failure by default 2022-04-19 17:29:08 +00:00
Rewrite [mlir:PDL] Expand how native constraint/rewrite functions can be defined 2022-04-06 17:41:59 -07:00
Target Reapply "[OpenMP] Refactor OMPScheduleType enum." 2022-04-18 21:56:47 -05:00
Transforms [mlir][CSE] Add ability to remove commutative operations 2022-04-16 21:09:47 +02:00
Unit Use lit_config.substitute instead of foo % lit_config.params everywhere 2022-03-16 09:57:41 +01:00
lib [mlir][transform] Introduce transform.sequence op 2022-04-19 21:41:02 +02:00
mlir-cpu-runner [mlir] Add a function to print C-strings to RunnerUtils.cpp. 2022-03-21 13:09:09 +01:00
mlir-linalg-ods-gen [mlir][OpDSL] Add support for adding canonicalization patterns. 2022-03-08 15:56:59 +00:00
mlir-lsp-server [mlir:FunctionOpInterface] Rename the "type" attribute to "function_type" 2022-03-16 17:07:04 -07:00
mlir-opt [mlir][nvgpu] Add NVGPU dialect (architectural specific gpu dialect) 2022-04-14 16:33:46 +00:00
mlir-pdll [mlir:PDL] Expand how native constraint/rewrite functions can be defined 2022-04-06 17:41:59 -07:00
mlir-pdll-lsp-server [mlir][PDLL] Add signature help to the PDLL language server 2022-03-19 13:28:24 -07:00
mlir-reduce [mlir] Split out a new ControlFlow dialect from Standard 2022-02-06 14:51:16 -08:00
mlir-spirv-cpu-runner Fix clang-tidy issues in mlir/ (NFC) 2021-12-20 20:25:01 +00:00
mlir-tblgen [mlir][ods][NFC] Move enum attribute definitions from OpBase.td to EnumAttr.td 2022-04-15 16:51:14 +00:00
mlir-translate [mlir-translate] Teach these tools about --allow-unregistered-dialect 2022-02-03 09:00:38 -08:00
mlir-vulkan-runner [mlir] Replace StrEnumAttr -> EnumAttr in core dialects 2022-01-18 17:15:00 +00:00
python [MLIR] [Python] Add a method to clear live operations map 2022-04-19 15:14:09 -07:00
APITest.h Adjust "end namespace" comment in MLIR to match new agree'd coding style 2021-12-08 06:05:26 +00:00
CMakeLists.txt [mlir][Vector] Add integration tests for ArmSVE 2022-03-25 13:21:27 +00:00
lit.cfg.py Mark some MLIR tests as requiring the native target to be configured 2022-01-14 07:23:14 +00:00
lit.site.cfg.py.in [mlir][Vector] Add integration tests for ArmSVE 2022-03-25 13:21:27 +00:00