comparison python/ir/function.py @ 256:225f444019b1

Added build and flash menu option
author Windel Bouwman
date Sun, 04 Aug 2013 18:32:04 +0200
parents 74c6a20302d5
children 5ec7580976d9
comparison
equal deleted inserted replaced
255:7416c923a02a 256:225f444019b1
36 def check(self): 36 def check(self):
37 for bb in self.BasicBlocks: 37 for bb in self.BasicBlocks:
38 bb.check() 38 bb.check()
39 39
40 def call(self, *args): 40 def call(self, *args):
41 print(args)
42 varmap = {} 41 varmap = {}
43 bb = self.Entry 42 bb = self.Entry
44 ip = 0 43 ip = 0
45 while True: 44 while True:
46 i = bb.Instructions[ip] 45 i = bb.Instructions[ip]
47 ip += 1 46 ip += 1
48 print(i)
49 return 47 return
50 48
51 49