-
Notifications
You must be signed in to change notification settings - Fork 34
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
Callbacks with return values #610
Callbacks with return values #610
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #610 +/- ##
=======================================
Coverage 99.41% 99.41%
=======================================
Files 54 55 +1
Lines 9053 9109 +56
Branches 684 694 +10
=======================================
+ Hits 9000 9056 +56
Misses 28 28
Partials 25 25 ☔ View full report in Codecov by Sentry. |
659b5d3
to
8cf8b3a
Compare
9cfb321
to
229b4e6
Compare
This reverts commit cbb42a1.
e6e7293
to
d28e199
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 @erick-xanadu, it looks good! I have left some questions. Could you also add a call back test (e2e in python) of a more elaborated function?
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.
I don't have much, just two comments when I briefly looked at it last week :)
Co-authored-by: David Ittah <dime10@users.noreply.github.com>
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.
Nice work @erick-xanadu
Just some thoughts and suggestions
Co-authored-by: Lee James O'Riordan <mlxd@users.noreply.github.com>
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.
Nice work @erick-xanadu
Nothing more from my side.
Context: Adds support for callbacks with return values.
Description of the Change: The callback will flatten the returns and cast them to unranked_memrefs. The unranked_memrefs are copied over using mlir_c_runner's library.
Benefits: Callbacks may have return values
Possible Drawbacks: None.
Related GitHub Issues: None.
[sc-47690]