Parker Schuh
f42e1a7484
Fix tsan problem where the per-thread shared_ptr() can be locked right before the cache is destroyed causing a race where it tries to remove an entry from a destroyed cache.
...
This is a rollforward with fixes of https://reviews.llvm.org/rGbcc10817d5569172ee065015747e226280e9b698 (originally https://reviews.llvm.org/D142394 ). The original patch exposed an asan problem on aarch64, which is fixed by simply calling the context destructors properly.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D143294
2023-02-03 23:54:27 +01:00
Tom Eccles
5d91f79fce
[mlir] Fix -Wstrict-prototypes warning
...
These warnings prevent compilation using clang and
-DLLVM_ENABLE_WERROR=On.
Differential revision: https://reviews.llvm.org/D139322
2022-12-12 12:04:58 +00:00
Denys Shabalin
ed21c9276a
[mlir] Introduce Python bindings for the PDL dialect
...
This change adds full python bindings for PDL, including types and operations
with additional mixins to make operation construction more similar to the PDL
syntax.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D117458
2022-01-19 11:19:56 +01:00
Denys Shabalin
a8a2ee6331
[mlir] Introduce C API for PDL dialect types
...
This change introduces C API helper functions to work with PDL types.
Modification closely follow the format of the https://reviews.llvm.org/D116546 .
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D117221
2022-01-13 15:29:01 +01:00