[mlir][py] Enable loading only specified dialects during creation. (#121421)
commitc703b4645c79e889fd6a0f3f64f01f957d981aa4
authorJacques Pienaar <jpienaar@google.com>
Thu, 2 Jan 2025 22:40:15 +0000 (2 14:40 -0800)
committerGitHub <noreply@github.com>
Thu, 2 Jan 2025 22:40:15 +0000 (2 14:40 -0800)
treed4821f83966e7cd7e786b2042cb2563760f81818
parent4b577830033066cfd1b2acf4fcf39950678b27bd
[mlir][py] Enable loading only specified dialects during creation. (#121421)

Gives option post as global list as well as arg to control which
dialects are loaded during context creation. This enables setting either
a good base set or skipping in individual cases.
mlir/python/mlir/_mlir_libs/__init__.py
mlir/python/mlir/ir.py
mlir/test/python/ir/dialects.py