Searched refs:ir (Results 1 - 25 of 388) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/mesa/src/src/glsl/
H A Dir_hierarchical_visitor.cpp24 #include "ir.h"
36 ir_hierarchical_visitor::visit(ir_rvalue *ir) argument
39 this->callback(ir, this->data);
45 ir_hierarchical_visitor::visit(ir_variable *ir) argument
48 this->callback(ir, this->data);
54 ir_hierarchical_visitor::visit(ir_constant *ir) argument
57 this->callback(ir, this->data);
63 ir_hierarchical_visitor::visit(ir_loop_jump *ir) argument
66 this->callback(ir, this->data);
72 ir_hierarchical_visitor::visit(ir_dereference_variable *ir) argument
81 visit_enter(ir_loop *ir) argument
90 visit_leave(ir_loop *ir) argument
97 visit_enter(ir_function_signature *ir) argument
106 visit_leave(ir_function_signature *ir) argument
113 visit_enter(ir_function *ir) argument
122 visit_leave(ir_function *ir) argument
129 visit_enter(ir_expression *ir) argument
138 visit_leave(ir_expression *ir) argument
145 visit_enter(ir_texture *ir) argument
154 visit_leave(ir_texture *ir) argument
161 visit_enter(ir_swizzle *ir) argument
170 visit_leave(ir_swizzle *ir) argument
177 visit_enter(ir_dereference_array *ir) argument
186 visit_leave(ir_dereference_array *ir) argument
193 visit_enter(ir_dereference_record *ir) argument
202 visit_leave(ir_dereference_record *ir) argument
209 visit_enter(ir_assignment *ir) argument
218 visit_leave(ir_assignment *ir) argument
225 visit_enter(ir_call *ir) argument
234 visit_leave(ir_call *ir) argument
241 visit_enter(ir_return *ir) argument
250 visit_leave(ir_return *ir) argument
257 visit_enter(ir_discard *ir) argument
266 visit_leave(ir_discard *ir) argument
273 visit_enter(ir_if *ir) argument
282 visit_leave(ir_if *ir) argument
296 visit_tree(ir_instruction *ir, void (*callback)(class ir_instruction *ir, void *data), void *data) argument
[all...]
H A Dir_rvalue_visitor.cpp32 #include "ir.h"
39 ir_rvalue_base_visitor::rvalue_visit(ir_expression *ir) argument
43 for (operand = 0; operand < ir->get_num_operands(); operand++) {
44 handle_rvalue(&ir->operands[operand]);
51 ir_rvalue_base_visitor::rvalue_visit(ir_texture *ir) argument
53 handle_rvalue(&ir->coordinate);
54 handle_rvalue(&ir->projector);
55 handle_rvalue(&ir->shadow_comparitor);
56 handle_rvalue(&ir->offset);
58 switch (ir
79 rvalue_visit(ir_swizzle *ir) argument
86 rvalue_visit(ir_dereference_array *ir) argument
101 rvalue_visit(ir_dereference_record *ir) argument
108 rvalue_visit(ir_assignment *ir) argument
117 rvalue_visit(ir_call *ir) argument
132 rvalue_visit(ir_return *ir) argument
139 rvalue_visit(ir_if *ir) argument
147 visit_leave(ir_expression *ir) argument
153 visit_leave(ir_texture *ir) argument
159 visit_leave(ir_swizzle *ir) argument
165 visit_leave(ir_dereference_array *ir) argument
171 visit_leave(ir_dereference_record *ir) argument
177 visit_leave(ir_assignment *ir) argument
183 visit_leave(ir_call *ir) argument
189 visit_leave(ir_return *ir) argument
195 visit_leave(ir_if *ir) argument
201 visit_enter(ir_expression *ir) argument
207 visit_enter(ir_texture *ir) argument
213 visit_enter(ir_swizzle *ir) argument
219 visit_enter(ir_dereference_array *ir) argument
225 visit_enter(ir_dereference_record *ir) argument
231 visit_enter(ir_assignment *ir) argument
237 visit_enter(ir_call *ir) argument
243 visit_enter(ir_return *ir) argument
249 visit_enter(ir_if *ir) argument
[all...]
H A Dir_validate.cpp31 * in the ir tree. ir_variable does appear multiple times: Once as a
36 #include "ir.h"
60 virtual ir_visitor_status visit(ir_dereference_variable *ir);
62 virtual ir_visitor_status visit_enter(ir_if *ir);
64 virtual ir_visitor_status visit_leave(ir_loop *ir);
65 virtual ir_visitor_status visit_enter(ir_function *ir);
66 virtual ir_visitor_status visit_leave(ir_function *ir);
67 virtual ir_visitor_status visit_enter(ir_function_signature *ir);
69 virtual ir_visitor_status visit_leave(ir_expression *ir);
70 virtual ir_visitor_status visit_leave(ir_swizzle *ir);
84 visit(ir_dereference_variable *ir) argument
105 visit_enter(ir_if *ir) argument
120 visit_leave(ir_loop *ir) argument
156 visit_enter(ir_function *ir) argument
194 visit_leave(ir_function *ir) argument
203 visit_enter(ir_function_signature *ir) argument
227 visit_leave(ir_expression *ir) argument
483 visit_leave(ir_swizzle *ir) argument
500 visit(ir_variable *ir) argument
537 visit_enter(ir_assignment *ir) argument
569 visit_enter(ir_call *ir) argument
630 validate_ir(ir_instruction *ir, void *data) argument
644 check_node_type(ir_instruction *ir, void *data) argument
665 ir_instruction *ir = (ir_instruction *)iter.get(); local
[all...]
H A Dlower_instructions.cpp86 #include "ir.h"
125 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir) argument
127 ir->operation = ir_binop_add;
128 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type,
129 ir->operands[1], NULL);
134 lower_instructions_visitor::div_to_mul_rcp(ir_expression *ir) argument
136 assert(ir->operands[1]->type->is_float());
140 expr = new(ir) ir_expressio
152 int_div_to_mul_rcp(ir_expression *ir) argument
202 exp_to_exp2(ir_expression *ir) argument
213 pow_to_exp2(ir_expression *ir) argument
227 log_to_log2(ir_expression *ir) argument
237 mod_to_fract(ir_expression *ir) argument
272 visit_leave(ir_expression *ir) argument
[all...]
H A Dir_expression_flattening.h38 bool (*predicate)(ir_instruction *ir));
H A Dir_expression_flattening.cpp34 #include "ir.h"
42 ir_expression_flattening_visitor(bool (*predicate)(ir_instruction *ir)) argument
53 bool (*predicate)(ir_instruction *ir);
58 bool (*predicate)(ir_instruction *ir))
63 ir_instruction *ir = (ir_instruction *)iter.get(); local
65 ir->accept(&v);
74 ir_rvalue *ir = *rvalue; local
76 if (!ir || !this->predicate(ir))
79 void *ctx = ralloc_parent(ir);
57 do_expression_flattening(exec_list *instructions, bool (*predicate)(ir_instruction *ir)) argument
[all...]
H A Dlower_vec_index_to_swizzle.cpp32 #include "ir.h"
62 ir_vec_index_to_swizzle_visitor::convert_vec_index_to_swizzle(ir_rvalue *ir) argument
64 ir_dereference_array *deref = ir->as_dereference_array();
68 return ir;
71 return ir;
76 return ir;
78 void *ctx = ralloc_parent(ir);
102 ir_vec_index_to_swizzle_visitor::visit_enter(ir_expression *ir) argument
106 for (i = 0; i < ir->get_num_operands(); i++) {
107 ir
114 visit_enter(ir_swizzle *ir) argument
126 visit_enter(ir_assignment *ir) argument
135 visit_enter(ir_call *ir) argument
150 visit_enter(ir_return *ir) argument
160 visit_enter(ir_if *ir) argument
[all...]
H A Dlower_texture_projection.cpp38 #include "ir.h"
47 ir_visitor_status visit_leave(ir_texture *ir);
53 lower_texture_projection_visitor::visit_leave(ir_texture *ir) argument
55 if (!ir->projector)
58 void *mem_ctx = ralloc_parent(ir);
60 ir_variable *var = new(mem_ctx) ir_variable(ir->projector->type,
65 ir->projector->type,
66 ir->projector,
72 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul,
73 ir
[all...]
H A Dopt_swizzle_swizzle.cpp30 #include "ir.h"
52 ir_swizzle_swizzle_visitor::visit_enter(ir_swizzle *ir) argument
56 ir_swizzle *swiz2 = ir->val->as_swizzle();
70 if (ir->mask.num_components >= 1)
71 ir->mask.x = mask2[ir->mask.x];
72 if (ir->mask.num_components >= 2)
73 ir->mask.y = mask2[ir->mask.y];
74 if (ir
[all...]
H A Dir_print_visitor.cpp63 ir_instruction *ir = (ir_instruction *)iter.get(); local
64 ir->print();
65 if (ir->ir_type != ir_type_function)
138 void ir_print_visitor::visit(ir_rvalue *ir) argument
143 void ir_print_visitor::visit(ir_variable *ir) argument
147 const char *const cent = (ir->centroid) ? "centroid " : "";
148 const char *const inv = (ir->invariant) ? "invariant " : "";
154 cent, inv, mode[ir->mode], interp[ir->interpolation]);
156 print_type(ir
161 visit(ir_function_signature *ir) argument
206 visit(ir_function *ir) argument
222 visit(ir_expression *ir) argument
238 visit(ir_texture *ir) argument
301 visit(ir_swizzle *ir) argument
320 visit(ir_dereference_variable *ir) argument
327 visit(ir_dereference_array *ir) argument
336 visit(ir_dereference_record *ir) argument
344 visit(ir_assignment *ir) argument
373 visit(ir_constant *ir) argument
409 visit(ir_call *ir) argument
425 visit(ir_return *ir) argument
440 visit(ir_discard *ir) argument
454 visit(ir_if *ir) argument
496 visit(ir_loop *ir) argument
527 visit(ir_loop_jump *ir) argument
[all...]
H A Dopt_tree_grafting.cpp50 #include "ir.h"
81 ir_visitor_status check_graft(ir_instruction *ir, ir_variable *var);
96 dereferences_variable_callback(ir_instruction *ir, void *data) argument
99 ir_dereference_variable *deref = ir->as_dereference_variable();
106 dereferences_variable(ir_instruction *ir, ir_variable *var) argument
113 visit_tree(ir, dereferences_variable_callback, &info);
146 ir_tree_grafting_visitor::visit_enter(ir_loop *ir) argument
148 (void)ir;
159 * \param ir An instruction that writes to a variable.
163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variabl argument
178 visit_leave(ir_assignment *ir) argument
191 visit_enter(ir_function *ir) argument
198 visit_enter(ir_function_signature *ir) argument
205 visit_enter(ir_call *ir) argument
211 ir_rvalue *ir = (ir_rvalue *)iter.get(); local
234 visit_enter(ir_expression *ir) argument
245 visit_enter(ir_if *ir) argument
257 visit_enter(ir_swizzle *ir) argument
266 visit_enter(ir_texture *ir) argument
339 ir_instruction *ir, *next; local
[all...]
H A Dlower_discard_flow.cpp48 #include "ir.h"
63 ir_visitor_status visit_enter(ir_discard *ir);
64 ir_visitor_status visit_enter(ir_loop_jump *ir);
65 ir_visitor_status visit_enter(ir_loop *ir);
66 ir_visitor_status visit_enter(ir_function_signature *ir);
75 lower_discard_flow_visitor::visit_enter(ir_loop_jump *ir) argument
77 if (ir->mode != ir_loop_jump::jump_continue)
80 ir->insert_before(generate_discard_break());
86 lower_discard_flow_visitor::visit_enter(ir_discard *ir) argument
91 ir
97 visit_enter(ir_loop *ir) argument
105 visit_enter(ir_function_signature *ir) argument
131 lower_discard_flow(exec_list *ir) argument
[all...]
H A Dopt_algebraic.cpp31 #include "ir.h"
55 ir_rvalue *handle_expression(ir_expression *ir);
76 is_vec_zero(ir_constant *ir) argument
78 return (ir == NULL) ? false : ir->is_zero();
82 is_vec_one(ir_constant *ir) argument
84 return (ir == NULL) ? false : ir->is_one();
88 is_vec_basis(ir_constant *ir) argument
90 return (ir
94 update_type(ir_expression *ir) argument
187 handle_expression(ir_expression *ir) argument
[all...]
/external/mesa3d/src/glsl/
H A Dir_hierarchical_visitor.cpp24 #include "ir.h"
36 ir_hierarchical_visitor::visit(ir_rvalue *ir) argument
39 this->callback(ir, this->data);
45 ir_hierarchical_visitor::visit(ir_variable *ir) argument
48 this->callback(ir, this->data);
54 ir_hierarchical_visitor::visit(ir_constant *ir) argument
57 this->callback(ir, this->data);
63 ir_hierarchical_visitor::visit(ir_loop_jump *ir) argument
66 this->callback(ir, this->data);
72 ir_hierarchical_visitor::visit(ir_dereference_variable *ir) argument
81 visit_enter(ir_loop *ir) argument
90 visit_leave(ir_loop *ir) argument
97 visit_enter(ir_function_signature *ir) argument
106 visit_leave(ir_function_signature *ir) argument
113 visit_enter(ir_function *ir) argument
122 visit_leave(ir_function *ir) argument
129 visit_enter(ir_expression *ir) argument
138 visit_leave(ir_expression *ir) argument
145 visit_enter(ir_texture *ir) argument
154 visit_leave(ir_texture *ir) argument
161 visit_enter(ir_swizzle *ir) argument
170 visit_leave(ir_swizzle *ir) argument
177 visit_enter(ir_dereference_array *ir) argument
186 visit_leave(ir_dereference_array *ir) argument
193 visit_enter(ir_dereference_record *ir) argument
202 visit_leave(ir_dereference_record *ir) argument
209 visit_enter(ir_assignment *ir) argument
218 visit_leave(ir_assignment *ir) argument
225 visit_enter(ir_call *ir) argument
234 visit_leave(ir_call *ir) argument
241 visit_enter(ir_return *ir) argument
250 visit_leave(ir_return *ir) argument
257 visit_enter(ir_discard *ir) argument
266 visit_leave(ir_discard *ir) argument
273 visit_enter(ir_if *ir) argument
282 visit_leave(ir_if *ir) argument
296 visit_tree(ir_instruction *ir, void (*callback)(class ir_instruction *ir, void *data), void *data) argument
[all...]
H A Dir_rvalue_visitor.cpp32 #include "ir.h"
39 ir_rvalue_base_visitor::rvalue_visit(ir_expression *ir) argument
43 for (operand = 0; operand < ir->get_num_operands(); operand++) {
44 handle_rvalue(&ir->operands[operand]);
51 ir_rvalue_base_visitor::rvalue_visit(ir_texture *ir) argument
53 handle_rvalue(&ir->coordinate);
54 handle_rvalue(&ir->projector);
55 handle_rvalue(&ir->shadow_comparitor);
56 handle_rvalue(&ir->offset);
58 switch (ir
79 rvalue_visit(ir_swizzle *ir) argument
86 rvalue_visit(ir_dereference_array *ir) argument
101 rvalue_visit(ir_dereference_record *ir) argument
108 rvalue_visit(ir_assignment *ir) argument
117 rvalue_visit(ir_call *ir) argument
132 rvalue_visit(ir_return *ir) argument
139 rvalue_visit(ir_if *ir) argument
147 visit_leave(ir_expression *ir) argument
153 visit_leave(ir_texture *ir) argument
159 visit_leave(ir_swizzle *ir) argument
165 visit_leave(ir_dereference_array *ir) argument
171 visit_leave(ir_dereference_record *ir) argument
177 visit_leave(ir_assignment *ir) argument
183 visit_leave(ir_call *ir) argument
189 visit_leave(ir_return *ir) argument
195 visit_leave(ir_if *ir) argument
201 visit_enter(ir_expression *ir) argument
207 visit_enter(ir_texture *ir) argument
213 visit_enter(ir_swizzle *ir) argument
219 visit_enter(ir_dereference_array *ir) argument
225 visit_enter(ir_dereference_record *ir) argument
231 visit_enter(ir_assignment *ir) argument
237 visit_enter(ir_call *ir) argument
243 visit_enter(ir_return *ir) argument
249 visit_enter(ir_if *ir) argument
[all...]
H A Dir_validate.cpp31 * in the ir tree. ir_variable does appear multiple times: Once as a
36 #include "ir.h"
60 virtual ir_visitor_status visit(ir_dereference_variable *ir);
62 virtual ir_visitor_status visit_enter(ir_if *ir);
64 virtual ir_visitor_status visit_leave(ir_loop *ir);
65 virtual ir_visitor_status visit_enter(ir_function *ir);
66 virtual ir_visitor_status visit_leave(ir_function *ir);
67 virtual ir_visitor_status visit_enter(ir_function_signature *ir);
69 virtual ir_visitor_status visit_leave(ir_expression *ir);
70 virtual ir_visitor_status visit_leave(ir_swizzle *ir);
84 visit(ir_dereference_variable *ir) argument
105 visit_enter(ir_if *ir) argument
120 visit_leave(ir_loop *ir) argument
156 visit_enter(ir_function *ir) argument
194 visit_leave(ir_function *ir) argument
203 visit_enter(ir_function_signature *ir) argument
227 visit_leave(ir_expression *ir) argument
483 visit_leave(ir_swizzle *ir) argument
500 visit(ir_variable *ir) argument
537 visit_enter(ir_assignment *ir) argument
569 visit_enter(ir_call *ir) argument
630 validate_ir(ir_instruction *ir, void *data) argument
644 check_node_type(ir_instruction *ir, void *data) argument
665 ir_instruction *ir = (ir_instruction *)iter.get(); local
[all...]
H A Dlower_instructions.cpp86 #include "ir.h"
125 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir) argument
127 ir->operation = ir_binop_add;
128 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type,
129 ir->operands[1], NULL);
134 lower_instructions_visitor::div_to_mul_rcp(ir_expression *ir) argument
136 assert(ir->operands[1]->type->is_float());
140 expr = new(ir) ir_expressio
152 int_div_to_mul_rcp(ir_expression *ir) argument
202 exp_to_exp2(ir_expression *ir) argument
213 pow_to_exp2(ir_expression *ir) argument
227 log_to_log2(ir_expression *ir) argument
237 mod_to_fract(ir_expression *ir) argument
272 visit_leave(ir_expression *ir) argument
[all...]
H A Dir_expression_flattening.h38 bool (*predicate)(ir_instruction *ir));
H A Dir_expression_flattening.cpp34 #include "ir.h"
42 ir_expression_flattening_visitor(bool (*predicate)(ir_instruction *ir)) argument
53 bool (*predicate)(ir_instruction *ir);
58 bool (*predicate)(ir_instruction *ir))
63 ir_instruction *ir = (ir_instruction *)iter.get(); local
65 ir->accept(&v);
74 ir_rvalue *ir = *rvalue; local
76 if (!ir || !this->predicate(ir))
79 void *ctx = ralloc_parent(ir);
57 do_expression_flattening(exec_list *instructions, bool (*predicate)(ir_instruction *ir)) argument
[all...]
H A Dlower_vec_index_to_swizzle.cpp32 #include "ir.h"
62 ir_vec_index_to_swizzle_visitor::convert_vec_index_to_swizzle(ir_rvalue *ir) argument
64 ir_dereference_array *deref = ir->as_dereference_array();
68 return ir;
71 return ir;
76 return ir;
78 void *ctx = ralloc_parent(ir);
102 ir_vec_index_to_swizzle_visitor::visit_enter(ir_expression *ir) argument
106 for (i = 0; i < ir->get_num_operands(); i++) {
107 ir
114 visit_enter(ir_swizzle *ir) argument
126 visit_enter(ir_assignment *ir) argument
135 visit_enter(ir_call *ir) argument
150 visit_enter(ir_return *ir) argument
160 visit_enter(ir_if *ir) argument
[all...]
H A Dlower_texture_projection.cpp38 #include "ir.h"
47 ir_visitor_status visit_leave(ir_texture *ir);
53 lower_texture_projection_visitor::visit_leave(ir_texture *ir) argument
55 if (!ir->projector)
58 void *mem_ctx = ralloc_parent(ir);
60 ir_variable *var = new(mem_ctx) ir_variable(ir->projector->type,
65 ir->projector->type,
66 ir->projector,
72 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul,
73 ir
[all...]
H A Dopt_swizzle_swizzle.cpp30 #include "ir.h"
52 ir_swizzle_swizzle_visitor::visit_enter(ir_swizzle *ir) argument
56 ir_swizzle *swiz2 = ir->val->as_swizzle();
70 if (ir->mask.num_components >= 1)
71 ir->mask.x = mask2[ir->mask.x];
72 if (ir->mask.num_components >= 2)
73 ir->mask.y = mask2[ir->mask.y];
74 if (ir
[all...]
H A Dir_print_visitor.cpp63 ir_instruction *ir = (ir_instruction *)iter.get(); local
64 ir->print();
65 if (ir->ir_type != ir_type_function)
138 void ir_print_visitor::visit(ir_rvalue *ir) argument
143 void ir_print_visitor::visit(ir_variable *ir) argument
147 const char *const cent = (ir->centroid) ? "centroid " : "";
148 const char *const inv = (ir->invariant) ? "invariant " : "";
154 cent, inv, mode[ir->mode], interp[ir->interpolation]);
156 print_type(ir
161 visit(ir_function_signature *ir) argument
206 visit(ir_function *ir) argument
222 visit(ir_expression *ir) argument
238 visit(ir_texture *ir) argument
301 visit(ir_swizzle *ir) argument
320 visit(ir_dereference_variable *ir) argument
327 visit(ir_dereference_array *ir) argument
336 visit(ir_dereference_record *ir) argument
344 visit(ir_assignment *ir) argument
373 visit(ir_constant *ir) argument
409 visit(ir_call *ir) argument
425 visit(ir_return *ir) argument
440 visit(ir_discard *ir) argument
454 visit(ir_if *ir) argument
496 visit(ir_loop *ir) argument
527 visit(ir_loop_jump *ir) argument
[all...]
H A Dopt_tree_grafting.cpp50 #include "ir.h"
81 ir_visitor_status check_graft(ir_instruction *ir, ir_variable *var);
96 dereferences_variable_callback(ir_instruction *ir, void *data) argument
99 ir_dereference_variable *deref = ir->as_dereference_variable();
106 dereferences_variable(ir_instruction *ir, ir_variable *var) argument
113 visit_tree(ir, dereferences_variable_callback, &info);
146 ir_tree_grafting_visitor::visit_enter(ir_loop *ir) argument
148 (void)ir;
159 * \param ir An instruction that writes to a variable.
163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variabl argument
178 visit_leave(ir_assignment *ir) argument
191 visit_enter(ir_function *ir) argument
198 visit_enter(ir_function_signature *ir) argument
205 visit_enter(ir_call *ir) argument
211 ir_rvalue *ir = (ir_rvalue *)iter.get(); local
234 visit_enter(ir_expression *ir) argument
245 visit_enter(ir_if *ir) argument
257 visit_enter(ir_swizzle *ir) argument
266 visit_enter(ir_texture *ir) argument
339 ir_instruction *ir, *next; local
[all...]
/external/clang/test/CodeGenCXX/
H A Dlvalue-bitcasts.cpp7 void reinterpret_cast_test(int &ir, float &fr, X &xr) { argument
11 ir = reinterpret_cast<int&>(fr);
15 ir = reinterpret_cast<int&>(xr);
19 fr = reinterpret_cast<float&>(ir);
27 xr = reinterpret_cast<X&>(ir);
38 cfr = reinterpret_cast<_Complex float&>(ir);
52 void c_cast(int &ir, float &fr, X &xr) { argument
56 ir = (int&)fr;
60 ir = (int&)xr;
64 fr = (float&)ir;
97 functional_cast(int &ir, float &fr, X &xr) argument
[all...]

Completed in 571 milliseconds

1234567891011>>