/external/mesa3d/src/glsl/ |
lower_if_to_cond_assign.cpp | 49 #include "ir.h" 93 check_control_flow(ir_instruction *ir, void *data) 96 switch (ir->ir_type) { 116 ir_instruction *ir = (ir_instruction *) node; local 118 if (ir->ir_type == ir_type_assignment) { 119 ir_assignment *assign = (ir_assignment *)ir; 152 ir->remove(); 153 if_ir->insert_before(ir); 158 ir_if_to_cond_assign_visitor::visit_enter(ir_if *ir) 160 (void) ir; [all...] |
ir_variable_refcount.cpp | 32 #include "ir.h" 67 ir_variable_refcount_visitor::visit(ir_variable *ir) 69 ir_variable_refcount_entry *entry = this->get_variable_entry(ir); 78 ir_variable_refcount_visitor::visit(ir_dereference_variable *ir) 80 ir_variable *const var = ir->variable_referenced(); 91 ir_variable_refcount_visitor::visit_enter(ir_function_signature *ir) 96 visit_list_elements(this, &ir->body); 102 ir_variable_refcount_visitor::visit_leave(ir_assignment *ir) 105 entry = this->get_variable_entry(ir->lhs->variable_referenced()); 109 entry->assign = ir; [all...] |
link_functions.cpp | 27 #include "ir.h" 57 virtual ir_visitor_status visit(ir_variable *ir) 59 hash_table_insert(locals, ir, ir); 63 virtual ir_visitor_status visit_enter(ir_call *ir) 65 /* If ir is an ir_call from a function that was imported from another 71 const ir_function_signature *const callee = ir->callee; 80 ir->use_builtin); 82 ir->callee = sig; 89 sig = find_matching_signature(name, &ir->actual_parameters, shader_list [all...] |
ir_set_program_inouts.cpp | 37 * from the GLSL IR. 42 #include "ir.h" 107 ir_set_program_inouts_visitor::visit(ir_dereference_variable *ir) 109 if (hash_table_find(this->ht, ir->var) == NULL) 112 if (ir->type->is_array()) { 113 mark(this->prog, ir->var, 0, 114 ir->type->length * ir->type->fields.array->matrix_columns, 117 mark(this->prog, ir->var, 0, ir->type->matrix_columns [all...] |
lower_clip_distance.cpp | 49 #include "ir.h" 63 void visit_new_assignment(ir_assignment *ir); 85 lower_clip_distance_visitor::visit(ir_variable *ir) 93 if (ir->name && strcmp(ir->name, "gl_ClipDistance") == 0) { 95 this->old_clip_distance_var = ir; 96 assert (ir->type->is_array()); 97 assert (ir->type->element_type() == glsl_type::float_type); 98 unsigned new_size = (ir->type->array_size() + 3) / 4; 101 this->new_clip_distance_var = ir->clone(ralloc_parent(ir), NULL) [all...] |
loop_unroll.cpp | 37 virtual ir_visitor_status visit_leave(ir_loop *ir); 47 is_break(ir_instruction *ir) 49 return ir != NULL && ir->ir_type == ir_type_loop_jump 50 && ((ir_loop_jump *) ir)->is_break(); 66 virtual ir_visitor_status visit_enter(ir_assignment *ir) 72 virtual ir_visitor_status visit_enter(ir_expression *ir) 78 virtual ir_visitor_status visit_enter(ir_loop *ir) 87 loop_unroll_visitor::visit_leave(ir_loop *ir) 89 loop_variable_state *const ls = this->state->get(ir); [all...] |
lower_output_reads.cpp | 25 #include "ir.h" 87 output_read_remover::visit(ir_dereference_variable *ir) 89 if (ir->var->mode != ir_var_out) 92 ir_variable *temp = (ir_variable *) hash_table_find(replacements, ir->var); 96 void *var_ctx = ralloc_parent(ir->var); 97 temp = new(var_ctx) ir_variable(ir->var->type, ir->var->name, 99 hash_table_insert(replacements, temp, ir->var); 103 ir->var = temp; 123 ir_return *ir = (ir_return *) closure local [all...] |
opt_copy_propagation.cpp | 35 #include "ir.h" 93 void add_copy(ir_assignment *ir); 94 void kill(ir_variable *ir); 115 ir_copy_propagation_visitor::visit_enter(ir_function_signature *ir) 129 visit_list_elements(this, &ir->body); 139 ir_copy_propagation_visitor::visit_leave(ir_assignment *ir) 141 kill(ir->lhs->variable_referenced()); 143 add_copy(ir); 149 ir_copy_propagation_visitor::visit_enter(ir_function *ir) 151 (void) ir; 191 ir_instruction *ir = (ir_instruction *)iter.get(); local [all...] |
/external/chromium_org/third_party/mesa/src/src/glsl/ |
ir_variable_refcount.cpp | 32 #include "ir.h" 67 ir_variable_refcount_visitor::visit(ir_variable *ir) 69 ir_variable_refcount_entry *entry = this->get_variable_entry(ir); 78 ir_variable_refcount_visitor::visit(ir_dereference_variable *ir) 80 ir_variable *const var = ir->variable_referenced(); 91 ir_variable_refcount_visitor::visit_enter(ir_function_signature *ir) 96 visit_list_elements(this, &ir->body); 102 ir_variable_refcount_visitor::visit_leave(ir_assignment *ir) 105 entry = this->get_variable_entry(ir->lhs->variable_referenced()); 109 entry->assign = ir; [all...] |
link_functions.cpp | 27 #include "ir.h" 57 virtual ir_visitor_status visit(ir_variable *ir) 59 hash_table_insert(locals, ir, ir); 63 virtual ir_visitor_status visit_enter(ir_call *ir) 65 /* If ir is an ir_call from a function that was imported from another 71 const ir_function_signature *const callee = ir->callee; 80 ir->use_builtin); 82 ir->callee = sig; 89 sig = find_matching_signature(name, &ir->actual_parameters, shader_list [all...] |
ir_set_program_inouts.cpp | 37 * from the GLSL IR. 42 #include "ir.h" 107 ir_set_program_inouts_visitor::visit(ir_dereference_variable *ir) 109 if (hash_table_find(this->ht, ir->var) == NULL) 112 if (ir->type->is_array()) { 113 mark(this->prog, ir->var, 0, 114 ir->type->length * ir->type->fields.array->matrix_columns, 117 mark(this->prog, ir->var, 0, ir->type->matrix_columns [all...] |
lower_clip_distance.cpp | 49 #include "ir.h" 63 void visit_new_assignment(ir_assignment *ir); 85 lower_clip_distance_visitor::visit(ir_variable *ir) 93 if (ir->name && strcmp(ir->name, "gl_ClipDistance") == 0) { 95 this->old_clip_distance_var = ir; 96 assert (ir->type->is_array()); 97 assert (ir->type->element_type() == glsl_type::float_type); 98 unsigned new_size = (ir->type->array_size() + 3) / 4; 101 this->new_clip_distance_var = ir->clone(ralloc_parent(ir), NULL) [all...] |
loop_unroll.cpp | 37 virtual ir_visitor_status visit_leave(ir_loop *ir); 47 is_break(ir_instruction *ir) 49 return ir != NULL && ir->ir_type == ir_type_loop_jump 50 && ((ir_loop_jump *) ir)->is_break(); 66 virtual ir_visitor_status visit_enter(ir_assignment *ir) 72 virtual ir_visitor_status visit_enter(ir_expression *ir) 78 virtual ir_visitor_status visit_enter(ir_loop *ir) 87 loop_unroll_visitor::visit_leave(ir_loop *ir) 89 loop_variable_state *const ls = this->state->get(ir); [all...] |
lower_output_reads.cpp | 25 #include "ir.h" 87 output_read_remover::visit(ir_dereference_variable *ir) 89 if (ir->var->mode != ir_var_out) 92 ir_variable *temp = (ir_variable *) hash_table_find(replacements, ir->var); 96 void *var_ctx = ralloc_parent(ir->var); 97 temp = new(var_ctx) ir_variable(ir->var->type, ir->var->name, 99 hash_table_insert(replacements, temp, ir->var); 103 ir->var = temp; 123 ir_return *ir = (ir_return *) closure local [all...] |
opt_copy_propagation.cpp | 35 #include "ir.h" 93 void add_copy(ir_assignment *ir); 94 void kill(ir_variable *ir); 115 ir_copy_propagation_visitor::visit_enter(ir_function_signature *ir) 129 visit_list_elements(this, &ir->body); 139 ir_copy_propagation_visitor::visit_leave(ir_assignment *ir) 141 kill(ir->lhs->variable_referenced()); 143 add_copy(ir); 149 ir_copy_propagation_visitor::visit_enter(ir_function *ir) 151 (void) ir; 191 ir_instruction *ir = (ir_instruction *)iter.get(); local [all...] |
ir_import_prototypes.cpp | 26 * Import function prototypes from one IR tree into another. 30 #include "ir.h" 54 virtual ir_visitor_status visit_enter(ir_function *ir) 58 this->function = this->symbols->get_function(ir->name); 60 this->function = new(this->mem_ctx) ir_function(ir->name); 71 virtual ir_visitor_status visit_leave(ir_function *ir) 73 (void) ir; 80 ir_visitor_status visit_enter(ir_function_signature *ir) 84 ir_function_signature *copy = ir->clone_prototype(mem_ctx, NULL); 104 * Import function prototypes from one IR tree into anothe [all...] |
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
basic.cpp | 4 int &ir = { 17 }; // expected-error{{reference to type 'int' cannot bind to an initializer list}} local
|
/external/clang/test/CXX/over/over.match/over.match.best/ |
p1.cpp | 9 int &ir = f0(ip, 0); local
|
/frameworks/rs/java/tests/MathErr/src/com/example/android/rs/matherr/ |
math_err.rs | 54 float ir; 55 SET_FLOAT_WORD(ir, ibits); 57 ir -= 1.5f; 58 float ir2 = ir*ir; 60 (0.666666667f * ir) - 62 (0.098765432f * ir*ir2) - 64 (0.026337449f * ir*ir2*ir2) -
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
ir_to_mesa.cpp | 29 * Translate GLSL IR to Mesa's gl_program representation. 34 #include "ir.h" 168 /** Pointer to the ir source this tree came from for debugging */ 169 ir_instruction *ir; member in class:ir_to_mesa_instruction 213 * Mesa IR. 240 void reladdr_to_temp(ir_instruction *ir, src_reg *reg, int *num_reladdr); 283 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op); 285 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 288 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 291 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op 840 ir_instruction *ir = (ir_instruction *)iter.get(); local 2341 ir_instruction *ir = mesa_instruction_annotation[i]; local 2963 exec_list *ir = prog->_LinkedShaders[i]->ir; local [all...] |
/external/mesa3d/src/mesa/program/ |
ir_to_mesa.cpp | 29 * Translate GLSL IR to Mesa's gl_program representation. 34 #include "ir.h" 168 /** Pointer to the ir source this tree came from for debugging */ 169 ir_instruction *ir; member in class:ir_to_mesa_instruction 213 * Mesa IR. 240 void reladdr_to_temp(ir_instruction *ir, src_reg *reg, int *num_reladdr); 283 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op); 285 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 288 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 291 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op 840 ir_instruction *ir = (ir_instruction *)iter.get(); local 2341 ir_instruction *ir = mesa_instruction_annotation[i]; local 2963 exec_list *ir = prog->_LinkedShaders[i]->ir; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/ |
brw_fs_vector_splitting.cpp | 44 #include "glsl/ir.h" 138 ir_vector_reference_visitor::visit(ir_variable *ir) 140 variable_entry *entry = this->get_variable_entry(ir); 149 ir_vector_reference_visitor::visit(ir_dereference_variable *ir) 151 ir_variable *const var = ir->var; 161 ir_vector_reference_visitor::visit_enter(ir_swizzle *ir) 164 if (ir->val->as_dereference_variable() && ir->type->is_scalar()) 171 ir_vector_reference_visitor::visit_enter(ir_assignment *ir) 173 if (ir->lhs->as_dereference_variable() & [all...] |
brw_lower_texture_gradients.cpp | 28 #include "glsl/ir.h" 41 ir_visitor_status visit_leave(ir_texture *ir); 87 lower_texture_grad_visitor::visit_leave(ir_texture *ir) 90 if (ir->op != ir_txd || !ir->shadow_comparitor) 93 void *mem_ctx = ralloc_parent(ir); 95 const glsl_type *grad_type = ir->lod_info.grad.dPdx->type; 101 txs->set_sampler(ir->sampler->clone(mem_ctx, NULL), 102 txs_type(ir->sampler->type)); 106 if (ir->sampler->type->sampler_dimensionality == GLSL_SAMPLER_DIM_CUBE) [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_fs_vector_splitting.cpp | 44 #include "glsl/ir.h" 138 ir_vector_reference_visitor::visit(ir_variable *ir) 140 variable_entry *entry = this->get_variable_entry(ir); 149 ir_vector_reference_visitor::visit(ir_dereference_variable *ir) 151 ir_variable *const var = ir->var; 161 ir_vector_reference_visitor::visit_enter(ir_swizzle *ir) 164 if (ir->val->as_dereference_variable() && ir->type->is_scalar()) 171 ir_vector_reference_visitor::visit_enter(ir_assignment *ir) 173 if (ir->lhs->as_dereference_variable() & [all...] |
brw_lower_texture_gradients.cpp | 28 #include "glsl/ir.h" 41 ir_visitor_status visit_leave(ir_texture *ir); 87 lower_texture_grad_visitor::visit_leave(ir_texture *ir) 90 if (ir->op != ir_txd || !ir->shadow_comparitor) 93 void *mem_ctx = ralloc_parent(ir); 95 const glsl_type *grad_type = ir->lod_info.grad.dPdx->type; 101 txs->set_sampler(ir->sampler->clone(mem_ctx, NULL), 102 txs_type(ir->sampler->type)); 106 if (ir->sampler->type->sampler_dimensionality == GLSL_SAMPLER_DIM_CUBE) [all...] |