-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[mypyc] Add match
statement support
#13953
Commits on Oct 9, 2022
-
Add
match
statement entrypoint:Still getting a grip with how mypyc does things, but I feel like I am at a spot where I can actually start doing things now.
Configuration menu - View commit details
-
Copy full SHA for 3e6744e - Browse repository at this point
Copy the full SHA 3e6744eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39f366d - Browse repository at this point
Copy the full SHA 39f366dView commit details
Commits on Oct 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8bee07a - Browse repository at this point
Copy the full SHA 8bee07aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0883015 - Browse repository at this point
Copy the full SHA 0883015View commit details
Commits on Oct 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e646c44 - Browse repository at this point
Copy the full SHA e646c44View commit details -
Configuration menu - View commit details
-
Copy full SHA for b27b380 - Browse repository at this point
Copy the full SHA b27b380View commit details -
Configuration menu - View commit details
-
Copy full SHA for f1e6a30 - Browse repository at this point
Copy the full SHA f1e6a30View commit details -
Configuration menu - View commit details
-
Copy full SHA for 31e3ace - Browse repository at this point
Copy the full SHA 31e3aceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 538d488 - Browse repository at this point
Copy the full SHA 538d488View commit details -
Configuration menu - View commit details
-
Copy full SHA for b653335 - Browse repository at this point
Copy the full SHA b653335View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2870c8e - Browse repository at this point
Copy the full SHA 2870c8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 988769d - Browse repository at this point
Copy the full SHA 988769dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cae5f8 - Browse repository at this point
Copy the full SHA 6cae5f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 856dc85 - Browse repository at this point
Copy the full SHA 856dc85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65c9aae - Browse repository at this point
Copy the full SHA 65c9aaeView commit details
Commits on Oct 12, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 2955d9f - Browse repository at this point
Copy the full SHA 2955d9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96fb472 - Browse repository at this point
Copy the full SHA 96fb472View commit details -
Configuration menu - View commit details
-
Copy full SHA for f961fd0 - Browse repository at this point
Copy the full SHA f961fd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 899c954 - Browse repository at this point
Copy the full SHA 899c954View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcf84e0 - Browse repository at this point
Copy the full SHA dcf84e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb2dc2d - Browse repository at this point
Copy the full SHA eb2dc2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 522461d - Browse repository at this point
Copy the full SHA 522461dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ce67d9 - Browse repository at this point
Copy the full SHA 8ce67d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c364489 - Browse repository at this point
Copy the full SHA c364489View commit details -
Configuration menu - View commit details
-
Copy full SHA for d43e8ca - Browse repository at this point
Copy the full SHA d43e8caView commit details
Commits on Oct 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for acdeb33 - Browse repository at this point
Copy the full SHA acdeb33View commit details -
Configuration menu - View commit details
-
Copy full SHA for beb1476 - Browse repository at this point
Copy the full SHA beb1476View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d8cbc3 - Browse repository at this point
Copy the full SHA 4d8cbc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for a332551 - Browse repository at this point
Copy the full SHA a332551View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8fd6546 - Browse repository at this point
Copy the full SHA 8fd6546View commit details -
Configuration menu - View commit details
-
Copy full SHA for 42b8d58 - Browse repository at this point
Copy the full SHA 42b8d58View commit details -
Configuration menu - View commit details
-
Copy full SHA for 130647e - Browse repository at this point
Copy the full SHA 130647eView commit details
Commits on Oct 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for cc9f375 - Browse repository at this point
Copy the full SHA cc9f375View commit details
Commits on Oct 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 331531b - Browse repository at this point
Copy the full SHA 331531bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92b05b8 - Browse repository at this point
Copy the full SHA 92b05b8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e1a2ad - Browse repository at this point
Copy the full SHA 2e1a2adView commit details -
Add basic AsPattern support for ValuePattern:
Since the AsPattern binds a value to name, it is very coupled to the pattern that is actually being built. There is (in general) 3 stages to a typical pattern match: 1. Converting the expression to a value/register 2. Checking if the match was successful 3. Assigning the value to a variable if it is an AsPattern For this to work though, steps 2 and 3 need to be done at the same time, because the jump must jump to a block which sets the variable. Maybe I am wrong, and I can just assign to a variable, and if the match did not pass, it will simply be reassigned.
Configuration menu - View commit details
-
Copy full SHA for c55236e - Browse repository at this point
Copy the full SHA c55236eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0af9b24 - Browse repository at this point
Copy the full SHA 0af9b24View commit details -
Configuration menu - View commit details
-
Copy full SHA for aedd1a6 - Browse repository at this point
Copy the full SHA aedd1a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b95596 - Browse repository at this point
Copy the full SHA 5b95596View commit details
Commits on Oct 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 25d0edc - Browse repository at this point
Copy the full SHA 25d0edcView commit details -
Configuration menu - View commit details
-
Copy full SHA for b85f178 - Browse repository at this point
Copy the full SHA b85f178View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9293549 - Browse repository at this point
Copy the full SHA 9293549View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2132f78 - Browse repository at this point
Copy the full SHA 2132f78View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5dd161 - Browse repository at this point
Copy the full SHA c5dd161View commit details -
Configuration menu - View commit details
-
Copy full SHA for c64c343 - Browse repository at this point
Copy the full SHA c64c343View commit details -
Configuration menu - View commit details
-
Copy full SHA for 49d60c8 - Browse repository at this point
Copy the full SHA 49d60c8View commit details
Commits on Oct 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1deecb4 - Browse repository at this point
Copy the full SHA 1deecb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for df4a146 - Browse repository at this point
Copy the full SHA df4a146View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0376526 - Browse repository at this point
Copy the full SHA 0376526View commit details
Commits on Oct 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5e479b0 - Browse repository at this point
Copy the full SHA 5e479b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 820b9bd - Browse repository at this point
Copy the full SHA 820b9bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 29eadd5 - Browse repository at this point
Copy the full SHA 29eadd5View commit details -
Configuration menu - View commit details
-
Copy full SHA for d538d69 - Browse repository at this point
Copy the full SHA d538d69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 553e41c - Browse repository at this point
Copy the full SHA 553e41cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c8b4c5 - Browse repository at this point
Copy the full SHA 5c8b4c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec128ad - Browse repository at this point
Copy the full SHA ec128adView commit details
Commits on Oct 23, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1b0523b - Browse repository at this point
Copy the full SHA 1b0523bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 626d8f1 - Browse repository at this point
Copy the full SHA 626d8f1View commit details -
For some reason PyMapping_Check returns true for string types, dont know why. This probably means I have to to do a subclass check.
Configuration menu - View commit details
-
Copy full SHA for 3bb2e55 - Browse repository at this point
Copy the full SHA 3bb2e55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59f140e - Browse repository at this point
Copy the full SHA 59f140eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67efc08 - Browse repository at this point
Copy the full SHA 67efc08View commit details -
Configuration menu - View commit details
-
Copy full SHA for e57f0a1 - Browse repository at this point
Copy the full SHA e57f0a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 214dcea - Browse repository at this point
Copy the full SHA 214dceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad82d9f - Browse repository at this point
Copy the full SHA ad82d9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for c59c465 - Browse repository at this point
Copy the full SHA c59c465View commit details -
Get unbound sequence capture working at end of list (almost):
We need to do a check to see that the list is not too short for the number of patterns we have. Currently there is a failing test, which will be fixed momentarily.
Configuration menu - View commit details
-
Copy full SHA for fc74fa2 - Browse repository at this point
Copy the full SHA fc74fa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 739962f - Browse repository at this point
Copy the full SHA 739962fView commit details
Commits on Oct 24, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0115381 - Browse repository at this point
Copy the full SHA 0115381View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38a5cc5 - Browse repository at this point
Copy the full SHA 38a5cc5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 04f0cbc - Browse repository at this point
Copy the full SHA 04f0cbcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 360f686 - Browse repository at this point
Copy the full SHA 360f686View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9714a2c - Browse repository at this point
Copy the full SHA 9714a2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5b70d51 - Browse repository at this point
Copy the full SHA 5b70d51View commit details
Commits on Oct 25, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 25564c8 - Browse repository at this point
Copy the full SHA 25564c8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9601a23 - Browse repository at this point
Copy the full SHA 9601a23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 16e8d12 - Browse repository at this point
Copy the full SHA 16e8d12View commit details -
Configuration menu - View commit details
-
Copy full SHA for b241029 - Browse repository at this point
Copy the full SHA b241029View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b2cfc3 - Browse repository at this point
Copy the full SHA 4b2cfc3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ede2e14 - Browse repository at this point
Copy the full SHA ede2e14View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0b30e8b - Browse repository at this point
Copy the full SHA 0b30e8bView commit details
Commits on Oct 27, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 8f0a3bf - Browse repository at this point
Copy the full SHA 8f0a3bfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 96cd6b1 - Browse repository at this point
Copy the full SHA 96cd6b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47f9682 - Browse repository at this point
Copy the full SHA 47f9682View commit details -
Configuration menu - View commit details
-
Copy full SHA for 532ff8a - Browse repository at this point
Copy the full SHA 532ff8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for f73b60a - Browse repository at this point
Copy the full SHA f73b60aView commit details -
Configuration menu - View commit details
-
Copy full SHA for b525188 - Browse repository at this point
Copy the full SHA b525188View commit details -
Configuration menu - View commit details
-
Copy full SHA for e01090c - Browse repository at this point
Copy the full SHA e01090cView commit details
Commits on Oct 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a117794 - Browse repository at this point
Copy the full SHA a117794View commit details -
Turns out that the `-ffat-lto-objects` flag is only available in GCC, and clang will complain if there are any unused optimization flags passed. Adding the `-Wno-ignored-optimization-argument` flag seems to fix this.
Configuration menu - View commit details
-
Copy full SHA for 22c1327 - Browse repository at this point
Copy the full SHA 22c1327View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3836f00 - Browse repository at this point
Copy the full SHA 3836f00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f18437 - Browse repository at this point
Copy the full SHA 4f18437View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f218b9 - Browse repository at this point
Copy the full SHA 4f218b9View commit details
Commits on Oct 31, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 6c5de33 - Browse repository at this point
Copy the full SHA 6c5de33View commit details -
Remove previously added command-line arguments:
These lines will be moved to a separate PR so that they can be reviewed separately from the `match` stuff going on here.
Configuration menu - View commit details
-
Copy full SHA for c8f8c84 - Browse repository at this point
Copy the full SHA c8f8c84View commit details -
Fix flags not being defined in Python 3.9 and below:
Since the `Py_TPFLAGS_MAPPING` and `Py_TPFLAGS_SEQUENCE` are specific to the new pattern matching feature, they are not defined for Python 3.9 and below. Now they are defined if they don't exist, which should fix the issue.
Configuration menu - View commit details
-
Copy full SHA for dff0c71 - Browse repository at this point
Copy the full SHA dff0c71View commit details
Commits on Nov 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 03fab7e - Browse repository at this point
Copy the full SHA 03fab7eView commit details
Commits on Nov 5, 2022
-
It would appear that 9125155 is now causing issues with the IR tests. Reverting that commit seems to fix it, but I cannot seem to remember why I added it in the first place, and the build artifacts have long since expired.
Configuration menu - View commit details
-
Copy full SHA for 07486a0 - Browse repository at this point
Copy the full SHA 07486a0View commit details
Commits on Nov 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 85ec2d7 - Browse repository at this point
Copy the full SHA 85ec2d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9728bc6 - Browse repository at this point
Copy the full SHA 9728bc6View commit details
Commits on Dec 1, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5bb3e28 - Browse repository at this point
Copy the full SHA 5bb3e28View commit details -
* Use faster "isinstance" op if the expression is a built-in type * Add type annotations to run tests * Add type annotated IR example * Add todo comments
Configuration menu - View commit details
-
Copy full SHA for af5bca8 - Browse repository at this point
Copy the full SHA af5bca8View commit details