doing some set up for when i implement a peephole optimizer

This commit is contained in:
SpookyDervish
2025-09-08 07:49:33 +10:00
parent ae1b9aa43d
commit f78d0e41b0
8 changed files with 38 additions and 46 deletions

11
optimizers/x86_64.py Normal file
View File

@@ -0,0 +1,11 @@
from optimizer import Optimizer
class X86_64Optimizer(Optimizer):
def peephole(self):
lines = []
for line in self.lines:
lines.append(line)
self.final_str = ''.join(lines)
return self.final_str