示例#1
0
文件: test_ir.py 项目: zsoltc89/numba
 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])
 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)