-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[mypyc] Merge new_list_op and new_set_op #9378
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
Conversation
|
Unfortunately, the 32bit test suite is failing because the offset computation in IR is |
Similar to how we have |
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.
Overall approach looks good. It's great that we can represent such complicated ops in the IR. Left various comments about details. The biggest issues are the type attribute of SetMem (see the comment in refcount.py) and handling of set items.
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 the updates! Looks good now.
|
Thanks for the review! |
This PR builds
new_list_opin irbuild.For empty list, we introduce a
c_custom_opto do the job. To set the following list item, we rely on pointer addition and LoadMem