comparison python/ppci/codegen/codegen.py @ 346:3bb7dcfe5529

expanded arm target
author Windel Bouwman
date Fri, 07 Mar 2014 17:05:32 +0100
parents 86b02c98a717
children 442fb043d149
comparison
equal deleted inserted replaced
345:b4882ff0ed06 346:3bb7dcfe5529
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 """