/external/mesa3d/src/compiler/glsl/ |
D | ir_builder.h | 130 ir_expression *expr(ir_expression_operation op, operand a); 131 ir_expression *expr(ir_expression_operation op, operand a, operand b); 132 ir_expression *expr(ir_expression_operation op, operand a, operand b, operand c); 133 ir_expression *add(operand a, operand b); 134 ir_expression *sub(operand a, operand b); 135 ir_expression *mul(operand a, operand b); 136 ir_expression *imul_high(operand a, operand b); 137 ir_expression *div(operand a, operand b); 138 ir_expression *carry(operand a, operand b); 139 ir_expression *borrow(operand a, operand b); [all …]
|
D | ir_builder.cpp | 180 ir_expression * 185 return new(mem_ctx) ir_expression(op, a.val); in expr() 188 ir_expression * 193 return new(mem_ctx) ir_expression(op, a.val, b.val); in expr() 196 ir_expression * 201 return new(mem_ctx) ir_expression(op, a.val, b.val, c.val); in expr() 204 ir_expression *add(operand a, operand b) in add() 209 ir_expression *sub(operand a, operand b) in sub() 214 ir_expression *min2(operand a, operand b) in min2() 219 ir_expression *max2(operand a, operand b) in max2() [all …]
|
D | opt_rebalance_tree.cpp | 71 tree_to_vine(ir_expression *root) in tree_to_vine() 78 ir_expression *remainder_temp = remainder->as_expression(); in tree_to_vine() 79 ir_expression *remainder_left = remainder_temp ? in tree_to_vine() 86 ((ir_expression *)remainder)->operands[1] : NULL; in tree_to_vine() 90 ir_expression *tempptr = remainder_left; in tree_to_vine() 91 ((ir_expression *)remainder)->operands[0] = tempptr->operands[1]; in tree_to_vine() 94 ((ir_expression *)vine_tail)->operands[1] = tempptr; in tree_to_vine() 102 compression(ir_expression *root, unsigned count) in compression() 104 ir_expression *scanner = root; in compression() 107 ir_expression *child = (ir_expression *)scanner->operands[1]; in compression() [all …]
|
D | lower_mat_op_to_vec.cpp | 73 ir_expression *expr = ir->as_expression(); in mat_op_to_vec_predicate() 131 ir_expression *expr; in do_mul_mat_mat() 135 expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_mat() 141 ir_expression *mul_expr; in do_mul_mat_mat() 143 mul_expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_mat() 146 expr = new(mem_ctx) ir_expression(ir_binop_add, in do_mul_mat_mat() 163 ir_expression *expr; in do_mul_mat_vec() 166 expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_vec() 172 ir_expression *mul_expr; in do_mul_mat_vec() 174 mul_expr = new(mem_ctx) ir_expression(ir_binop_mul, in do_mul_mat_vec() [all …]
|
D | opt_algebraic.cpp | 63 ir_rvalue *handle_expression(ir_expression *ir); 65 bool reassociate_constant(ir_expression *ir1, 68 ir_expression *ir2); 69 void reassociate_operands(ir_expression *ir1, 71 ir_expression *ir2, 73 ir_rvalue *swizzle_if_required(ir_expression *expr, 179 update_type(ir_expression *ir) in update_type() 188 static ir_expression * 189 try_replace_with_dot(ir_expression *expr0, ir_expression *expr1, void *mem_ctx) in try_replace_with_dot() 228 ir_algebraic_visitor::reassociate_operands(ir_expression *ir1, in reassociate_operands() [all …]
|
D | lower_instructions.cpp | 136 ir_visitor_status visit_leave(ir_expression *); 143 void sub_to_add_neg(ir_expression *); 144 void div_to_mul_rcp(ir_expression *); 145 void int_div_to_mul_rcp(ir_expression *); 146 void mod_to_floor(ir_expression *); 147 void exp_to_exp2(ir_expression *); 148 void pow_to_exp2(ir_expression *); 149 void log_to_log2(ir_expression *); 150 void ldexp_to_arith(ir_expression *); 151 void dldexp_to_arith(ir_expression *); [all …]
|
D | loop_controls.cpp | 93 ir_expression *const sub = in calculate_iterations() 94 new(mem_ctx) ir_expression(ir_binop_sub, from->type, to, from); in calculate_iterations() 96 ir_expression *const div = in calculate_iterations() 97 new(mem_ctx) ir_expression(ir_binop_div, sub->type, sub, increment); in calculate_iterations() 108 new(mem_ctx) ir_expression(op, glsl_type::int_type, iter, NULL); in calculate_iterations() 145 ir_expression *const mul = in calculate_iterations() 146 new(mem_ctx) ir_expression(ir_binop_mul, increment->type, iter, in calculate_iterations() 149 ir_expression *const add = in calculate_iterations() 150 new(mem_ctx) ir_expression(ir_binop_add, mul->type, mul, from); in calculate_iterations() 152 ir_expression *const cmp = in calculate_iterations() [all …]
|
D | lower_ubo_reference.cpp | 66 ir_expression *ubo_load(void *mem_ctx, const struct glsl_type *type, 91 ir_visitor_status visit_enter(class ir_expression *); 92 ir_expression *calculate_ssbo_unsized_array_length(ir_expression *expr); 93 void check_ssbo_unsized_array_length_expression(class ir_expression *); 96 ir_expression *process_ssbo_unsized_array_length(ir_rvalue **, 99 ir_expression *emit_ssbo_get_buffer_size(void *mem_ctx); 386 ir_expression * 393 ir_expression(ir_binop_ubo_load, in ubo_load() 589 lower_ubo_reference_visitor::visit_enter(ir_expression *ir) in visit_enter() 595 ir_expression * [all …]
|
D | lower_texture_projection.cpp | 68 ir_expression *expr = new(mem_ctx) ir_expression(ir_unop_rcp, in visit_leave() 76 ir->coordinate = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave() 83 ir->shadow_comparator = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave()
|
D | lower_distance.cpp | 235 old_index = new(ctx) ir_expression(ir_unop_u2i, old_index); in create_indices() 260 array_index = new(ctx) ir_expression( in create_indices() 262 new(ctx) ir_expression(ir_binop_add, in create_indices() 270 swizzle_index = new(ctx) ir_expression( in create_indices() 272 new(ctx) ir_expression(ir_binop_add, in create_indices() 387 ir_expression *const expr = in handle_rvalue() 388 new(mem_ctx) ir_expression(ir_binop_vector_extract, in handle_rvalue() 401 ir_expression *const expr = (ir_expression *) ir->lhs; in fix_lhs() 412 ir->rhs = new(mem_ctx) ir_expression(ir_triop_vector_insert, in fix_lhs()
|
D | ast_function.cpp | 341 ir_expression *const expr = actual->as_expression(); in fix_parameter() 735 ir_expression *result = NULL; in convert_component() 750 result = new(ctx) ir_expression(ir_unop_i2u, src); in convert_component() 753 result = new(ctx) ir_expression(ir_unop_f2u, src); in convert_component() 756 result = new(ctx) ir_expression(ir_unop_i2u, in convert_component() 757 new(ctx) ir_expression(ir_unop_b2i, in convert_component() 761 result = new(ctx) ir_expression(ir_unop_d2u, src); in convert_component() 768 result = new(ctx) ir_expression(ir_unop_u2i, src); in convert_component() 771 result = new(ctx) ir_expression(ir_unop_f2i, src); in convert_component() 774 result = new(ctx) ir_expression(ir_unop_b2i, src); in convert_component() [all …]
|
D | lower_vector.cpp | 62 is_extended_swizzle(ir_expression *ir) in is_extended_swizzle() 97 ir_expression *const ex = (ir_expression *) op; in is_extended_swizzle() 125 ir_expression *expr = (*rvalue)->as_expression(); in handle_rvalue()
|
D | ir_rvalue_visitor.h | 40 ir_visitor_status rvalue_visit(ir_expression *); 59 virtual ir_visitor_status visit_leave(ir_expression *); 76 virtual ir_visitor_status visit_enter(ir_expression *);
|
D | opt_minmax.cpp | 79 ir_rvalue *prune_expression(ir_expression *expr, minmax_range baserange); 288 ir_expression *expr = rval->as_expression(); in get_range() 312 ir_minmax_visitor::prune_expression(ir_expression *expr, minmax_range baserange) in prune_expression() 385 ir_expression *op_expr = expr->operands[1 - i]->as_expression(); in prune_expression() 416 ir_expression *op_expr = expr->operands[i]->as_expression(); in prune_expression() 446 swizzle_if_required(ir_expression *expr, ir_rvalue *rval) in swizzle_if_required() 461 ir_expression *expr = (*rvalue)->as_expression(); in handle_rvalue()
|
D | opt_vectorize.cpp | 86 virtual ir_visitor_status visit_enter(ir_expression *); 148 ir_expression *expr = (ir_expression *)ir; in rewrite_swizzle() 313 ir_vectorize_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
D | ir_builder_print_visitor.cpp | 54 virtual ir_visitor_status visit_enter(class ir_expression *); 71 void print_without_declaration(const ir_expression *ir); 119 const ir_expression *expr = (ir_expression *) ir; in is_simple_operand() 195 print_without_declaration((ir_expression *) ir); in print_without_declaration() 472 ir_expression *const rhs_expr = ir->rhs->as_expression(); in visit_enter() 529 ir_builder_print_visitor::print_without_declaration(const ir_expression *ir) in print_without_declaration() 585 ir_builder_print_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
D | opt_add_neg_to_sub.h | 37 ir_visitor_status visit_leave(ir_expression *ir) in visit_leave() 43 ir_expression *const op = ir->operands[i]->as_expression(); in visit_leave()
|
D | lower_tess_level.cpp | 239 ir_expression *const expr = in handle_rvalue() 240 new(mem_ctx) ir_expression(ir_binop_vector_extract, in handle_rvalue() 254 ir_expression *const expr = (ir_expression *) ir->lhs; in fix_lhs() 269 ir->rhs = new(mem_ctx) ir_expression(ir_triop_vector_insert, in fix_lhs()
|
D | lower_vec_index_to_cond_assign.cpp | 64 virtual ir_visitor_status visit_enter(ir_expression *); 152 ir_expression *const expr = ir->as_expression(); in convert_vector_extract_to_cond_assign() 164 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
D | lower_if_to_cond_assign.cpp | 195 new(mem_ctx) ir_expression(ir_binop_logic_and, in move_block_to_cond_assign() 204 new(mem_ctx) ir_expression(ir_binop_logic_and, in move_block_to_cond_assign() 315 new(mem_ctx) ir_expression(ir_unop_logic_not, in visit_leave()
|
D | lower_vector_derefs.cpp | 67 ir->rhs = new(mem_ctx) ir_expression(ir_triop_vector_insert, in visit_enter() 91 *rv = new(mem_ctx) ir_expression(ir_binop_vector_extract, in handle_rvalue()
|
D | ir.cpp | 193 ir_expression::ir_expression(int op, const struct glsl_type *type, in ir_expression() function in ir_expression 212 ir_expression::ir_expression(int op, ir_rvalue *op0) in ir_expression() function in ir_expression 357 ir_expression::ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1) in ir_expression() function in ir_expression 450 ir_expression::ir_expression(int op, ir_rvalue *op0, ir_rvalue *op1, in ir_expression() function in ir_expression 481 ir_expression::get_num_operands(ir_expression_operation op) in get_num_operands() 520 ir_expression::get_operator(const char *str) in get_operator() 530 ir_expression::variable_referenced() const in variable_referenced() 1793 ir_expression *expr = ir->as_expression(); in try_min_one() 1810 ir_expression *expr = ir->as_expression(); in try_max_zero() 1827 ir_expression *expr = this->as_expression(); in as_rvalue_to_saturate()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_cubemap_normalize.cpp | 75 swiz0 = new(mem_ctx) ir_expression(ir_unop_abs, swiz0->type, swiz0, NULL); in visit_leave() 76 swiz1 = new(mem_ctx) ir_expression(ir_unop_abs, swiz1->type, swiz1, NULL); in visit_leave() 77 swiz2 = new(mem_ctx) ir_expression(ir_unop_abs, swiz2->type, swiz2, NULL); in visit_leave() 79 ir_expression *expr; in visit_leave() 80 expr = new(mem_ctx) ir_expression(ir_binop_max, in visit_leave() 84 expr = new(mem_ctx) ir_expression(ir_binop_max, in visit_leave() 88 expr = new(mem_ctx) ir_expression(ir_unop_rcp, in visit_leave() 96 new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave()
|
D | brw_fs_channel_expressions.cpp | 68 ir_expression *expr = ir->as_expression(); in channel_expressions_predicate() 151 ir_expression *expr = ir->rhs->as_expression(); in visit_leave() 270 assign(ir, i, new(mem_ctx) ir_expression(expr->operation, in visit_leave() 307 assign(ir, i, new(mem_ctx) ir_expression(expr->operation, in visit_leave() 315 ir_expression *last = NULL; in visit_leave() 319 ir_expression *temp; in visit_leave() 321 temp = new(mem_ctx) ir_expression(ir_binop_mul, in visit_leave() 326 last = new(mem_ctx) ir_expression(ir_binop_add, in visit_leave() 340 ir_expression *last = NULL; in visit_leave() 344 ir_expression *temp; in visit_leave() [all …]
|
/external/mesa3d/src/compiler/glsl/tests/ |
D | opt_add_neg_to_sub_test.cpp | 93 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F() 126 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F() 159 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F() 192 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F() 196 ir_expression *const neg_b = expr->operands[0]->as_expression(); in TEST_F()
|