Lines Matching refs:in_type

318 	def __init__(self, name, op, in_type, out_type, reverse=False):
327 self.in_type = in_type
371 in_values = IN_VALUES[self.in_type]
377 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
384 def __init__(self, name, op, in_type, out_type, reverse=False):
385 super(ComparisonsCase, self).__init__(name, op, in_type, out_type, reverse)
408 in_values = IN_VALUES[self.in_type]
414 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
421 def __init__(self, name, in_type, out_type, reverse=False, input_in_parens=False):
423 self.in_type = in_type
469 in_values = IN_VALUES[self.in_type]
474 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
481 def __init__(self, name, in_type, out_type):
483 self.in_type = in_type
501 in_values = IN_VALUES[self.in_type]
505 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
512 def __init__(self, name, in_type, out_type, reverse=False):
514 self.in_type = in_type
541 in_values = IN_VALUES[self.in_type]
545 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
556 def __init__(self, name, in_type, out_type):
558 self.in_type = in_type
605 in_scalars = num_scalars(self.in_type)
617 in_values = IN_VALUES[self.in_type]
621 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
632 def __init__(self, name, in_type, out_type, reverse=False):
634 self.in_type = in_type
667 in_values = IN_VALUES[self.in_type]
671 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
681 def __init__(self, name, in_type, out_type):
683 self.in_type = in_type
701 in_values = IN_VALUES[self.in_type]
707 out.append(valuesToStr("input %s in0" % (self.in_type), self.in_type, in_values))
714 def __init__(self, name, in_type, out_type):
716 self.in_type = in_type
727 in_values = [valueToStr(self.out_type, x) for x in IN_VALUES[self.in_type]]
729 out = "%s a[] = %s[] (%s);" % (self.out_type, self.in_type, ", ".join(in_values))
735 def __init__(self, name, in_type, out_type):
737 self.in_type = in_type
743 "INTYPE": self.in_type,
750 return valueToStr(self.in_type, IN_VALUES[self.in_type][0])
763 for in_type in VALID_CONVERSIONS:
764 conversions[in_type] = [] + VALID_CONVERSIONS[in_type]
765 if in_type in SCALAR_TO_VECTOR_CONVERSIONS and scalar_to_vector:
766 conversions[in_type] += SCALAR_TO_VECTOR_CONVERSIONS[in_type]
772 for in_type in gen_order(conversions):
773 for out_type in conversions[in_type]:
774 yield (in_type, out_type)
796 for in_type, out_type in genConversionPairs():
799 name = in_type + "_to_" + out_type
800 casegroup.children.append(ArithmeticCase(name, op, in_type, out_type, reverse))
818 for in_type, out_type in genConversionPairs(order=type_order, scalar_to_vector=False):
819 name = in_type + "_to_" + out_type
820 casegroup.children.append(ComparisonsCase(name, op, in_type, out_type, reverse))
843 for in_type, out_type in genConversionPairs():
844 name = in_type + "_to_" + out_type
846 ParenthesizedCase(name, in_type, out_type, reverse, input_in_parens)
853 for in_type, out_type in genConversionPairs():
854 name = in_type + "_to_" + out_type
855 yield ArrayCase(name, in_type, out_type, reverse)
859 for in_type, out_type in genConversionPairs():
860 name = in_type + "_to_" + out_type
861 yield ArrayUnpackCase(name, in_type, out_type)
865 for in_type, out_type in genConversionPairs(scalar_to_vector=False):
866 name = in_type + "_to_" + out_type
867 yield FunctionsCase(name, in_type, out_type)
871 for in_type, out_type in genConversionPairs():
872 name = in_type + "_to_" + out_type
873 yield StructCase(name, in_type, out_type, reverse)
877 for in_type, out_type in genInvalidConversions():
878 name = in_type + "_to_" + out_type
879 yield InvalidCase(name, in_type, out_type)
883 for in_type, out_type in genConversionPairs(scalar_to_vector=False):
884 name = in_type + "_to_" + out_type
885 yield InvalidArrayCase(name, in_type, out_type)
889 for in_type, out_type in genConversionPairs(scalar_to_vector=False):
890 name = in_type + "_to_" + out_type
891 yield InvalidStructCase(name, in_type, out_type)