Lines Matching refs:var
49 variable_entry(ir_variable *var) in variable_entry() argument
51 this->var = var; in variable_entry()
56 if (var->type->is_array()) in variable_entry()
57 this->size = var->type->length; in variable_entry()
59 this->size = var->type->matrix_columns; in variable_entry()
62 ir_variable *var; /* The key: the variable's pointer. */ member in opt_array_splitting::variable_entry
108 variable_entry *get_variable_entry(ir_variable *var);
117 ir_array_reference_visitor::get_variable_entry(ir_variable *var) in get_variable_entry() argument
119 assert(var); in get_variable_entry()
121 if (var->mode != ir_var_auto && in get_variable_entry()
122 var->mode != ir_var_temporary) in get_variable_entry()
125 if (!(var->type->is_array() || var->type->is_matrix())) in get_variable_entry()
131 if (var->type->is_array() && var->type->length == 0) in get_variable_entry()
136 if (entry->var == var) in get_variable_entry()
140 variable_entry *entry = new(mem_ctx) variable_entry(var); in get_variable_entry()
160 variable_entry *entry = this->get_variable_entry(ir->var); in visit()
180 variable_entry *entry = this->get_variable_entry(deref->var); in visit_enter()
213 ir_variable *var = ((ir_instruction *)node)->as_variable(); in get_split_list() local
214 if (var) { in get_split_list()
215 variable_entry *entry = get_variable_entry(var); in get_split_list()
228 entry->var->name, (void *) entry->var, entry->declaration, in get_split_list()
259 variable_entry *get_splitting_entry(ir_variable *var);
265 ir_array_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry() argument
267 assert(var); in get_splitting_entry()
271 if (entry->var == var) { in get_splitting_entry()
289 ir_variable *var = deref_var->var; in split_deref() local
291 variable_entry *entry = get_splitting_entry(var); in split_deref()
369 const struct glsl_type *type = entry->var->type; in optimize_split_arrays()
377 entry->mem_ctx = ralloc_parent(entry->var); in optimize_split_arrays()
385 entry->var->name, i); in optimize_split_arrays()
389 entry->var->insert_before(entry->components[i]); in optimize_split_arrays()
392 entry->var->remove(); in optimize_split_arrays()