Esempio n. 1
0
 def test_arg(self):
     a = ir.Arg('foo', 0, self.loc1)
     b = ir.Arg('foo', 0, self.loc1)
     c = ir.Arg('foo', 0, self.loc2)
     d = ir.Arg('bar', 0, self.loc1)
     e = ir.Arg('foo', 1, self.loc1)
     self.check(a, same=[b, c], different=[d, e])
Esempio n. 2
0
 def init_first_block(self):
     # Define variables receiving the function arguments
     for index, name in enumerate(self.arg_names):
         val = ir.Arg(index=index, name=name, loc=self.loc)
         self.store(val, name)