Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.1k
Star
74.2k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
GH-93678: reduce boilerplate and code repetition in the compiler
- #93682
#93682
Merged
iritkatriel
merged 18 commits into
python:main
python/cpython:main
from
iritkatriel:codegen-reduce-repetition
iritkatriel/cpython:codegen-reduce-repetition
Copy head branch name to clipboard
Jun 14, 2022
Conversation
Commits
18
(18)
Checks
Files changed
Merged
GH-93678: reduce boilerplate and code repetition in the compiler
#93682
iritkatriel
merged 18 commits into
python:main
python/cpython:main
from
iritkatriel:codegen-reduce-repetition
iritkatriel/cpython:codegen-reduce-repetition
Copy head branch name to clipboard
Commits
Commits on Jun 10, 2022
move line/noline to arg and remove _noline version of functions
iritkatriel
committed
996be64
View commit details
Copy full SHA for 996be64
Browse repository at this point
add struct location to reduce boilerplate
iritkatriel
committed
af31e92
View commit details
Copy full SHA for af31e92
Browse repository at this point
merge basicblock_addop, basicblock_addop_i and basicblock_add_jump into one functions to reduce unnecessary repetition
iritkatriel
committed
f8a0767
View commit details
Copy full SHA for f8a0767
Browse repository at this point
add news
iritkatriel
committed
430b4b9
View commit details
Copy full SHA for 430b4b9
Browse repository at this point
assume that oparg is < (1<<30)
iritkatriel
committed
66d5609
View commit details
Copy full SHA for 66d5609
Browse repository at this point
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetition
iritkatriel
committed
7670a7c
View commit details
Copy full SHA for 7670a7c
Browse repository at this point
use the new location struct for the compiler unit's location
iritkatriel
committed
7d74572
View commit details
Copy full SHA for 7d74572
Browse repository at this point
use the new location struct for the instruction location
iritkatriel
committed
016ebbc
View commit details
Copy full SHA for 016ebbc
Browse repository at this point
basicblock_addop takes location by reference
iritkatriel
committed
5e06cad
View commit details
Copy full SHA for 5e06cad
Browse repository at this point
LOCATION needs to return a const
iritkatriel
committed
c23e2cf
View commit details
Copy full SHA for c23e2cf
Browse repository at this point
define static no_location in function scope
iritkatriel
committed
fc74555
View commit details
Copy full SHA for fc74555
Browse repository at this point
are we const now?
iritkatriel
committed
9220fc1
View commit details
Copy full SHA for 9220fc1
Browse repository at this point
trivial stuff
iritkatriel
committed
9b5dc34
View commit details
Copy full SHA for 9b5dc34
Browse repository at this point
Commits on Jun 13, 2022
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetition
iritkatriel
committed
5330060
View commit details
Copy full SHA for 5330060
Browse repository at this point
remove two unused fields from struct assembler
iritkatriel
committed
414e26a
View commit details
Copy full SHA for 414e26a
Browse repository at this point
define NO_LOCATION as a static const in global scope
iritkatriel
committed
26dc190
View commit details
Copy full SHA for 26dc190
Browse repository at this point
Commits on Jun 14, 2022
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetition
iritkatriel
committed
98d24f2
View commit details
Copy full SHA for 98d24f2
Browse repository at this point
Merge remote-tracking branch 'upstream/main' into codegen-reduce-repetition
iritkatriel
committed
7851ccd
View commit details
Copy full SHA for 7851ccd
Browse repository at this point
You can’t perform that action at this time.