Marimo
marimo
asm_html(asm: str) -> mo.Html
Returns a Marimo-optimised representation of the assembly code passed in.
Source code in xdsl/utils/marimo.py
13 14 15 16 17 | |
module_html(module: ModuleOp) -> mo.Html
Returns a Marimo-optimised representation of the module passed in.
Source code in xdsl/utils/marimo.py
20 21 22 23 24 | |
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
27 28 29 30 31 32 33 34 35 36 37 38 39 | |
module_md(module: ModuleOp) -> mo.Html
Source code in xdsl/utils/marimo.py
42 43 | |
pipeline_titles(passes: Sequence[ModulePass]) -> list[str]
Source code in xdsl/utils/marimo.py
46 47 48 49 50 51 52 53 54 55 56 57 58 | |
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.
Source code in xdsl/utils/marimo.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |