/external/mesa3d/src/glsl/ |
D | ir.h | 117 virtual class ir_rvalue * as_rvalue() { return NULL; } in as_rvalue() 141 class ir_rvalue : public ir_instruction { 143 virtual ir_rvalue *clone(void *mem_ctx, struct hash_table *) const = 0; 147 virtual ir_rvalue * as_rvalue() in as_rvalue() 152 ir_rvalue *as_rvalue_to_saturate(); 219 ir_rvalue(); 536 ir_if(ir_rvalue *condition) in ir_if() 556 ir_rvalue *condition; 605 ir_rvalue *from; /** Value of the loop counter on the first 608 ir_rvalue *to; /** Value of the loop counter on the last [all …]
|
D | ast_function.cpp | 30 static ir_rvalue * 31 convert_component(ir_rvalue *src, const glsl_type *desired_type); 34 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, 46 ir_rvalue *result = ast->hir(instructions, state); in process_parameters() 95 static ir_rvalue * 140 ir_rvalue *actual = (ir_rvalue *) actual_iter.get(); in match_function_by_name() 158 ir_rvalue *converted = convert_component(actual, formal->type); in match_function_by_name() 232 static ir_rvalue * 233 convert_component(ir_rvalue *src, const glsl_type *desired_type) in convert_component() 289 return (constant != NULL) ? (ir_rvalue *) constant : (ir_rvalue *) result; in convert_component() [all …]
|
D | lower_mat_op_to_vec.cpp | 49 ir_rvalue *get_element(ir_variable *var, int col, int row); 99 ir_rvalue * 142 ir_rvalue *a = get_column(a_var, 0); in do_mul_mat_mat() 143 ir_rvalue *b = get_element(b_var, b_col, 0); in do_mul_mat_mat() 168 ir_rvalue *result = get_column(result_var, b_col); in do_mul_mat_mat() 182 ir_rvalue *a = get_column(a_var, 0); in do_mul_mat_vec() 183 ir_rvalue *b = get_element(b_var, 0, 0); in do_mul_mat_vec() 210 ir_rvalue *result = new(mem_ctx) ir_dereference_variable(result_var); in do_mul_mat_vec() 225 ir_rvalue *a = new(mem_ctx) ir_dereference_variable(a_var); in do_mul_vec_mat() 226 ir_rvalue *b = get_column(b_var, i); in do_mul_vec_mat() [all …]
|
D | lower_vec_index_to_swizzle.cpp | 48 ir_rvalue *convert_vec_index_to_swizzle(ir_rvalue *val); 60 ir_rvalue * 61 ir_vec_index_to_swizzle_visitor::convert_vec_index_to_swizzle(ir_rvalue *ir) in convert_vec_index_to_swizzle() 120 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_enter() 121 ir_rvalue *new_param = convert_vec_index_to_swizzle(param); in visit_enter()
|
D | ir.cpp | 29 ir_rvalue::ir_rvalue() in ir_rvalue() function in ir_rvalue 34 bool ir_rvalue::is_zero() const in is_zero() 39 bool ir_rvalue::is_one() const in is_one() 44 bool ir_rvalue::is_negative_one() const in is_negative_one() 71 ir_assignment::set_lhs(ir_rvalue *lhs) in set_lhs() 149 ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, in ir_assignment() 150 ir_rvalue *condition, unsigned write_mask) in ir_assignment() 169 ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs, in ir_assignment() 170 ir_rvalue *condition) in ir_assignment() 195 ir_rvalue *op0) in ir_expression() [all …]
|
D | ast.h | 79 virtual ir_rvalue *hir(exec_list *instructions, 214 virtual ir_rvalue *hir(exec_list *instructions, 272 virtual ir_rvalue *hir(exec_list *instructions, 298 virtual ir_rvalue *hir(exec_list *instructions, 370 virtual ir_rvalue *hir(exec_list *instructions, 462 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *); 491 virtual ir_rvalue *hir(exec_list *instructions, 519 virtual ir_rvalue *hir(exec_list *instructions, 550 virtual ir_rvalue *hir(exec_list *instructions, 607 virtual ir_rvalue *hir(exec_list *instructions, [all …]
|
D | lower_variable_index_to_cond_assign.cpp | 43 ir_rvalue* array; 51 void generate(unsigned i, ir_rvalue* condition, exec_list *list) const in generate() 57 ir_rvalue *element = in generate() 60 ir_rvalue *variable = new(mem_ctx) ir_dereference_variable(this->var); in generate() 116 ir_rvalue *broadcast_index = in linear_sequence() 136 ir_rvalue *const condition_val = in linear_sequence() 148 ir_rvalue *const cond_deref = in linear_sequence() 154 ir_rvalue *const cond_deref = in linear_sequence() 160 ir_rvalue *const cond_deref = in linear_sequence() 162 ir_rvalue *const cond_swiz = in linear_sequence() [all …]
|
D | opt_constant_folding.cpp | 54 virtual void handle_rvalue(ir_rvalue **rvalue); 60 ir_constant_folding_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 122 ir_rvalue *param_rval = (ir_rvalue *)iter.get(); in visit_enter() 126 ir_rvalue *new_param = param_rval; in visit_enter()
|
D | lower_vec_index_to_cond_assign.cpp | 55 ir_rvalue *convert_vec_index_to_cond_assign(ir_rvalue *val); 67 ir_rvalue * 68 ir_vec_index_to_cond_assign_visitor::convert_vec_index_to_cond_assign(ir_rvalue *ir) in convert_vec_index_to_cond_assign() 192 ir_rvalue *condition, *swizzle; in visit_leave() 221 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_enter() 222 ir_rvalue *new_param = convert_vec_index_to_cond_assign(param); in visit_enter()
|
D | opt_function_inlining.cpp | 98 ir_rvalue *lhs = new(ctx) ir_dereference_variable(retval); in replace_return_with_assignment() 110 ir_rvalue * 143 ir_rvalue *param = (ir_rvalue *) param_iter.get(); in generate_inline() 313 ir_rvalue *rhs = call->generate_inline(ir); in visit_enter() 349 void replace_rvalue(ir_rvalue **rvalue); 365 ir_sampler_replacement_visitor::replace_rvalue(ir_rvalue **rvalue) in replace_rvalue() 405 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_leave() 406 ir_rvalue *new_param = param; in visit_leave()
|
D | opt_algebraic.cpp | 53 ir_rvalue *handle_expression(ir_expression *ir); 54 void handle_rvalue(ir_rvalue **rvalue); 63 ir_rvalue *swizzle_if_required(ir_expression *expr, 64 ir_rvalue *operand); 98 ir_rvalue *temp = ir2->operands[op2]; in reassociate_operands() 165 ir_rvalue * 167 ir_rvalue *operand) in swizzle_if_required() 176 ir_rvalue * 391 ir_algebraic_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
|
D | loop_controls.cpp | 44 ir_rvalue * 85 calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment, in calculate_iterations() 105 ir_rvalue *cast = in calculate_iterations() 216 ir_rvalue *counter = cond->operands[0]->as_dereference_variable(); in visit_leave() 238 ir_rvalue *init = find_initial_value(ir, var); in visit_leave()
|
D | ast_to_hir.cpp | 103 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, in apply_implicit_conversion() 154 arithmetic_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in arithmetic_result_type() 470 relational_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in relational_result_type() 597 ir_rvalue * 599 const glsl_type *lhs_type, ir_rvalue *rhs) in validate_assignment() 636 ir_rvalue * 638 ir_rvalue *lhs, ir_rvalue *rhs, in do_assignment() 657 ir_rvalue *new_rhs = validate_assignment(state, lhs->type, rhs); in do_assignment() 715 static ir_rvalue * 716 get_lvalue_copy(exec_list *instructions, ir_rvalue *lvalue) in get_lvalue_copy() [all …]
|
D | ir_expression_flattening.cpp | 54 void handle_rvalue(ir_rvalue **rvalue); 72 ir_expression_flattening_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 76 ir_rvalue *ir = *rvalue; in handle_rvalue()
|
D | loop_analysis.cpp | 30 static bool all_expression_operands_are_loop_constant(ir_rvalue *, 33 static ir_rvalue *get_basic_induction_increment(ir_assignment *, hash_table *); 264 ir_rvalue *const rhs = lv->first_assignment->rhs; in visit_leave() 307 ir_rvalue *const inc = in visit_leave() 401 all_expression_operands_are_loop_constant(ir_rvalue *ir, hash_table *variables) in all_expression_operands_are_loop_constant() 411 ir_rvalue * 435 ir_rvalue *inc = (op0 == var) ? rhs->operands[1] : rhs->operands[0]; in get_basic_induction_increment()
|
D | hir_field_selection.cpp | 30 ir_rvalue * 36 ir_rvalue *result = NULL; in _mesa_ast_field_selection_to_hir() 37 ir_rvalue *op; in _mesa_ast_field_selection_to_hir()
|
D | ir_rvalue_visitor.cpp | 118 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_leave() 119 ir_rvalue *new_param = param; in visit_leave()
|
D | opt_tree_grafting.cpp | 79 bool do_graft(ir_rvalue **rvalue); 115 ir_tree_grafting_visitor::do_graft(ir_rvalue **rvalue) in do_graft() 195 ir_rvalue *ir = (ir_rvalue *)iter.get(); in visit_enter() 196 ir_rvalue *new_ir = ir; in visit_enter()
|
D | opt_noop_swizzle.cpp | 45 void handle_rvalue(ir_rvalue **rvalue); 50 ir_noop_swizzle_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
|
D | opt_constant_propagation.cpp | 100 void handle_rvalue(ir_rvalue **rvalue); 120 ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue() 253 ir_rvalue *param = (ir_rvalue *)iter.get(); in visit_enter() 255 ir_rvalue *new_param = param; in visit_enter()
|
D | lower_vector.cpp | 41 void handle_rvalue(ir_rvalue **rvalue); 67 ir_rvalue *op = ir->operands[i]; in is_extended_swizzle() 116 lower_vector_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
|
D | ir_reader.cpp | 57 static ir_rvalue *read_rvalue(_mesa_glsl_parse_state *, s_expression *); 494 ir_rvalue *condition = read_rvalue(st, cond_expr); in read_if() 554 ir_rvalue *retval = read_rvalue(st, expr); in read_return() 564 static ir_rvalue * 577 ir_rvalue *rvalue = read_dereference(st, list); in read_rvalue() 612 ir_rvalue *condition = read_rvalue(st, cond_expr); in read_assignment() 656 ir_rvalue *rhs = read_rvalue(st, rhs_expr); in read_assignment() 690 ir_rvalue *param = read_rvalue(st, expr); in read_call() 760 ir_rvalue *arg1 = read_rvalue(st, exp1); in read_expression() 767 ir_rvalue *arg2 = NULL; in read_expression() [all …]
|
D | loop_analysis.h | 171 ir_rvalue *iv_scale; 173 ir_rvalue *increment;
|
D | ir_div_to_mul_rcp.cpp | 68 ir_rvalue *expr; in visit_leave() 82 ir_rvalue *op0, *op1; in visit_leave()
|
D | lower_instructions.cpp | 132 ir_rvalue *expr; in div_to_mul_rcp() 146 ir_rvalue *op0, *op1; in div_to_mul_rcp() 238 ir_rvalue *expr = new(ir) ir_expression(ir_unop_fract, in mod_to_fract()
|