[Mlir-commits] [mlir] [MLIR][Python] Make Python-defined dialect loading context-aware (PR #210501)
Renato Golin
llvmlistbot at llvm.org
Sat Jul 18 11:09:15 PDT 2026
================
@@ -980,19 +973,21 @@ def load(
for op in cls.operations:
op._attach_traits()
- _cext.globals._register_dialect_impl(cls.DIALECT_NAMESPACE, cls, replace=reload)
+ _cext.globals._register_dialect_impl(cls.DIALECT_NAMESPACE, cls, replace=True)
----------------
rengolin wrote:
Is there no case where this is `False`? If so, then we can remove the option?
https://github.com/llvm/llvm-project/pull/210501
More information about the Mlir-commits
mailing list