/external/mesa3d/src/compiler/glsl/ |
D | ir_validate.cpp | 64 virtual ir_visitor_status visit(ir_dereference_variable *ir); 66 virtual ir_visitor_status visit_enter(ir_discard *ir); 67 virtual ir_visitor_status visit_enter(ir_if *ir); 69 virtual ir_visitor_status visit_enter(ir_function *ir); 70 virtual ir_visitor_status visit_leave(ir_function *ir); 71 virtual ir_visitor_status visit_enter(ir_function_signature *ir); 73 virtual ir_visitor_status visit_leave(ir_expression *ir); 74 virtual ir_visitor_status visit_leave(ir_swizzle *ir); 78 virtual ir_visitor_status visit_enter(ir_assignment *ir); 79 virtual ir_visitor_status visit_enter(ir_call *ir); [all …]
|
D | lower_instructions.cpp | 167 void reverse_to_shifts(ir_expression *ir); 168 void find_lsb_to_float_cast(ir_expression *ir); 169 void find_msb_to_float_cast(ir_expression *ir); 170 void imul_high_to_mul(ir_expression *ir); 171 void sqrt_to_abs_sqrt(ir_expression *ir); 193 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir) in sub_to_add_neg() argument 195 ir->operation = ir_binop_add; in sub_to_add_neg() 196 ir->init_num_operands(); in sub_to_add_neg() 197 ir->operands[1] = new(ir) ir_expression(ir_unop_neg, ir->operands[1]->type, in sub_to_add_neg() 198 ir->operands[1], NULL); in sub_to_add_neg() [all …]
|
D | ir_rvalue_visitor.cpp | 38 ir_rvalue_base_visitor::rvalue_visit(ir_expression *ir) in rvalue_visit() argument 42 for (operand = 0; operand < ir->num_operands; operand++) { in rvalue_visit() 43 handle_rvalue(&ir->operands[operand]); in rvalue_visit() 50 ir_rvalue_base_visitor::rvalue_visit(ir_texture *ir) in rvalue_visit() argument 52 handle_rvalue(&ir->coordinate); in rvalue_visit() 53 handle_rvalue(&ir->projector); in rvalue_visit() 54 handle_rvalue(&ir->shadow_comparator); in rvalue_visit() 55 handle_rvalue(&ir->offset); in rvalue_visit() 57 switch (ir->op) { in rvalue_visit() 65 handle_rvalue(&ir->lod_info.bias); in rvalue_visit() [all …]
|
D | ir_print_visitor.cpp | 71 foreach_in_list(ir_instruction, ir, instructions) { in _mesa_print_ir() 72 ir->fprint(f); in _mesa_print_ir() 73 if (ir->ir_type != ir_type_function) in _mesa_print_ir() 82 const ir_instruction *ir = (const ir_instruction *)instruction; in fprint_ir() local 83 ir->fprint(f); in fprint_ir() 164 void ir_print_visitor::visit(ir_variable *ir) in visit() argument 169 if (ir->data.binding) in visit() 170 snprintf(binding, sizeof(binding), "binding=%i ", ir->data.binding); in visit() 173 if (ir->data.location != -1) in visit() 174 snprintf(loc, sizeof(loc), "location=%i ", ir->data.location); in visit() [all …]
|
D | ir_builder_print_visitor.cpp | 66 void print_without_declaration(const ir_rvalue *ir); 67 void print_without_declaration(const ir_constant *ir); 68 void print_without_declaration(const ir_dereference_variable *ir); 69 void print_without_declaration(const ir_swizzle *ir); 70 void print_without_declaration(const ir_expression *ir); 88 is_simple_operand(const ir_rvalue *ir, unsigned depth = 1) in is_simple_operand() argument 93 switch (ir->ir_type) { in is_simple_operand() 98 if (ir->type == glsl_type::uint_type || in is_simple_operand() 99 ir->type == glsl_type::int_type || in is_simple_operand() 100 ir->type == glsl_type::float_type || in is_simple_operand() [all …]
|
D | ir_hierarchical_visitor.cpp | 38 ir_hierarchical_visitor::visit(ir_rvalue *ir) in visit() argument 41 this->callback_enter(ir, this->data_enter); in visit() 47 ir_hierarchical_visitor::visit(ir_variable *ir) in visit() argument 50 this->callback_enter(ir, this->data_enter); in visit() 56 ir_hierarchical_visitor::visit(ir_constant *ir) in visit() argument 59 this->callback_enter(ir, this->data_enter); in visit() 65 ir_hierarchical_visitor::visit(ir_loop_jump *ir) in visit() argument 68 this->callback_enter(ir, this->data_enter); in visit() 74 ir_hierarchical_visitor::visit(ir_dereference_variable *ir) in visit() argument 77 this->callback_enter(ir, this->data_enter); in visit() [all …]
|
D | opt_algebraic.cpp | 61 virtual ir_visitor_status visit_enter(ir_assignment *ir); 63 ir_rvalue *handle_expression(ir_expression *ir); 86 ir_algebraic_visitor::visit_enter(ir_assignment *ir) in visit_enter() argument 88 ir_variable *var = ir->lhs->variable_referenced(); in visit_enter() 103 is_vec_zero(ir_constant *ir) in is_vec_zero() argument 105 return (ir == NULL) ? false : ir->is_zero(); in is_vec_zero() 109 is_vec_one(ir_constant *ir) in is_vec_one() argument 111 return (ir == NULL) ? false : ir->is_one(); in is_vec_one() 115 is_vec_two(ir_constant *ir) in is_vec_two() argument 117 return (ir == NULL) ? false : ir->is_value(2.0, 2); in is_vec_two() [all …]
|
D | opt_dead_code_local.cpp | 51 assignment_entry(ir_variable *lhs, ir_assignment *ir) in assignment_entry() argument 54 assert(ir); in assignment_entry() 56 this->ir = ir; in assignment_entry() 57 this->unused = ir->write_mask; in assignment_entry() 61 ir_assignment *ir; member in __anon107487d40111::assignment_entry 94 virtual ir_visitor_status visit(ir_dereference_variable *ir) in visit() argument 96 use_channels(ir->var, ~0); in visit() 101 virtual ir_visitor_status visit(ir_swizzle *ir) in visit() argument 103 ir_dereference_variable *deref = ir->val->as_dereference_variable(); in visit() 108 used |= 1 << ir->mask.x; in visit() [all …]
|
D | lower_jumps.cpp | 293 void truncate_after_instruction(exec_node *ir) in truncate_after_instruction() 295 if (!ir) in truncate_after_instruction() 298 while (!ir->get_next()->is_tail_sentinel()) { in truncate_after_instruction() 299 ((ir_instruction *)ir->get_next())->remove(); in truncate_after_instruction() 304 void move_outer_block_inside(ir_instruction *ir, exec_list *inner_block) in move_outer_block_inside() 306 while (!ir->get_next()->is_tail_sentinel()) { in move_outer_block_inside() 307 ir_instruction *move_ir = (ir_instruction *)ir->get_next(); in move_outer_block_inside() 318 void insert_lowered_return(ir_return *ir) in insert_lowered_return() 323 ir->insert_before( in insert_lowered_return() 324 new(ir) ir_assignment( in insert_lowered_return() [all …]
|
D | opt_tree_grafting.cpp | 81 ir_visitor_status check_graft(ir_instruction *ir, ir_variable *var); 96 dereferences_variable_callback(ir_instruction *ir, void *data) in dereferences_variable_callback() argument 99 ir_dereference_variable *deref = ir->as_dereference_variable(); in dereferences_variable_callback() 106 dereferences_variable(ir_instruction *ir, ir_variable *var) in dereferences_variable() argument 113 visit_tree(ir, dereferences_variable_callback, &info); in dereferences_variable() 146 ir_tree_grafting_visitor::visit_enter(ir_loop *ir) in visit_enter() argument 148 (void)ir; in visit_enter() 163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variable *var) in check_graft() argument 168 ir->fprint(stderr); in check_graft() 178 ir_tree_grafting_visitor::visit_leave(ir_assignment *ir) in visit_leave() argument [all …]
|
D | lower_tess_level.cpp | 65 bool is_tess_level_array(ir_rvalue *ir); 66 ir_rvalue *lower_tess_level_array(ir_rvalue *ir); 68 void visit_new_assignment(ir_assignment *ir); 102 lower_tess_level_visitor::visit(ir_variable *ir) in visit() argument 104 if ((!ir->name) || in visit() 105 ((strcmp(ir->name, "gl_TessLevelInner") != 0) && in visit() 106 (strcmp(ir->name, "gl_TessLevelOuter") != 0))) in visit() 109 assert (ir->type->is_array()); in visit() 111 if (strcmp(ir->name, "gl_TessLevelOuter") == 0) { in visit() 115 old_tess_level_outer_var = ir; in visit() [all …]
|
D | lower_distance.cpp | 88 bool is_distance_vec8(ir_rvalue *ir); 89 ir_rvalue *lower_distance_vec8(ir_rvalue *ir); 91 void visit_new_assignment(ir_assignment *ir); 137 lower_distance_visitor::visit(ir_variable *ir) in visit() argument 142 if (!ir->name || strcmp(ir->name, in_name) != 0) in visit() 144 assert (ir->type->is_array()); in visit() 146 if (ir->data.mode == ir_var_shader_out) { in visit() 151 } else if (ir->data.mode == ir_var_shader_in) { in visit() 162 *old_var = ir; in visit() 168 *new_var = ir->clone(ralloc_parent(ir), NULL); in visit() [all …]
|
D | glsl_to_nir.cpp | 73 void create_function(ir_function_signature *ir); 77 nir_ssa_def *evaluate_rvalue(ir_rvalue *ir); 93 nir_deref_var *evaluate_deref(nir_instr *mem_ctx, ir_instruction *ir); 157 v2.run(sh->ir); in glsl_to_nir() 158 visit_exec_list(sh->ir, &v1); in glsl_to_nir() 209 nir_visitor::evaluate_deref(nir_instr *mem_ctx, ir_instruction *ir) in evaluate_deref() argument 211 ir->accept(this); in evaluate_deref() 217 constant_copy(ir_constant *ir, void *mem_ctx) in constant_copy() argument 219 if (ir == NULL) in constant_copy() 224 const unsigned rows = ir->type->vector_elements; in constant_copy() [all …]
|
D | test_optpass.cpp | 56 do_optimization(struct exec_list *ir, const char *optimization, in do_optimization() argument 66 return do_common_optimization(ir, int_0 != 0, false, options, true); in do_optimization() 68 return do_algebraic(ir, true, options); in do_optimization() 70 return do_constant_folding(ir); in do_optimization() 72 return do_constant_variable(ir); in do_optimization() 74 return do_constant_variable_unlinked(ir); in do_optimization() 76 return do_copy_propagation(ir); in do_optimization() 78 return do_copy_propagation_elements(ir); in do_optimization() 80 return do_constant_propagation(ir); in do_optimization() 82 return do_dead_code(ir, false); in do_optimization() [all …]
|
D | lower_vec_index_to_cond_assign.cpp | 66 ir_rvalue *convert_vector_extract_to_cond_assign(ir_rvalue *ir); 127 ir_vec_index_to_cond_assign_visitor::convert_vector_extract_to_cond_assign(ir_rvalue *ir) in convert_vector_extract_to_cond_assign() argument 129 ir_expression *const expr = ir->as_expression(); in convert_vector_extract_to_cond_assign() 132 return ir; in convert_vector_extract_to_cond_assign() 147 return ir; in convert_vector_extract_to_cond_assign() 154 return convert_vec_index_to_cond_assign(ralloc_parent(ir), in convert_vector_extract_to_cond_assign() 157 ir->type); in convert_vector_extract_to_cond_assign() 161 return ir; in convert_vector_extract_to_cond_assign() 163 return convert_vec_index_to_cond_assign(ralloc_parent(ir), in convert_vector_extract_to_cond_assign() 166 ir->type); in convert_vector_extract_to_cond_assign() [all …]
|
D | loop_unroll.cpp | 42 virtual ir_visitor_status visit_leave(ir_loop *ir); 43 void simple_unroll(ir_loop *ir, int iterations); 44 void complex_unroll(ir_loop *ir, int iterations, 96 virtual ir_visitor_status visit_enter(ir_dereference_array *ir) in visit_enter() argument 102 if ((ir->array->type->is_array() && in visit_enter() 103 ir->array->type->contains_sampler()) && in visit_enter() 104 !ir->array_index->constant_expression_value(ralloc_parent(ir))) { in visit_enter() 119 if ((ir->array->type->is_array() || ir->array->type->is_matrix()) && in visit_enter() 120 !ir->array_index->as_constant()) { in visit_enter() 121 ir_variable *array = ir->array->variable_referenced(); in visit_enter() [all …]
|
D | opt_constant_folding.cpp | 53 virtual ir_visitor_status visit_enter(ir_discard *ir); 54 virtual ir_visitor_status visit_enter(ir_assignment *ir); 55 virtual ir_visitor_status visit_enter(ir_call *ir); 120 ir_constant_folding_visitor::visit_enter(ir_discard *ir) in visit_enter() argument 122 if (ir->condition) { in visit_enter() 123 ir->condition->accept(this); in visit_enter() 124 handle_rvalue(&ir->condition); in visit_enter() 126 ir_constant *const_val = ir->condition->as_constant(); in visit_enter() 132 ir->condition = NULL; in visit_enter() 134 ir->remove(); in visit_enter() [all …]
|
D | opt_if_simplification.cpp | 55 ir_if_simplification_visitor::visit_enter(ir_assignment *ir) in visit_enter() argument 57 (void) ir; in visit_enter() 72 ir_if_simplification_visitor::visit_leave(ir_if *ir) in visit_leave() argument 75 if (ir->then_instructions.is_empty() && in visit_leave() 76 ir->else_instructions.is_empty()) { in visit_leave() 77 ir->remove(); in visit_leave() 88 ir->condition->constant_expression_value(ralloc_parent(ir)); in visit_leave() 94 ir->insert_before(&ir->then_instructions); in visit_leave() 96 ir->insert_before(&ir->else_instructions); in visit_leave() 98 ir->remove(); in visit_leave() [all …]
|
D | opt_copy_propagation.cpp | 72 void add_copy(ir_assignment *ir); 73 void kill(ir_variable *ir); 95 ir_copy_propagation_visitor::visit_enter(ir_function_signature *ir) in visit_enter() argument 111 visit_list_elements(this, &ir->body); in visit_enter() 124 ir_copy_propagation_visitor::visit_leave(ir_assignment *ir) in visit_leave() argument 126 kill(ir->lhs->variable_referenced()); in visit_leave() 128 add_copy(ir); in visit_leave() 134 ir_copy_propagation_visitor::visit_enter(ir_function *ir) in visit_enter() argument 136 (void) ir; in visit_enter() 148 ir_copy_propagation_visitor::visit(ir_dereference_variable *ir) in visit() argument [all …]
|
D | lower_ubo_reference.cpp | 57 ir_visitor_status visit_enter(ir_assignment *ir); 73 bool check_for_buffer_array_copy(ir_assignment *ir); 74 bool check_for_buffer_struct_copy(ir_assignment *ir); 75 void check_for_ssbo_store(ir_assignment *ir); 96 void check_ssbo_unsized_array_length_assignment(ir_assignment *ir); 106 ir_call *lower_ssbo_atomic_intrinsic(ir_call *ir); 107 ir_call *check_for_ssbo_atomic_intrinsic(ir_call *ir); 108 ir_visitor_status visit_enter(ir_call *ir); 109 ir_visitor_status visit_enter(ir_texture *ir); 135 ir_rvalue *ir = d; in interface_field_name() local [all …]
|
D | lower_discard_flow.cpp | 64 ir_visitor_status visit(ir_loop_jump *ir); 65 ir_visitor_status visit_enter(ir_discard *ir); 66 ir_visitor_status visit_enter(ir_loop *ir); 67 ir_visitor_status visit_enter(ir_function_signature *ir); 78 lower_discard_flow_visitor::visit(ir_loop_jump *ir) in visit() argument 80 if (ir->mode != ir_loop_jump::jump_continue) in visit() 83 ir->insert_before(generate_discard_break()); in visit() 89 lower_discard_flow_visitor::visit_enter(ir_discard *ir) in visit_enter() argument 93 if (ir->condition) { in visit_enter() 95 rhs = ir->condition; in visit_enter() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | ir_to_mesa.cpp | 157 ir_instruction *ir; member in __anone05741030211::ir_to_mesa_instruction 227 void reladdr_to_temp(ir_instruction *ir, src_reg *reg, int *num_reladdr); 273 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op); 275 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 278 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 281 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op, 288 ir_to_mesa_instruction * emit_dp(ir_instruction *ir, 294 void emit_scalar(ir_instruction *ir, enum prog_opcode op, 297 void emit_scalar(ir_instruction *ir, enum prog_opcode op, 300 bool try_emit_mad(ir_expression *ir, [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_glsl_to_tgsi.cpp | 69 static unsigned is_precise(const ir_variable *ir) in is_precise() argument 71 if (!ir) in is_precise() 73 return ir->data.precise || ir->data.invariant; in is_precise() 213 void reladdr_to_temp(ir_instruction *ir, st_src_reg *reg, int *num_reladdr); 272 glsl_to_tgsi_instruction *emit_asm(ir_instruction *ir, unsigned op, 279 glsl_to_tgsi_instruction *emit_asm(ir_instruction *ir, unsigned op, 293 glsl_to_tgsi_instruction *emit_dp(ir_instruction *ir, 299 void emit_scalar(ir_instruction *ir, unsigned op, 302 void emit_scalar(ir_instruction *ir, unsigned op, 305 void emit_arl(ir_instruction *ir, st_dst_reg dst, st_src_reg src0); [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/msa/ |
D | emergency-spill.mir | 136 SD killed $a0_64, %stack.1.a, 0 :: (store 8 into %ir.1, align 16) 137 SD killed $a1_64, %stack.1.a, 8 :: (store 8 into %ir.2) 138 $w0 = LD_B %stack.1.a, 0 :: (dereferenceable load 16 from %ir.a) 139 SD killed $a2_64, %stack.2.b, 0 :: (store 8 into %ir.4, align 16) 140 SD killed $a3_64, %stack.2.b, 8 :: (store 8 into %ir.5) 141 $w1 = LD_B %stack.2.b, 0 :: (dereferenceable load 16 from %ir.b) 142 ST_B killed $w0, %stack.3.a.addr, 0 :: (store 16 into %ir.a.addr) 143 ST_B killed $w1, %stack.4.b.addr, 0 :: (store 16 into %ir.b.addr) 144 SW $t0, %stack.5.c.addr, 0, implicit killed $t0_64 :: (store 4 into %ir.c.addr) 146 SD killed $at_64, %stack.6.g, 0 :: (store 8 into %ir.g) [all …]
|
/external/clang/test/CodeGenCXX/ |
D | lvalue-bitcasts.cpp | 7 void reinterpret_cast_test(int &ir, float &fr, X &xr) { in reinterpret_cast_test() argument 11 ir = reinterpret_cast<int&>(fr); in reinterpret_cast_test() 15 ir = reinterpret_cast<int&>(xr); in reinterpret_cast_test() 19 fr = reinterpret_cast<float&>(ir); in reinterpret_cast_test() 27 xr = reinterpret_cast<X&>(ir); in reinterpret_cast_test() 38 cfr = reinterpret_cast<_Complex float&>(ir); in reinterpret_cast_test() 52 void c_cast(int &ir, float &fr, X &xr) { in c_cast() argument 56 ir = (int&)fr; in c_cast() 60 ir = (int&)xr; in c_cast() 64 fr = (float&)ir; in c_cast() [all …]
|