Home
last modified time | relevance | path

Searched refs:ir_variable (Results 1 – 25 of 72) sorted by relevance

123

/external/mesa3d/src/glsl/
Dlower_output_reads.cpp69 const ir_variable * var = static_cast<const ir_variable *>(key); in hash_table_var_hash()
92 ir_variable *temp = (ir_variable *) hash_table_find(replacements, ir->var); in visit()
97 temp = new(var_ctx) ir_variable(ir->var->type, ir->var->name, in visit()
112 copy(void *ctx, ir_variable *output, ir_variable *temp) in copy()
124 ir->insert_before(copy(ir, (ir_variable *) key, (ir_variable *) data)); in emit_return_copy()
132 sig->body.push_tail(copy(sig, (ir_variable *) key, (ir_variable *) data)); in emit_main_copy()
Dopt_array_splitting.cpp49 variable_entry(ir_variable *var) in variable_entry()
62 ir_variable *var; /* The key: the variable's pointer. */
74 ir_variable **components;
103 virtual ir_visitor_status visit(ir_variable *);
108 variable_entry *get_variable_entry(ir_variable *var);
117 ir_array_reference_visitor::get_variable_entry(ir_variable *var) in get_variable_entry()
147 ir_array_reference_visitor::visit(ir_variable *ir) in visit()
213 ir_variable *var = ((ir_instruction *)node)->as_variable(); 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()
[all …]
Dopt_copy_propagation.cpp46 acp_entry(ir_variable *lhs, ir_variable *rhs) in acp_entry()
54 ir_variable *lhs;
55 ir_variable *rhs;
62 kill_entry(ir_variable *var) in kill_entry()
68 ir_variable *var;
94 void kill(ir_variable *ir);
168 ir_variable *var = ir->var; in visit()
190 ir_variable *sig_param = (ir_variable *)sig_param_iter.get(); in visit_enter()
289 ir_copy_propagation_visitor::kill(ir_variable *var) in kill()
319 ir_variable *lhs_var = ir->whole_variable_written(); in add_copy()
[all …]
Dlower_variable_index_to_cond_assign.cpp73 compare_index_block(exec_list *instructions, ir_variable *index, in compare_index_block()
106 ir_variable *const condition = in compare_index_block()
107 new(mem_ctx) ir_variable(condition_val->type, in compare_index_block()
133 deref_replacer(const ir_variable *variable_to_replace, ir_rvalue *value) in deref_replacer()
151 const ir_variable *variable_to_replace;
188 ir_variable *old_index;
191 ir_variable* var;
231 ir_variable* index;
237 switch_generator(const TFunction& generator, ir_variable *index, in switch_generator()
357 const ir_variable *const var = deref->array->variable_referenced(); in storage_type_needs_lowering()
[all …]
Dopt_constant_variable.cpp45 ir_variable *var;
53 virtual ir_visitor_status visit(ir_variable *);
63 get_assignment_entry(ir_variable *var, exec_list *list) in get_assignment_entry()
79 ir_constant_variable_visitor::visit(ir_variable *ir) in visit()
114 ir_variable *var = ir->whole_variable_written(); in visit_enter()
138 ir_variable *param = (ir_variable *)sig_iter.get(); in visit_enter()
142 ir_variable *var = param_rval->variable_referenced(); in visit_enter()
154 ir_variable *var = ir->return_deref->variable_referenced(); in visit_enter()
Dopt_function_inlining.cpp39 ir_variable *sampler,
102 ir_variable **parameters; in generate_inline()
113 parameters = new ir_variable *[num_parameters]; in generate_inline()
122 ir_variable *sig_param = (ir_variable *) sig_param_iter.get(); in generate_inline()
179 ir_variable *sig_param = (ir_variable *) sig_param_iter.get(); in generate_inline()
202 const ir_variable *const sig_param = (ir_variable *) sig_param_iter.get(); in generate_inline()
281 ir_sampler_replacement_visitor(ir_variable *sampler, ir_dereference *deref) in ir_sampler_replacement_visitor()
299 ir_variable *sampler;
366 ir_variable *sampler, in do_sampler_replacement()
Dopt_structure_splitting.cpp52 variable_entry2(ir_variable *var) in variable_entry2()
61 ir_variable *var; /* The key: the variable's pointer. */
72 ir_variable **components;
92 virtual ir_visitor_status visit(ir_variable *);
98 variable_entry2 *get_variable_entry2(ir_variable *var);
107 ir_structure_reference_visitor::get_variable_entry2(ir_variable *var) in get_variable_entry2()
127 ir_structure_reference_visitor::visit(ir_variable *ir) in visit()
140 ir_variable *const var = ir->variable_referenced(); in visit()
203 variable_entry2 *get_splitting_entry(ir_variable *var);
209 ir_structure_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry()
[all …]
Dlower_clip_distance.cpp59 virtual ir_visitor_status visit(ir_variable *);
71 ir_variable *old_clip_distance_var;
76 ir_variable *new_clip_distance_var;
85 lower_clip_distance_visitor::visit(ir_variable *ir) in visit()
152 ir_variable *old_index_var = new(ctx) ir_variable( in create_indices()
282 ir_variable *formal_param = (ir_variable *) formal_param_node; in visit_leave()
298 ir_variable *temp_clip_distance = new(ctx) ir_variable( in visit_leave()
Dopt_tree_grafting.cpp64 ir_variable *graft_var) in ir_tree_grafting_visitor()
81 ir_visitor_status check_graft(ir_instruction *ir, ir_variable *var);
86 ir_variable *graft_var;
91 ir_variable *var;
106 dereferences_variable(ir_instruction *ir, ir_variable *var) in dereferences_variable()
163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variable *var) in check_graft()
210 ir_variable *sig_param = (ir_variable *)sig_iter.get(); in visit_enter()
304 ir_variable *lhs_var, in try_tree_grafting()
349 ir_variable *lhs_var = assign->whole_variable_written(); in tree_grafting_basic_block()
Dir_function.cpp61 const ir_variable *const param = (ir_variable *) node_a; in parameter_lists_match()
189 ir_variable *a = (ir_variable *) node_a; in parameter_lists_match_exact()
190 ir_variable *b = (ir_variable *) node_b; in parameter_lists_match_exact()
Dir_variable_refcount.h39 ir_variable_refcount_entry(ir_variable *var);
41 ir_variable *var; /* The key: the variable's pointer. */
66 virtual ir_visitor_status visit(ir_variable *);
72 ir_variable_refcount_entry *get_variable_entry(ir_variable *var);
Dopt_copy_propagation_elements.cpp57 acp_entry(ir_variable *lhs, ir_variable *rhs, int write_mask, int swizzle[4]) in acp_entry()
73 ir_variable *lhs;
74 ir_variable *rhs;
83 kill_entry(ir_variable *var, int write_mask) in kill_entry()
89 ir_variable *var;
170 ir_variable *var = ir->lhs->variable_referenced(); in visit_leave()
209 ir_variable *source[4] = {NULL, NULL, NULL, NULL}; in handle_rvalue()
242 ir_variable *var = deref_var->var; in handle_rvalue()
298 ir_variable *sig_param = (ir_variable *)sig_param_iter.get(); in visit_enter()
Dlower_jumps.cpp170 ir_variable* break_flag;
171 ir_variable* execute_flag; /* cleared to emulate continue */
184 ir_variable* get_execute_flag() in get_execute_flag()
189 …this->execute_flag = new(this->signature) ir_variable(glsl_type::bool_type, "execute_flag", ir_var… in get_execute_flag()
196 ir_variable* get_break_flag() in get_break_flag()
200 …this->break_flag = new(this->signature) ir_variable(glsl_type::bool_type, "break_flag", ir_var_tem… in get_break_flag()
211ir_variable* return_flag; /* used to break out of all loops and then jump to the return instructio…
212 ir_variable* return_value;
226 ir_variable* get_return_flag() in get_return_flag()
229 …this->return_flag = new(this->signature) ir_variable(glsl_type::bool_type, "return_flag", ir_var_t… in get_return_flag()
[all …]
Dir.h118 virtual class ir_variable * as_variable() { return NULL; } in as_variable()
176 virtual ir_variable *variable_referenced() const in variable_referenced()
191 virtual ir_variable *whole_variable_referenced() in whole_variable_referenced()
306 class ir_variable : public ir_instruction {
308 ir_variable(const struct glsl_type *, const char *, ir_variable_mode);
310 virtual ir_variable *clone(void *mem_ctx, struct hash_table *ht) const;
312 virtual ir_variable *as_variable() in as_variable()
793 ir_variable *counter;
849 ir_variable *whole_variable_written();
1490 virtual ir_variable *variable_referenced() const;
[all …]
Dast_function.cpp86 const ir_variable *const param = (ir_variable *) node; in prototype_string()
115 const ir_variable *const formal = (ir_variable *) formal_node; in verify_parameter_modes()
155 ir_variable *var = actual->variable_referenced(); in verify_parameter_modes()
205 ir_variable *formal = (ir_variable *) formal_iter.get(); in generate_call()
240 ir_variable *tmp = in generate_call()
241 new(ctx) ir_variable(formal->type, in generate_call()
290 ir_variable *var; in generate_call()
292 var = new(ctx) ir_variable(sig->return_type, in generate_call()
654 ir_variable *var = new(ctx) ir_variable(constructor_type, "array_ctor", in process_array_constructor()
724 ir_variable *var = new(ctx) ir_variable(type, "vec_ctor", ir_var_temporary); in emit_inline_vector_constructor()
[all …]
Dlinker.cpp92 ir_variable *const var = ir->lhs->variable_referenced(); in visit_enter()
107 ir_variable *sig_param = (ir_variable *)sig_iter.get(); in visit_enter()
111 ir_variable *var = param_rval->variable_referenced(); in visit_enter()
121 ir_variable *const var = ir->return_deref->variable_referenced(); in visit_enter()
207 ir_variable *const var = ((ir_instruction *) node)->as_variable(); in link_invalidate_variable_locations()
322 ir_variable *clip_distance_var = in validate_vertex_shader_executable()
364 mode_string(const ir_variable *var) in mode_string()
402 ir_variable *const var = ((ir_instruction *) node)->as_variable(); in cross_validate_globals()
420 ir_variable *const existing = variables.get_variable(var->name); in cross_validate_globals()
642 ir_variable *const var = ((ir_instruction *) node)->as_variable(); in cross_validate_outputs_to_inputs()
[all …]
Dir_clone.cpp44 ir_variable *
45 ir_variable::clone(void *mem_ctx, struct hash_table *ht) const in clone()
47 ir_variable *var = new(mem_ctx) ir_variable(this->type, this->name, in clone()
85 hash_table_insert(ht, var, (void *)const_cast<ir_variable *>(this)); in clone()
201 ir_variable *new_var; in clone()
204 new_var = (ir_variable *)hash_table_find(ht, this->var); in clone()
333 const ir_variable *const param = (const ir_variable *) node; in clone_prototype()
335 assert(const_cast<ir_variable *>(param)->as_variable() != NULL); in clone_prototype()
337 ir_variable *const param_copy = param->clone(mem_ctx, ht); in clone_prototype()
Dir_variable_refcount.cpp39 ir_variable_refcount_entry::ir_variable_refcount_entry(ir_variable *var) in ir_variable_refcount_entry()
50 ir_variable_refcount_visitor::get_variable_entry(ir_variable *var) in get_variable_entry()
67 ir_variable_refcount_visitor::visit(ir_variable *ir) in visit()
80 ir_variable *const var = ir->variable_referenced(); in visit()
Dopt_constant_propagation.cpp49 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) in acp_entry()
67 ir_variable *var;
79 kill_entry(ir_variable *var, unsigned write_mask) in kill_entry()
86 ir_variable *var;
113 void kill(ir_variable *ir, unsigned write_mask);
286 ir_variable *sig_param = (ir_variable *)sig_param_iter.get(); in visit_enter()
391 ir_constant_propagation_visitor::kill(ir_variable *var, unsigned write_mask) in kill()
Dlower_ubo_reference.cpp52 void emit_ubo_loads(ir_dereference *deref, ir_variable *base_offset,
80 ir_variable *var = deref->variable_referenced(); in handle_rvalue()
166 ir_variable *load_var = new(mem_ctx) ir_variable(type, in handle_rvalue()
171 ir_variable *load_offset = new(mem_ctx) ir_variable(glsl_type::uint_type, in handle_rvalue()
206 ir_variable *base_offset, in emit_ubo_loads()
Dloop_analysis.h68 class loop_variable *get(const ir_variable *);
69 class loop_variable *insert(ir_variable *);
166 ir_variable *var;
195 ir_variable *biv;
Dlower_discard_flow.cpp53 lower_discard_flow_visitor(ir_variable *discarded) in lower_discard_flow_visitor()
70 ir_variable *discarded;
135 ir_variable *var = new(mem_ctx) ir_variable(glsl_type::bool_type, in lower_discard_flow()
Dir_set_program_inouts.cpp67 virtual ir_visitor_status visit(ir_variable *);
75 mark(struct gl_program *prog, ir_variable *var, int offset, int len, in mark()
130 ir_variable *var = NULL; in visit_enter()
134 var = (ir_variable *)hash_table_find(this->ht, deref_var->var); in visit_enter()
153 ir_set_program_inouts_visitor::visit(ir_variable *ir) in visit()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_lower_texture_gradients.cpp47 void emit(ir_variable *, ir_rvalue *);
54 lower_texture_grad_visitor::emit(ir_variable *var, ir_rvalue *value) in emit()
104 ir_variable *size = in visit_leave()
105 new(mem_ctx) ir_variable(grad_type, "size", ir_var_temporary); in visit_leave()
119 ir_variable *dPdx = in visit_leave()
120 new(mem_ctx) ir_variable(grad_type, "dPdx", ir_var_temporary); in visit_leave()
123 ir_variable *dPdy = in visit_leave()
124 new(mem_ctx) ir_variable(grad_type, "dPdy", ir_var_temporary); in visit_leave()
Dbrw_fs_vector_splitting.cpp55 variable_entry(ir_variable *var) in variable_entry()
63 ir_variable *var; /* The key: the variable's pointer. */
70 ir_variable *components[4];
89 virtual ir_visitor_status visit(ir_variable *);
95 variable_entry *get_variable_entry(ir_variable *var);
104 ir_vector_reference_visitor::get_variable_entry(ir_variable *var) in get_variable_entry()
138 ir_vector_reference_visitor::visit(ir_variable *ir) in visit()
151 ir_variable *const var = ir->var; in visit()
212 variable_entry *get_splitting_entry(ir_variable *var);
218 ir_vector_splitting_visitor::get_splitting_entry(ir_variable *var) in get_splitting_entry()
[all …]

123