-
Notifications
You must be signed in to change notification settings - Fork 298
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][CAPI] Fix undefined reference for mlirExportFIRRTL
#5790
Conversation
7fca40a
to
44935b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing this out, and especially for adding a test for this behavior. I left a couple comments, but getting this working with a unit test will be great.
44935b0
to
d3cbf7f
Compare
21c2c29
to
bb65d3d
Compare
Thanks for the reviews from @seldridge @mikeurbach, changes applied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for adding the "latest" static function and for dramatically reducing the test.
// CHECK-NEXT: output out : UInt<32> @[- 4:45] | ||
// CHECK-EMPTY: | ||
// CHECK-NEXT: connect out, and(in_1, in_2) @[- 6:5] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a massive reduction in the size of this test from the original PR. Thanks! This helps test maintainability a lot.
static FIRVersion latestFIRVersion() { return {3, 0, 0}; } | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was missing. Thanks!
Commit 172afc3 added a new argument
FIRVersion version
to themlirExportFIRRTL
function, but didn't update its declaration. It breaks the compile for this function.This PR removed that argument to fix the problem, since
FIRVersion
does not have a CAPI yet, and added a simple test to prevent regression.