-
Notifications
You must be signed in to change notification settings - Fork 3
Lambda Comp lowering #588
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
base: main
Are you sure you want to change the base?
Lambda Comp lowering #588
Conversation
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified Files
|
|
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
| func_frame.exhaust() | ||
|
|
||
| last_stmt = func_frame.curr_region.blocks[0].last_stmt | ||
| rtrn_stmt = func.Return(last_stmt.result) |
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.
can you add comment if you are certain the last_stmt.result won't be None? and make pyright happy about it using ignore? Or we should add a check here.
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.
for listcomp it should always have a return so it shouldn't be None. let me take a look to see what I can do
| @@ -0,0 +1,64 @@ | |||
| from kirin import ir | |||
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.
can we remove the comp this is not about lambda in list comprehension?
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.
sure
This PR address #525