[Mlir-commits] [mlir] [mlir][python] enable registering dialects with the default `Context` (PR #72488)
Stella Laurenzo
llvmlistbot at llvm.org
Mon Nov 27 12:01:17 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"):
----------------
stellaraccident wrote:
I don't remember if this is still a thing, but didn't it used to be that double underscore prefixed attributes were *lexically* mangled? I've got it stuck in my "never do that" category, but may be a legacy lint check in my brain :)
https://github.com/llvm/llvm-project/pull/72488
More information about the Mlir-commits
mailing list