Skip to content

Add CIRCT standalone example#10564

Draft
uenoku wants to merge 2 commits into
llvm:mainfrom
uenoku:dev/hidetou/stand-alone
Draft

Add CIRCT standalone example#10564
uenoku wants to merge 2 commits into
llvm:mainfrom
uenoku:dev/hidetou/stand-alone

Conversation

@uenoku
Copy link
Copy Markdown
Member

@uenoku uenoku commented May 30, 2026

Add examples/circt-standalone, following MLIR’s standalone example structure.

This provides boilerplate for an out-of-tree CIRCT dialect, pass, circt-standalone-opt, plugin, and lit tests.
CIRCT didn’t have an upstream example for this setup, even though we use plugin etc internally.
I’ve had to recreate this CMake/lit/plugin scaffolding repeatedly, so keeping a working example upstream should help downstream users (at least for me).

Also moves the old tutorial wire-renaming pass into the standalone example, where it fits better.

Assisted-by: codex: gpt 5.5

@uenoku uenoku requested review from darthscsi and teqdruid as code owners May 30, 2026 03:52
@uenoku uenoku marked this pull request as draft May 30, 2026 03:52
@uenoku uenoku changed the title Dev/hidetou/stand alone Add CIRCT standalone example May 30, 2026
@uenoku uenoku force-pushed the dev/hidetou/stand-alone branch 2 times, most recently from f1076a8 to 40dad36 Compare May 30, 2026 03:56
@uenoku uenoku force-pushed the dev/hidetou/stand-alone branch from 40dad36 to 5c79494 Compare May 30, 2026 04:32
@circt-bot
Copy link
Copy Markdown

circt-bot Bot commented May 30, 2026

Results of circt-tests run for 5c79494 compared to results for 561b74c: no change to test results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant