Lines Matching refs:entry
55 ir_variable_refcount_entry *entry = (ir_variable_refcount_entry *)e->data; in do_dead_code() local
65 assert(entry->referenced_count >= entry->assigned_count); in do_dead_code()
69 entry->var->name, (void *) entry->var, in do_dead_code()
70 entry->referenced_count, entry->assigned_count, in do_dead_code()
71 entry->declaration ? "" : "not "); in do_dead_code()
74 if ((entry->referenced_count > entry->assigned_count) in do_dead_code()
75 || !entry->declaration) in do_dead_code()
89 if (entry->var->data.always_active_io) in do_dead_code()
92 if (!entry->assign_list.is_empty()) { in do_dead_code()
96 if (entry->var->data.mode != ir_var_function_out && in do_dead_code()
97 entry->var->data.mode != ir_var_function_inout && in do_dead_code()
98 entry->var->data.mode != ir_var_shader_out && in do_dead_code()
99 entry->var->data.mode != ir_var_shader_storage) { in do_dead_code()
101 while (!entry->assign_list.is_empty()) { in do_dead_code()
104 entry->assign_list.get_head_raw(), link); in do_dead_code()
110 entry->var->name, (void *) entry->var); in do_dead_code()
120 if (entry->assign_list.is_empty()) { in do_dead_code()
129 if (entry->var->data.mode == ir_var_uniform || in do_dead_code()
130 entry->var->data.mode == ir_var_shader_storage) { in do_dead_code()
131 if (uniform_locations_assigned || entry->var->constant_initializer) in do_dead_code()
146 if (entry->var->is_in_buffer_block()) { in do_dead_code()
147 if (entry->var->get_interface_type_packing() != in do_dead_code()
152 if (entry->var->type->is_subroutine()) in do_dead_code()
156 entry->var->remove(); in do_dead_code()
161 entry->var->name, (void *) entry->var); in do_dead_code()