[Mlir-commits] [mlir] [mlir][python] enable registering dialects with the default `Context` (PR #72488)
Maksim Levental
llvmlistbot at llvm.org
Mon Nov 27 13:14:12 PST 2023
================
@@ -56,14 +56,24 @@ def get_include_dirs() -> Sequence[str]:
#
# This facility allows downstreams to customize Context creation to their
# needs.
+
+
+def get_registry():
+ if not hasattr(get_registry, "__registry"):
----------------
makslevental wrote:
> Also, I note that your branch is named "remove_site_initialize_2". I assume this is all in addition to the current approach, which is used and works just fine for what we need it for.
`remove_site_initialize` changed things around a lot (didn't exactly remove but large refactor) and then I had the lightbul that all I needed was this one helper and hence `remove_site_initialize_2`.
https://github.com/llvm/llvm-project/pull/72488
More information about the Mlir-commits
mailing list