GH-111485: Factor out generation of uop IDs from cases generator. (GH-112877)

This commit is contained in:
Mark Shannon 2023-12-11 14:14:36 +00:00 committed by GitHub
parent 97cd45bfdb
commit c27e9d5d17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 368 additions and 98 deletions

View file

@ -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)