Home
last modified time | relevance | path

Searched refs:ir_rvalue (Results 1 – 25 of 69) sorted by relevance

123

/third_party/mesa3d/src/compiler/glsl/
Dlower_packing_builtins.cpp56 void handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
73 ir_rvalue *op0 = expr->operands[0]; in handle_rvalue()
207 ir_rvalue*
208 pack_uvec2_to_uint(ir_rvalue *uvec2_rval) in pack_uvec2_to_uint()
236 ir_rvalue*
237 pack_uvec4_to_uint(ir_rvalue *uvec4_rval) in pack_uvec4_to_uint()
273 ir_rvalue*
274 unpack_uint_to_uvec2(ir_rvalue *uint_rval) in unpack_uint_to_uvec2()
302 ir_rvalue *
303 unpack_uint_to_ivec2(ir_rvalue *uint_rval) in unpack_uint_to_ivec2()
[all …]
Dast_function.cpp33 static ir_rvalue *
34 convert_component(ir_rvalue *src, const glsl_type *desired_type);
51 ir_rvalue *result = ast->hir(instructions, state); in process_parameters()
55 actual_parameters->push_tail(ir_rvalue::error_value(mem_ctx)); in process_parameters()
236 const ir_rvalue *const actual = (ir_rvalue *) actual_ir_node; in verify_parameter_modes()
253 const ir_rvalue *val = actual; in verify_parameter_modes()
370 const ir_rvalue *const actual = in verify_parameter_modes()
371 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes()
383 const ir_rvalue *const actual = in verify_parameter_modes()
384 (ir_rvalue *) actual_ir_parameters.get_head_raw(); in verify_parameter_modes()
[all …]
Dir.h217 class ir_rvalue : public ir_instruction {
221 virtual ir_rvalue *clone(void *mem_ctx, struct hash_table *) const;
233 ir_rvalue *as_rvalue_to_saturate();
312 static ir_rvalue *error_value(void *mem_ctx);
315 ir_rvalue(enum ir_node_type t);
1415 ir_if(ir_rvalue *condition) in ir_if()
1429 ir_rvalue *condition;
1460 ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs);
1469 ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, unsigned write_mask);
1500 void set_lhs(ir_rvalue *lhs);
[all …]
Dlower_blend_equation_advanced.cpp39 static ir_rvalue *
46 static ir_rvalue *
53 static ir_rvalue *
61 ir_rvalue *rule_1 = mul(imm3(2), mul(src, dst)); in blend_overlay()
62 ir_rvalue *rule_2 = in blend_overlay()
67 static ir_rvalue *
74 static ir_rvalue *
81 static ir_rvalue *
96 static ir_rvalue *
111 static ir_rvalue *
[all …]
Dast.h63 virtual ir_rvalue *hir(exec_list *instructions,
240 virtual ir_rvalue *hir(exec_list *instructions,
248 ir_rvalue *do_hir(exec_list *instructions,
327 virtual ir_rvalue *hir(exec_list *instructions,
340 ir_rvalue *
429 virtual ir_rvalue *hir(exec_list *instructions,
442 virtual ir_rvalue *hir(exec_list *instructions,
884 virtual ir_rvalue *hir(exec_list *instructions,
928 ir_rvalue *hir(exec_list *, struct _mesa_glsl_parse_state *);
964 virtual ir_rvalue *hir(exec_list *instructions,
[all …]
Dlower_distance.cpp88 void create_indices(ir_rvalue*, ir_rvalue *&, ir_rvalue *&);
89 bool is_distance_vec8(ir_rvalue *ir);
90 ir_rvalue *lower_distance_vec8(ir_rvalue *ir);
95 virtual void handle_rvalue(ir_rvalue **rvalue);
225 lower_distance_visitor::create_indices(ir_rvalue *old_index, in create_indices()
226 ir_rvalue *&array_index, in create_indices()
227 ir_rvalue *&swizzle_index) in create_indices()
291 lower_distance_visitor::is_distance_vec8(ir_rvalue *ir) in is_distance_vec8()
330 ir_rvalue *
331 lower_distance_visitor::lower_distance_vec8(ir_rvalue *ir) in lower_distance_vec8()
[all …]
Dlower_tess_level.cpp66 bool is_tess_level_array(ir_rvalue *ir);
67 ir_rvalue *lower_tess_level_array(ir_rvalue *ir);
72 virtual void handle_rvalue(ir_rvalue **rvalue);
165 lower_tess_level_visitor::is_tess_level_array(ir_rvalue *ir) in is_tess_level_array()
193 ir_rvalue *
194 lower_tess_level_visitor::lower_tess_level_array(ir_rvalue *ir) in lower_tess_level_array()
221 lower_tess_level_visitor::handle_rvalue(ir_rvalue **rv) in handle_rvalue()
234 ir_rvalue *lowered_vec4 = in handle_rvalue()
322 this->handle_rvalue((ir_rvalue **) &new_rhs); in visit_leave()
334 this->handle_rvalue((ir_rvalue **) &assign->lhs); in visit_leave()
[all …]
Dir.cpp31 ir_rvalue::ir_rvalue(enum ir_node_type t) in ir_rvalue() function in ir_rvalue
37 bool ir_rvalue::is_zero() const in is_zero()
42 bool ir_rvalue::is_one() const in is_one()
47 bool ir_rvalue::is_negative_one() const in is_negative_one()
72 ir_assignment::set_lhs(ir_rvalue *lhs) in set_lhs()
152 ir_assignment::ir_assignment(ir_dereference *lhs, ir_rvalue *rhs, in ir_assignment()
164 ir_assignment::ir_assignment(ir_rvalue *lhs, ir_rvalue *rhs) in ir_assignment()
187 ir_rvalue *op0, ir_rvalue *op1, in ir_expression()
188 ir_rvalue *op2, ir_rvalue *op3) in ir_expression()
189 : ir_rvalue(ir_type_expression) in ir_expression()
[all …]
Dlower_vec_index_to_cond_assign.cpp62 ir_rvalue *convert_vector_extract_to_cond_assign(ir_rvalue *ir);
76 ir_rvalue *
77 ir_vec_index_to_cond_assign_visitor::convert_vector_extract_to_cond_assign(ir_rvalue *ir) in convert_vector_extract_to_cond_assign()
99 ir_rvalue *vec_input = interpolant->operands[0]; in convert_vector_extract_to_cond_assign()
145 foreach_in_list_safe(ir_rvalue, param, &ir->actual_parameters) { in visit_enter()
146 ir_rvalue *new_param = convert_vector_extract_to_cond_assign(param); in visit_enter()
Dopt_function_inlining.cpp91 ir_rvalue *lhs = orig_deref->clone(ctx, NULL); in replace_return_with_assignment()
135 should_replace_variable(ir_variable *sig_param, ir_rvalue *param) { in should_replace_variable()
167 ir_rvalue *param = (ir_rvalue *) actual_node; in generate_inline()
250 ir_rvalue *const param = (ir_rvalue *) actual_node; in generate_inline()
269 ir_rvalue *const param = (ir_rvalue *) actual_node; in generate_inline()
366 void replace_rvalue(ir_rvalue **rvalue);
382 ir_variable_replacement_visitor::replace_rvalue(ir_rvalue **rvalue) in replace_rvalue()
447 foreach_in_list_safe(ir_rvalue, param, &ir->actual_parameters) { in visit_leave()
448 ir_rvalue *new_param = param; in visit_leave()
Dopt_constant_folding.cpp57 virtual void handle_rvalue(ir_rvalue **rvalue);
65 ir_constant_fold(ir_rvalue **rvalue) in ir_constant_fold()
113 ir_constant_folding_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
161 ir_rvalue *param_rval = (ir_rvalue *) actual_node; in visit_enter()
166 ir_rvalue *new_param = param_rval; in visit_enter()
Dlower_int64.cpp54 void expand_source(ir_factory &, ir_rvalue *val, ir_variable **expanded_src);
60 ir_rvalue *lower_op_to_function_call(ir_instruction *base_ir,
94 void handle_rvalue(ir_rvalue **rvalue);
123 ir_rvalue *handle_op(ir_expression *ir, const char *function_name,
200 ir_rvalue *val, in expand_source()
254 ir_rvalue *
296 ir_rvalue *const rv = compact_destination(body, ir->type, dst); in lower_op_to_function_call()
315 ir_rvalue *
347 lower_64bit_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
Dlower_vec_index_to_swizzle.cpp47 ir_rvalue *convert_vector_extract_to_swizzle(ir_rvalue *val);
49 virtual void handle_rvalue(ir_rvalue **);
57 ir_vec_index_to_swizzle_visitor::handle_rvalue(ir_rvalue **rv) in handle_rvalue()
Dhir_field_selection.cpp29 ir_rvalue *
35 ir_rvalue *result = NULL; in _mesa_ast_field_selection_to_hir()
36 ir_rvalue *op; in _mesa_ast_field_selection_to_hir()
79 return result ? result : ir_rvalue::error_value(ctx); in _mesa_ast_field_selection_to_hir()
Dopt_constant_propagation.cpp104 void constant_folding(ir_rvalue **rvalue);
105 void constant_propagation(ir_rvalue **rvalue);
109 void handle_rvalue(ir_rvalue **rvalue);
129 ir_constant_propagation_visitor::constant_folding(ir_rvalue **rvalue) in constant_folding()
149 ir_constant_propagation_visitor::constant_propagation(ir_rvalue **rvalue) { in constant_propagation()
249 ir_constant_propagation_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
327 ir_rvalue *param = (ir_rvalue *) actual_node; in visit_enter()
330 ir_rvalue *new_param = param; in visit_enter()
Dopt_rebalance_tree.cpp74 ir_rvalue *vine_tail = root; in tree_to_vine()
75 ir_rvalue *remainder = root->operands[1]; in tree_to_vine()
136 void handle_rvalue(ir_rvalue **rvalue);
259 static ir_rvalue *
300 ir_rebalance_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
309 ir_rvalue *new_rvalue = handle_expression(expr); in handle_rvalue()
Dlower_named_interface_blocks.cpp82 static ir_rvalue *
85 ir_rvalue *deref_var) in process_array_ir()
120 virtual void handle_rvalue(ir_rvalue **rvalue);
234 ir_rvalue *lhs_rec_tmp = lhs_rec; in visit_leave()
256 const ir_rvalue *val = ir->operands[0]; in visit_leave()
266 flatten_named_interface_blocks_declarations::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
310 (ir_rvalue *)deref_var); in handle_rvalue()
Dopt_algebraic.cpp64 ir_rvalue *handle_expression(ir_expression *ir);
65 void handle_rvalue(ir_rvalue **rvalue);
74 ir_rvalue *swizzle_if_required(ir_expression *expr,
75 ir_rvalue *operand);
234 ir_rvalue *temp = ir2->operands[op2]; in reassociate_operands()
303 ir_rvalue *
305 ir_rvalue *operand) in swizzle_if_required()
314 ir_rvalue *
514 ir_rvalue *other = ir->operands[(i + 1) % 2]; in handle_expression()
573 ir_rvalue *x_operand = ir->operands[1 - mul_pos]; in handle_expression()
[all …]
Dlower_precision.cpp47 virtual void handle_rvalue(ir_rvalue **rvalue);
139 virtual void handle_rvalue(ir_rvalue **rvalue);
244 ir_rvalue *rv = entry.instr->as_rvalue(); in pop_stack_entry()
431 ir_rvalue *param = (ir_rvalue*)ir->actual_parameters.get_head(); in handle_call()
468 ir_rvalue *param = (ir_rvalue*)ir->actual_parameters.get_head(); in handle_call()
551 foreach_in_list(ir_rvalue, param, &ir->actual_parameters) { in handle_call()
698 static ir_rvalue *
699 convert_precision(bool up, ir_rvalue *ir) in convert_precision()
741 lower_precision_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
743 ir_rvalue *ir = *rvalue; in handle_rvalue()
[all …]
Dast_to_hir.cpp309 apply_implicit_conversion(const glsl_type *to, ir_rvalue * &from, in apply_implicit_conversion()
347 arithmetic_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in arithmetic_result_type()
518 bit_logic_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in bit_logic_result_type()
606 modulus_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in modulus_result_type()
674 relational_result_type(ir_rvalue * &value_a, ir_rvalue * &value_b, in relational_result_type()
790 static ir_rvalue *
791 find_innermost_array_index(ir_rvalue *rv) in find_innermost_array_index()
828 static ir_rvalue *
830 YYLTYPE loc, ir_rvalue *lhs, in validate_assignment()
831 ir_rvalue *rhs, bool is_initializer) in validate_assignment()
[all …]
Dast_array_index.cpp49 update_max_array_access(ir_rvalue *ir, int idx, YYLTYPE *loc, in update_max_array_access()
117 ir_rvalue *array) in get_implicit_array_size()
142 ir_rvalue *
145 ir_rvalue *array, ir_rvalue *idx, in _mesa_ast_array_index_to_hir()
359 ir_rvalue *result = new(mem_ctx) ir_dereference_array(array, idx); in _mesa_ast_array_index_to_hir()
Dir_expression_flattening.cpp50 void handle_rvalue(ir_rvalue **rvalue);
66 ir_expression_flattening_visitor::handle_rvalue(ir_rvalue **rvalue) in handle_rvalue()
70 ir_rvalue *ir = *rvalue; in handle_rvalue()
Dir_function.cpp65 const ir_rvalue *const actual = (ir_rvalue *) node_b; in parameter_lists_match()
137 const ir_rvalue *actual) in get_parameter_match_type()
239 (const ir_rvalue *)node_p); in is_best_inexact_overload()
242 (const ir_rvalue *)node_p); in is_best_inexact_overload()
Dlower_vector_derefs.cpp45 virtual void handle_rvalue(ir_rvalue **rv);
76 ir_rvalue *const new_lhs = deref->array; in visit_enter()
109 ir_rvalue *const lhs_clone = new_lhs->clone(factory.mem_ctx, NULL); in visit_enter()
169 vector_deref_visitor::handle_rvalue(ir_rvalue **rv) in handle_rvalue()
/third_party/mesa3d/src/mesa/main/
Dff_fragment_shader.cpp347 ir_rvalue *src_previous; /**< Reg containing color from previous
352 static ir_rvalue *
365 static ir_rvalue *
377 static ir_rvalue *
431 static ir_rvalue *
437 ir_rvalue *src; in emit_combine_source()
449 ir_rvalue *const scalar = src->type->is_scalar() ? src : swizzle_w(src); in emit_combine_source()
503 static ir_rvalue *
504 smear(ir_rvalue *val) in smear()
512 static ir_rvalue *
[all …]

123