Linear layer: linalg → loops → LLVM. Edits rerun the pipeline.

Passes

No run yet.

Pipeline
Pass

MLIR Pipelines

Replaces the passes below; Revert undoes it.

Drag, or press Enter for a menu, to move it among the passes next to it; up and down arrows move it one place; Delete removes it.

    Left step

    Right step

    What runs on every edit.

    The binary is the stock mlir-opt driver with every upstream dialect and pass registered, built from LLVM with Emscripten. It takes the same command line as the one on your machine, and this page passes it:

    mlir-opt in.mlir --pass-pipeline='…' \
      --mlir-print-ir-after-all --mlir-print-ir-module-scope \
      --mlir-disable-threading -o out.mlir

    Each step is one of the IR dumps that --mlir-print-ir-after-all writes to stderr; anything else on stderr is shown as a diagnostic, verbatim. Step 0 is your input after one run with an empty pipeline, printed the same way the dumps are, so the first diff shows the first pass and not the printer.

    Your IR never leaves the tab: there is no server to send it to. Share packs your source, both pipelines and the two steps on screen into the link itself, after the #, the part of a URL browsers never send to a server. mlir-opt runs in a worker, so the page stays responsive while it works.

    How to read it, with the examples: Stepping through an MLIR pass pipeline in the browser.

    Found a bug, or missing a pass? File an issue on GitHub (opens in a new tab); it takes a GitHub account.