Lines Matching refs:func
59 for func in api.functions:
60 alias, need_conv = impl.match(func, conversions)
63 if not func.is_external:
64 print >>sys.stderr, "Error: unable to dispatch %s" % func.name
65 alias = func
68 __functions[func.name] = func
69 __aliases[func.name] = (alias, need_conv)
77 for func in api.functions:
78 if func.is_external:
79 specials.append(func.name)
91 for func in api.functions:
92 names.append(func.name)
99 func = __functions[funcname]
100 return func.return_type
105 func = __functions[funcname]
106 return [func.direction]
109 def _ValidValues(func, param): argument
112 switch = func.checker.switches.get(param.name, [])
123 (func.name, desc.name)
128 print >>sys.stderr, "%s: not first element of a vector" % func.name
130 print >>sys.stderr, "%s: deep nested dependence" % func.name
139 def _Conversion(func, src_param): argument
141 alias, need_conv = __aliases[func.name]
154 if not func.checker.always_check(src_param.name):
157 for desc in func.checker.flatten(src_param.name):
174 def _MaxVecSize(func, param): argument
183 for desc in func.checker.flatten(param.name):
189 need_conv = __aliases[func.name][1]
193 (param.name, func.name)
197 def _ParameterTuple(func, param): argument
208 vec_size = _MaxVecSize(func, param)
209 dst_type, conversion = _Conversion(func, param)
210 valid_values = _ValidValues(func, param)
217 func = __functions[funcname]
219 for param in func.params:
220 params.append(_ParameterTuple(func, param))
227 func = __functions[funcname]
229 return func.prefix