comparison python/ppci/codegen/codegen.py @ 347:742588fb8cd6 devel

Merge into devel branch
author Windel Bouwman
date Fri, 07 Mar 2014 17:10:21 +0100
parents 3bb7dcfe5529
children 442fb043d149
comparison
equal deleted inserted replaced
343:11c5a8a70c02 347:742588fb8cd6
1 from .. import ir 1 from .. import ir
2 from ..irutils import Verifier 2 from ..irutils import Verifier
3 from ..target import Target 3 from ..target import Target
4 from ppci import CompilerError 4 from .. import CompilerError
5 from .canon import make as canonicalize 5 from .canon import make as canonicalize
6 from .registerallocator import RegisterAllocator 6 from .registerallocator import RegisterAllocator
7 import logging 7 import logging
8 8
9 9
40 # Add label and return and stack adjustment: 40 # Add label and return and stack adjustment:
41 frame.EntryExitGlue3() 41 frame.EntryExitGlue3()
42 42
43 # Materialize the register allocated instructions into a stream of 43 # Materialize the register allocated instructions into a stream of
44 # real instructions. 44 # real instructions.
45 frame.lower_to(outs) 45 self.target.lower_frame_to_stream(frame, outs)
46 self.logger.debug('Instructions materialized') 46 self.logger.debug('Instructions materialized')
47 return frame 47 return frame
48 48
49 def generate(self, ircode, outs): 49 def generate(self, ircode, outs):
50 """ Generate code into output stream """ 50 """ Generate code into output stream """