Ejemplo n.º 1
0
 def _gen_GreaterEqual(self, args, ret_type):
     result = []
     for lhs, rhs in pairwise(args):
         if ret_type == real_type:
             result.append(self.builder.fcmp_ordered('>=', lhs, rhs))
         elif ret_type == int_type:
             result.append(self.builder.icmp_signed('>=', lhs, rhs))
         else:
             raise CompileError()
     return reduce(self.builder.and_, result)
Ejemplo n.º 2
0
 def _gen_GreaterEqual(self, args, ret_type):
     result = []
     for lhs, rhs in pairwise(args):
         if ret_type == real_type:
             result.append(self.builder.fcmp_ordered('>=', lhs, rhs))
         elif ret_type == int_type:
             result.append(self.builder.icmp_signed('>=', lhs, rhs))
         else:
             raise CompileError()
     return reduce(self.builder.and_, result)