Marimo
marimo
¶
asm_html(asm: str) -> mo.Html
¶
Returns a Marimo-optimised representation of the assembly code passed in.
module_html(module: ModuleOp) -> mo.Html
¶
Returns a Marimo-optimised representation of the module passed in.
module_str(module: ModuleOp) -> str
¶
Returns a string representation of the module passed in, without the
outer builtin.module operation.
Source code in xdsl/utils/marimo.py
module_md(module: ModuleOp) -> mo.Html
¶
pipeline_titles(passes: Sequence[ModulePass]) -> list[str]
¶
Source code in xdsl/utils/marimo.py
pipeline_html(ctx: Context, module: ModuleOp, passes: Sequence[tuple[mo.Html, ModulePass]]) -> tuple[Context, ModuleOp, mo.Html]
¶
Returns a tuple of the resulting context and module after applying the passes, and the Marimo-optimised representation of the modules throughout compilation.
The input is the input Context, a sequence of tuples of (pass description, module pass).
Marimo's reactive mechanism relies on a graph of values defined in one cell and used in another, and cannot detect mutation by reference, hence the new values instead of the usual mutation.