comparison python/ppci/ir2tree.py @ 355:c2ddc8a36f5e

Enabled optimization
author Windel Bouwman
date Fri, 14 Mar 2014 10:30:13 +0100
parents 5477e499b039
children 52492b304adf
comparison
equal deleted inserted replaced
354:5477e499b039 355:c2ddc8a36f5e
28 @register(ir.Const) 28 @register(ir.Const)
29 def const_to_tree(e): 29 def const_to_tree(e):
30 if type(e.value) is bytes: 30 if type(e.value) is bytes:
31 t = Tree('CONSTDATA') 31 t = Tree('CONSTDATA')
32 t.value = e.value 32 t.value = e.value
33 print(t.value)
34 return t 33 return t
35 elif type(e.value) is int: 34 elif type(e.value) is int:
36 t = Tree('CONSTI32') 35 t = Tree('CONSTI32')
37 t.value = e.value 36 t.value = e.value
38 return t 37 return t