mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-106149: move unconditional jump direction resolution from optimizer to assembler (#106291)
This commit is contained in:
parent
d3abc9b516
commit
200f255411
4 changed files with 44 additions and 20 deletions
|
@ -1310,10 +1310,10 @@ class Analyzer:
|
|||
|
||||
def write_pseudo_instrs(self) -> None:
|
||||
"""Write the IS_PSEUDO_INSTR macro"""
|
||||
self.out.emit("\n\n#define IS_PSEUDO_INSTR(OP) \\")
|
||||
self.out.emit("\n\n#define IS_PSEUDO_INSTR(OP) ( \\")
|
||||
for op in self.pseudos:
|
||||
self.out.emit(f" ((OP) == {op}) || \\")
|
||||
self.out.emit(f" 0")
|
||||
self.out.emit(f" 0)")
|
||||
|
||||
def write_uop_items(self, make_text: typing.Callable[[str, int], str]) -> None:
|
||||
"""Write '#define XXX NNN' for each uop"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue