Lines Matching defs:value
82 struct vtn_ssa_value *value,
86 if (glsl_type_is_vector_or_scalar(value->type)) {
87 call->params[(*param_idx)++] = nir_src_for_ssa(value->def);
89 unsigned elems = glsl_get_length(value->type);
91 vtn_ssa_value_add_to_call_params(b, value->elems[i],
99 struct vtn_ssa_value *value,
102 if (glsl_type_is_vector_or_scalar(value->type)) {
103 value->def = nir_load_param(&b->nb, (*param_idx)++);
105 unsigned elems = glsl_get_length(value->type);
107 vtn_ssa_value_load_function_param(b, value->elems[i], param_idx);
207 /* Add one parameter for the function return value */
218 /* The return value is a regular pointer */
241 /* The return value is the first parameter */
270 struct vtn_ssa_value *value = vtn_create_ssa_value(b, type->type);
271 vtn_ssa_value_load_function_param(b, value, &b->func_param_idx);
272 vtn_push_ssa_value(b, w[2], value);
1088 "Return with a value from a function returning void");