comparison python/ir/builder.py @ 204:de3a68f677a5

Added long comment to c3 parser
author Windel Bouwman
date Fri, 21 Jun 2013 15:01:08 +0200
parents 46d62dadd61b
children d77cb5962cc5
comparison
equal deleted inserted replaced
203:ca1ea402f6a1 204:de3a68f677a5
41 bb = self.newBBint() 41 bb = self.newBBint()
42 self.fn.addBB(bb) 42 self.fn.addBB(bb)
43 return bb 43 return bb
44 def setModule(self, m): 44 def setModule(self, m):
45 self.m = m 45 self.m = m
46 def newFunc(self, name): 46 def newFunction(self, name):
47 f = Function(name) 47 f = Function(name)
48 self.m.addFunc(f) 48 self.m.addFunc(f)
49 return f 49 return f
50 def setFunc(self, f): 50 def setFunction(self, f):
51 self.fn = f 51 self.fn = f
52 def setBB(self, bb): 52 def setBB(self, bb):
53 self.bb = bb 53 self.bb = bb
54 def addIns(self, i): 54 def addIns(self, i):
55 if not self.bb: 55 if not self.bb: