[Mlir-commits] [mlir] [mlir][python] allow upstream dialect registration (PR #74252)
Maksim Levental
llvmlistbot at llvm.org
Mon Dec 4 04:41:19 PST 2023
makslevental wrote:
> Does this intend to register the dialects, i.e. make them available to the parser? Does this rather intend to load the dialects into the context, i.e. allow one to construct objects from these dialects?
For upstream dialects registration is sufficient because the auto-loading mechanisms are infallible. That's why I proposed this version rather than the one alluded to the issue (in terms of loading) because this version can indeed be a side-effecting import, which as you say is very fine UX.
> mechanism to override this behavior should we need a clean context for some reason
That's doable since now the default registry is an exposed global.
https://github.com/llvm/llvm-project/pull/74252
More information about the Mlir-commits
mailing list