A patched build of the MLIR Loc Explorer VS Code / Cursor extension
(original by tingqli, publisher ltqusst, MIT-licensed) that makes its
loc(...) cross-file linking work with FlyDSL's MLIR dumps, plus an
English-translated UI.
Use it to open a directory of FlyDSL pass-stage dumps (00_*.mlir … *.ll,
*.s) side by side and follow each op back to its source line and across
lowering stages.
The upstream extension only understood classic MLIR FileLineColLoc
(loc("file":L:C)). FlyDSL's newer LLVM emits FileLineColRange
(loc("file":L:C to :C2)), so the linking silently matched almost nothing.
This build fixes that and translates the (Chinese) UI strings to English.
See CHANGES.md for the exact edits.
Download dist/mlir-loc-explorer-1.0.4.vsix, then either:
cursor --install-extension dist/mlir-loc-explorer-1.0.4.vsix
# or: code --install-extension dist/mlir-loc-explorer-1.0.4.vsixOr in Cursor: Extensions panel → … menu → Install from VSIX….
After installing, run Developer: Reload Window.
- Generate FlyDSL dumps with debug info + IR dump enabled (see
docs/flydsl-dump-setup.md). - Right-click the dump folder (the one directly containing the
.mlirfiles) → MLIR: Open Loc Explorer Here, or run MLIR: Open Loc Explorer (Select Directory). - Pick a stage in one pane and the source file (or another stage) in the other. Hover a line to link, click to lock.
The patched extension source is included in this repo. To repackage the VSIX:
./build.sh # produces dist/mlir-loc-explorer-<version>.vsixOriginal project: https://github.com/tingqli/web-space Please consider sending these fixes upstream so this fork can be retired.
MIT — see extension/LICENSE.txt. Original
copyright © 2026 tingqli. Modifications retain the same MIT license.