Mercurial > lcfOS
comparison python/ppci/codegen/codegen.py @ 316:56e6ff84f646
Fixed burn led demo
author | Windel Bouwman |
---|---|
date | Sat, 21 Dec 2013 13:13:26 +0100 |
parents | 2c9768114877 |
children | 6f4753202b9a |
comparison
equal
deleted
inserted
replaced
315:084cccaa5deb | 316:56e6ff84f646 |
---|---|
25 # Create a frame for this function: | 25 # Create a frame for this function: |
26 frame = self.target.FrameClass(irfunc.name) | 26 frame = self.target.FrameClass(irfunc.name) |
27 | 27 |
28 # Canonicalize the intermediate language: | 28 # Canonicalize the intermediate language: |
29 canonicalize(irfunc, frame) | 29 canonicalize(irfunc, frame) |
30 self.logger.info('after canonicalize', extra={'irfunc':irfunc}) | 30 self.logger.info('after canonicalize', extra={'irfunc': irfunc}) |
31 self.verifier.verify_function(irfunc) | 31 self.verifier.verify_function(irfunc) |
32 self.ins_sel.munchFunction(irfunc, frame) | 32 self.ins_sel.munchFunction(irfunc, frame) |
33 self.logger.info('Selected instructions', extra={'ppci_frame':frame}) | 33 self.logger.info('Selected instructions', extra={'ppci_frame': frame}) |
34 | 34 |
35 # Do register allocation: | 35 # Do register allocation: |
36 self.ra.allocFrame(frame) | 36 self.ra.allocFrame(frame) |
37 self.logger.info('Registers allocated, now adding final glue') | 37 self.logger.info('Registers allocated, now adding final glue') |
38 # TODO: Peep-hole here? | 38 # TODO: Peep-hole here? |