comparison python/ppci/transform.py @ 301:6753763d3bec

merge codegen into ppci package
author Windel Bouwman
date Thu, 05 Dec 2013 17:02:38 +0100
parents 158068af716c
children 56e6ff84f646
comparison
equal deleted inserted replaced
300:158068af716c 301:6753763d3bec
1 """ 1 """
2 Transformation to optimize IR-code 2 Transformation to optimize IR-code
3 """ 3 """
4 4
5 import logging 5 import logging
6 import ir 6 from . import ir
7 # Standard passes: 7 # Standard passes:
8 8
9 class FunctionPass: 9 class FunctionPass:
10 def __init__(self): 10 def __init__(self):
11 self.logger = logging.getLogger('optimize') 11 self.logger = logging.getLogger('optimize')