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

[FIRRTL][CHIRRTL] Add dialect C API #5472

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

SpriteOvO
Copy link
Member

This PR adds C API for FIRRTL and CHIRRTL dialects, which allows foreign languages to construct FIRRTL through MLIR C API.

@SpriteOvO SpriteOvO force-pushed the firrtl-chirrtl-dialect-c-api branch 2 times, most recently from 7c4b2aa to 6a9d87f Compare June 26, 2023 03:00
@SpriteOvO SpriteOvO force-pushed the firrtl-chirrtl-dialect-c-api branch from 6a9d87f to 21cb6b4 Compare June 26, 2023 03:23
Copy link
Contributor

@darthscsi darthscsi left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mikeurbach mikeurbach left a comment

Choose a reason for hiding this comment

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

This looks like a good addition. There was a previous PR to add some of the type APIs, but it hasn't merged: #5192. We should figure out if this will subsume that one, or if we should just merge the previous PR, in which case some of this becomes unnecessary.

@seldridge seldridge merged commit 243e6c3 into llvm:main Jun 27, 2023
5 checks passed
@SpriteOvO
Copy link
Member Author

@mikeurbach What #5192 provides is determiners for types, and getters for Aggregate Types, which happens to be missing from this PR - it provides builders only. I think it would be nice to merge that PR as well, if it gets rebase.

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.

None yet

4 participants