Mercurial > lcfOS
diff python/ppci/codegen/codegen.py @ 334:6f4753202b9a
Added more recipes
author | Windel Bouwman |
---|---|
date | Thu, 13 Feb 2014 22:02:08 +0100 |
parents | 56e6ff84f646 |
children | d1ecc493384e |
line wrap: on
line diff
--- a/python/ppci/codegen/codegen.py Sun Feb 09 15:27:57 2014 +0100 +++ b/python/ppci/codegen/codegen.py Thu Feb 13 22:02:08 2014 +0100 @@ -21,20 +21,20 @@ def generateFunc(self, irfunc, outs): """ Generate code for one function into a frame """ - self.logger.info('Generating code for {}'.format(irfunc.name)) + self.logger.debug('Generating code for {}'.format(irfunc.name)) # Create a frame for this function: frame = self.target.FrameClass(irfunc.name) # Canonicalize the intermediate language: canonicalize(irfunc, frame) - self.logger.info('after canonicalize', extra={'irfunc': irfunc}) + self.logger.debug('after canonicalize', extra={'irfunc': irfunc}) self.verifier.verify_function(irfunc) self.ins_sel.munchFunction(irfunc, frame) - self.logger.info('Selected instructions', extra={'ppci_frame': frame}) + self.logger.debug('Selected instructions', extra={'ppci_frame': frame}) # Do register allocation: self.ra.allocFrame(frame) - self.logger.info('Registers allocated, now adding final glue') + self.logger.debug('Registers allocated, now adding final glue') # TODO: Peep-hole here? # Add label and return and stack adjustment: @@ -43,7 +43,7 @@ # Materialize the register allocated instructions into a stream of # real instructions. frame.lower_to(outs) - self.logger.info('Instructions materialized') + self.logger.debug('Instructions materialized') return frame def generate(self, ircode, outs):