Lines Matching refs:mod
125 allocate_function_from_predefined(struct dxil_module *mod,
131 return dxil_alloc_func(mod, name, overload,
141 dxil_get_function(struct dxil_module *mod,
145 const struct rb_node *node = rb_tree_search(mod->functions, &descr,
150 return allocate_function_from_predefined(mod, name, overload);
171 get_type_from_string(struct dxil_module *mod, const char *param_descr,
179 case DXIL_FUNC_PARAM_INT64: return dxil_module_get_int_type(mod, 64);
180 case DXIL_FUNC_PARAM_INT32: return dxil_module_get_int_type(mod, 32);
181 case DXIL_FUNC_PARAM_INT16: return dxil_module_get_int_type(mod, 16);
182 case DXIL_FUNC_PARAM_INT8: return dxil_module_get_int_type(mod, 8);
183 case DXIL_FUNC_PARAM_BOOL: return dxil_module_get_int_type(mod, 1);
184 case DXIL_FUNC_PARAM_FLOAT64: return dxil_module_get_float_type(mod, 64);
185 case DXIL_FUNC_PARAM_FLOAT32: return dxil_module_get_float_type(mod, 32);
186 case DXIL_FUNC_PARAM_FLOAT16: return dxil_module_get_float_type(mod, 16);
187 case DXIL_FUNC_PARAM_HANDLE: return dxil_module_get_handle_type(mod);
188 case DXIL_FUNC_PARAM_VOID: return dxil_module_get_void_type(mod);
189 case DXIL_FUNC_PARAM_FROM_OVERLOAD: return dxil_get_overload_type(mod, overload);
190 case DXIL_FUNC_PARAM_RESRET: return dxil_module_get_resret_type(mod, overload);
191 case DXIL_FUNC_PARAM_DIM: return dxil_module_get_dimret_type(mod);
192 case DXIL_FUNC_PARAM_SAMPLE_POS: return dxil_module_get_samplepos_type(mod);
193 case DXIL_FUNC_PARAM_CBUF_RET: return dxil_module_get_cbuf_ret_type(mod, overload);
194 case DXIL_FUNC_PARAM_SPLIT_DOUBLE: return dxil_module_get_split_double_ret_type(mod);
196 const struct dxil_type *target = get_type_from_string(mod, param_descr, overload, idx);
197 return dxil_module_get_pointer_type(mod, target);
206 dxil_alloc_func_with_rettype(struct dxil_module *mod, const char *name,
219 const struct dxil_type *t = get_type_from_string(mod, param_descr, overload, &index);
227 dxil_module_add_function_type(mod, retval_type,
237 const struct dxil_func *func = dxil_add_function_decl(mod, full_name, func_type, attr);
240 dxil_add_function(mod->functions, func, name, overload);
246 dxil_alloc_func(struct dxil_module *mod, const char *name, enum overload_type overload,
252 const struct dxil_type *retval_type = get_type_from_string(mod, retval_type_descr, overload, &index);
255 return dxil_alloc_func_with_rettype(mod, name, overload, retval_type,