Lines Matching refs:entry

166    foreach_in_list(variable_entry, entry, &this->variable_list) {
167 if (entry->var == var)
168 return entry;
171 variable_entry *entry = new(mem_ctx) variable_entry(var);
172 this->variable_list.push_tail(entry);
173 return entry;
180 variable_entry *entry = this->get_variable_entry(ir);
182 if (entry)
183 entry->declaration = true;
208 variable_entry *entry = this->get_variable_entry(ir->var);
221 if (entry)
222 entry->split = false;
234 variable_entry *entry = this->get_variable_entry(deref->var);
240 if (entry)
241 entry->split = false;
283 variable_entry *entry = get_variable_entry(var);
284 if (entry)
285 entry->remove();
291 foreach_in_list_safe(variable_entry, entry, &variable_list) {
294 entry->var->name, (void *) entry->var, entry->declaration,
295 entry->split);
298 if (!(entry->declaration && entry->split)) {
299 entry->remove();
335 foreach_in_list(variable_entry, entry, this->variable_list) {
336 if (entry->var == var) {
337 return entry;
356 variable_entry *entry = get_splitting_entry(var);
357 if (!entry)
363 if (constant->value.i[0] >= 0 && constant->value.i[0] < (int)entry->size) {
364 *deref = new(entry->mem_ctx)
365 ir_dereference_variable(entry->components[constant->value.i[0]]);
373 ir_variable *temp = new(entry->mem_ctx) ir_variable(deref_array->type,
376 entry->components[0]->insert_before(temp);
377 *deref = new(entry->mem_ctx) ir_dereference_variable(temp);
451 foreach_in_list(variable_entry, entry, &refs.variable_list) {
452 const struct glsl_type *type = entry->var->type;
460 entry->mem_ctx = ralloc_parent(entry->var);
462 entry->components = ralloc_array(mem_ctx, ir_variable *, entry->size);
464 for (unsigned int i = 0; i < entry->size; i++) {
466 entry->var->name, i);
468 new(entry->mem_ctx) ir_variable(subtype, name, ir_var_temporary);
469 new_var->data.invariant = entry->var->data.invariant;
470 new_var->data.precise = entry->var->data.precise;
475 new_var->data.memory_read_only = entry->var->data.memory_read_only;
476 new_var->data.memory_write_only = entry->var->data.memory_write_only;
477 new_var->data.memory_coherent = entry->var->data.memory_coherent;
478 new_var->data.memory_volatile = entry->var->data.memory_volatile;
479 new_var->data.memory_restrict = entry->var->data.memory_restrict;
480 new_var->data.image_format = entry->var->data.image_format;
482 entry->components[i] = new_var;
483 entry->var->insert_before(entry->components[i]);
486 entry->var->remove();