mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
GH-111485: Factor out generation of uop IDs from cases generator. (GH-112877)
This commit is contained in:
parent
97cd45bfdb
commit
c27e9d5d17
8 changed files with 368 additions and 98 deletions
|
|
@ -109,6 +109,7 @@ class Uop:
|
|||
body: list[lexer.Token]
|
||||
properties: Properties
|
||||
_size: int = -1
|
||||
implicitly_created: bool = False
|
||||
|
||||
def dump(self, indent: str) -> None:
|
||||
print(
|
||||
|
|
@ -328,6 +329,7 @@ def desugar_inst(
|
|||
assert inst.kind == "inst"
|
||||
name = inst.name
|
||||
uop = make_uop("_" + inst.name, inst)
|
||||
uop.implicitly_created = True
|
||||
uops[inst.name] = uop
|
||||
add_instruction(name, [uop], instructions)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue