|
26 | 26 | MacroInstruction, |
27 | 27 | MacroParts, |
28 | 28 | PseudoInstruction, |
29 | | - OverriddenInstructionPlaceHolder, |
30 | 29 | TIER_ONE, |
31 | 30 | TIER_TWO, |
32 | 31 | ) |
@@ -208,8 +207,6 @@ def write_stack_effect_functions(self) -> None: |
208 | 207 | popped_data: list[tuple[AnyInstruction, str]] = [] |
209 | 208 | pushed_data: list[tuple[AnyInstruction, str]] = [] |
210 | 209 | for thing in self.everything: |
211 | | - if isinstance(thing, OverriddenInstructionPlaceHolder): |
212 | | - continue |
213 | 210 | if isinstance(thing, parsing.Macro) and thing.name in self.instrs: |
214 | 211 | continue |
215 | 212 | instr, popped, pushed = self.get_stack_effect_info(thing) |
@@ -393,8 +390,6 @@ def write_metadata(self, metadata_filename: str, pymetadata_filename: str) -> No |
393 | 390 | for thing in self.everything: |
394 | 391 | format: str | None = None |
395 | 392 | match thing: |
396 | | - case OverriddenInstructionPlaceHolder(): |
397 | | - continue |
398 | 393 | case parsing.InstDef(): |
399 | 394 | format = self.instrs[thing.name].instr_fmt |
400 | 395 | case parsing.Macro(): |
@@ -492,8 +487,6 @@ def write_metadata(self, metadata_filename: str, pymetadata_filename: str) -> No |
492 | 487 | # Write metadata for each instruction |
493 | 488 | for thing in self.everything: |
494 | 489 | match thing: |
495 | | - case OverriddenInstructionPlaceHolder(): |
496 | | - continue |
497 | 490 | case parsing.InstDef(): |
498 | 491 | self.write_metadata_for_inst(self.instrs[thing.name]) |
499 | 492 | case parsing.Macro(): |
@@ -774,8 +767,6 @@ def write_instructions( |
774 | 767 | n_macros = 0 |
775 | 768 | for thing in self.everything: |
776 | 769 | match thing: |
777 | | - case OverriddenInstructionPlaceHolder(): |
778 | | - self.write_overridden_instr_place_holder(thing) |
779 | 770 | case parsing.InstDef(): |
780 | 771 | pass |
781 | 772 | case parsing.Macro(): |
@@ -836,14 +827,6 @@ def write_abstract_interpreter_instructions( |
836 | 827 | file=sys.stderr, |
837 | 828 | ) |
838 | 829 |
|
839 | | - def write_overridden_instr_place_holder( |
840 | | - self, place_holder: OverriddenInstructionPlaceHolder |
841 | | - ) -> None: |
842 | | - self.out.emit("") |
843 | | - self.out.emit( |
844 | | - f"{self.out.comment} TARGET({place_holder.name}) overridden by later definition" |
845 | | - ) |
846 | | - |
847 | 830 |
|
848 | 831 | def is_super_instruction(mac: MacroInstruction) -> bool: |
849 | 832 | if ( |
|
0 commit comments