Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[circt-lec] Accept two MLIR inputs #7450

Merged
merged 4 commits into from
Aug 7, 2024
Merged

Conversation

uenoku
Copy link
Member

@uenoku uenoku commented Aug 6, 2024

Practically it is very useful to verify equivalence between modules in two different MLIR files. This commit changes inputFilename to a list and implements a very simple module merge that moves operations in the second module to the first by resolving the symbol.

@uenoku uenoku force-pushed the dev/hidetou/circt-lec-two-files branch 4 times, most recently from 1f8494e to 4e9f734 Compare August 6, 2024 16:31
Practically it is very useful to verify equivalence between modules
in two different MLIR files. This commit changes `inputFilename` to
a list and merge modules by renaming symbols.
@uenoku uenoku force-pushed the dev/hidetou/circt-lec-two-files branch from 4e9f734 to ab8334b Compare August 6, 2024 16:43
@uenoku uenoku requested review from maerhart and TaoBi22 August 6, 2024 16:44
Copy link
Contributor

@TaoBi22 TaoBi22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of nits, but looks good - thanks a lot for this!

tools/circt-lec/circt-lec.cpp Outdated Show resolved Hide resolved
tools/circt-lec/circt-lec.cpp Outdated Show resolved Hide resolved
@uenoku uenoku merged commit cadbfe0 into main Aug 7, 2024
4 checks passed
@uenoku uenoku deleted the dev/hidetou/circt-lec-two-files branch August 7, 2024 15:21
@fabianschuiki
Copy link
Contributor

Very nice! Thanks for adding this 🥳

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.

3 participants