Lines Matching defs:mod
110 allocate_function_from_predefined(struct dxil_module *mod,
116 return dxil_alloc_func(mod, name, overload,
126 dxil_get_function(struct dxil_module *mod,
130 const struct rb_node *node = rb_tree_search(mod->functions, &descr,
135 return allocate_function_from_predefined(mod, name, overload);
156 get_type_from_string(struct dxil_module *mod, const char *param_descr,
164 case DXIL_FUNC_PARAM_INT64: return dxil_module_get_int_type(mod, 64);
165 case DXIL_FUNC_PARAM_INT32: return dxil_module_get_int_type(mod, 32);
166 case DXIL_FUNC_PARAM_INT16: return dxil_module_get_int_type(mod, 16);
167 case DXIL_FUNC_PARAM_INT8: return dxil_module_get_int_type(mod, 8);
168 case DXIL_FUNC_PARAM_BOOL: return dxil_module_get_int_type(mod, 1);
169 case DXIL_FUNC_PARAM_FLOAT64: return dxil_module_get_float_type(mod, 64);
170 case DXIL_FUNC_PARAM_FLOAT32: return dxil_module_get_float_type(mod, 32);
171 case DXIL_FUNC_PARAM_FLOAT16: return dxil_module_get_float_type(mod, 16);
172 case DXIL_FUNC_PARAM_HANDLE: return dxil_module_get_handle_type(mod);
173 case DXIL_FUNC_PARAM_VOID: return dxil_module_get_void_type(mod);
174 case DXIL_FUNC_PARAM_FROM_OVERLOAD: return dxil_get_overload_type(mod, overload);
175 case DXIL_FUNC_PARAM_RESRET: return dxil_module_get_resret_type(mod, overload);
176 case DXIL_FUNC_PARAM_DIM: return dxil_module_get_dimret_type(mod);
177 case DXIL_FUNC_PARAM_CBUF_RET: return dxil_module_get_cbuf_ret_type(mod, overload);
178 case DXIL_FUNC_PARAM_SPLIT_DOUBLE: return dxil_module_get_split_double_ret_type(mod);
180 const struct dxil_type *target = get_type_from_string(mod, param_descr, overload, idx);
181 return dxil_module_get_pointer_type(mod, target);
190 dxil_alloc_func_with_rettype(struct dxil_module *mod, const char *name,
203 const struct dxil_type *t = get_type_from_string(mod, param_descr, overload, &index);
211 dxil_module_add_function_type(mod, retval_type,
221 const struct dxil_func *func = dxil_add_function_decl(mod, full_name, func_type, attr);
224 dxil_add_function(mod->functions, func, name, overload);
230 dxil_alloc_func(struct dxil_module *mod, const char *name, enum overload_type overload,
236 const struct dxil_type *retval_type = get_type_from_string(mod, retval_type_descr, overload, &index);
239 return dxil_alloc_func_with_rettype(mod, name, overload, retval_type,