Get a context with the dialects required by the compiler.
Source code in src/xdsl_jax/compiler.py
| def get_context() -> Context:
"""Get a context with the dialects required by the compiler."""
ctx = Context()
ctx.load_dialect(arith.Arith)
ctx.load_dialect(builtin.Builtin)
return ctx
|