Skip to content

aghamari/mlir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MLIR Loc Explorer (FlyDSL-patched build)

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.

Why this fork exists

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.

Install

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.vsix

Or in Cursor: Extensions panel → menu → Install from VSIX….

After installing, run Developer: Reload Window.

Use

  1. Generate FlyDSL dumps with debug info + IR dump enabled (see docs/flydsl-dump-setup.md).
  2. Right-click the dump folder (the one directly containing the .mlir files) → MLIR: Open Loc Explorer Here, or run MLIR: Open Loc Explorer (Select Directory).
  3. Pick a stage in one pane and the source file (or another stage) in the other. Hover a line to link, click to lock.

Build from source

The patched extension source is included in this repo. To repackage the VSIX:

./build.sh        # produces dist/mlir-loc-explorer-<version>.vsix

Upstream / contributing

Original project: https://github.com/tingqli/web-space Please consider sending these fixes upstream so this fork can be retired.

License

MIT — see extension/LICENSE.txt. Original copyright © 2026 tingqli. Modifications retain the same MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors