aboutsummaryrefslogtreecommitdiff
path: root/mlir/include/mlir-c/IR.h
diff options
context:
space:
mode:
authorNicolas Vasilache <nico.vasilache@amd.com>2025-07-04 10:32:39 +0200
committerNicolas Vasilache <nico.vasilache@amd.com>2025-07-04 10:51:43 +0200
commit2b8f82b2bad6b2ada988fb2b874d676aa748a35b (patch)
treecfb669d83bbe5ad73c4378a2a272c254c485bfb7 /mlir/include/mlir-c/IR.h
parent34f124b06ffd3a4e5befafe3cf5daf7753f415ff (diff)
downloadllvm-users/nico/python-1.zip
llvm-users/nico/python-1.tar.gz
llvm-users/nico/python-1.tar.bz2
[mlir][python] Add utils for more pythonic context creation and registration managementusers/nico/python-1
Co-authored-by: Fabian Mora <fmora.dev@gmail.com Co-authored-by: Oleksandr "Alex" Zinenko <git@ozinenko.com> Co-authored-by: Tres <tpopp@users.noreply.github.com>
Diffstat (limited to 'mlir/include/mlir-c/IR.h')
-rw-r--r--mlir/include/mlir-c/IR.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mlir/include/mlir-c/IR.h b/mlir/include/mlir-c/IR.h
index 81299c7..877aa73 100644
--- a/mlir/include/mlir-c/IR.h
+++ b/mlir/include/mlir-c/IR.h
@@ -143,6 +143,10 @@ MLIR_CAPI_EXPORTED MlirDialect mlirContextGetOrLoadDialect(MlirContext context,
MLIR_CAPI_EXPORTED void mlirContextEnableMultithreading(MlirContext context,
bool enable);
+/// Retrieve threading mode current value as controlled by
+/// mlirContextEnableMultithreading.
+MLIR_CAPI_EXPORTED bool mlirContextIsMultithreadingEnabled(MlirContext context);
+
/// Eagerly loads all available dialects registered with a context, making
/// them available for use for IR construction.
MLIR_CAPI_EXPORTED void