mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Rename tier 2 redundancy eliminator to optimizer (#115888)
The original name is just too much of a mouthful.
This commit is contained in:
parent
7259480957
commit
c0fdfba7ff
12 changed files with 30 additions and 30 deletions
|
|
@ -83,11 +83,11 @@ Python/deepfreeze/*.c
|
|||
Python/frozen_modules/*.h
|
||||
Python/generated_cases.c.h
|
||||
Python/executor_cases.c.h
|
||||
Python/tier2_redundancy_eliminator_cases.c.h
|
||||
Python/optimizer_cases.c.h
|
||||
|
||||
# not actually source
|
||||
Python/bytecodes.c
|
||||
Python/tier2_redundancy_eliminator_bytecodes.c
|
||||
Python/optimizer_bytecodes.c
|
||||
|
||||
# mimalloc
|
||||
Objects/mimalloc/*.c
|
||||
|
|
|
|||
|
|
@ -13,9 +13,9 @@ What's currently here:
|
|||
- `parser.py` helper for interactions with `parsing.py`
|
||||
- `tierN_generator.py`: a couple of driver scripts to read `Python/bytecodes.c` and
|
||||
write `Python/generated_cases.c.h` (and several other files)
|
||||
- `tier2_abstract_generator.py`: reads `Python/bytecodes.c` and
|
||||
`Python/tier2_redundancy_eliminator_bytecodes.c` and writes
|
||||
`Python/tier2_redundancy_eliminator_cases.c.h`
|
||||
- `optimizer_generator.py`: reads `Python/bytecodes.c` and
|
||||
`Python/optimizer_bytecodes.c` and writes
|
||||
`Python/optimizer_cases.c.h`
|
||||
- `stack.py`: code to handle generalized stack effects
|
||||
- `cwriter.py`: code which understands tokens and how to format C code;
|
||||
main class: `CWriter`
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"""Generate the cases for the tier 2 redundancy eliminator/abstract interpreter.
|
||||
Reads the instruction definitions from bytecodes.c. and tier2_redundancy_eliminator.bytecodes.c
|
||||
Writes the cases to tier2_redundancy_eliminator_cases.c.h, which is #included in Python/optimizer_analysis.c.
|
||||
"""Generate the cases for the tier 2 optimizer.
|
||||
Reads the instruction definitions from bytecodes.c and optimizer_bytecodes.c
|
||||
Writes the cases to optimizer_cases.c.h, which is #included in Python/optimizer_analysis.c.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
|
|
@ -30,8 +30,8 @@ from typing import TextIO, Iterator
|
|||
from lexer import Token
|
||||
from stack import StackOffset, Stack, SizeMismatch, UNUSED
|
||||
|
||||
DEFAULT_OUTPUT = ROOT / "Python/tier2_redundancy_eliminator_cases.c.h"
|
||||
DEFAULT_ABSTRACT_INPUT = ROOT / "Python/tier2_redundancy_eliminator_bytecodes.c"
|
||||
DEFAULT_OUTPUT = ROOT / "Python/optimizer_cases.c.h"
|
||||
DEFAULT_ABSTRACT_INPUT = ROOT / "Python/optimizer_bytecodes.c"
|
||||
|
||||
|
||||
def validate_uop(override: Uop, uop: Uop) -> None:
|
||||
Loading…
Add table
Add a link
Reference in a new issue