/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 | builtin_int64.h | 21 ir_expression *const r0004 = mul(swizzle_x(r0001), swizzle_y(r0002)); in umul64() 22 ir_expression *const r0005 = mul(swizzle_y(r0001), swizzle_x(r0002)); in umul64() 23 ir_expression *const r0006 = add(r0004, r0005); in umul64() 47 ir_expression *const r0009 = bit_or(swizzle_x(r0007), swizzle_y(r0007)); in sign64() 48 ir_expression *const r000A = nequal(r0009, body.constant(int(0))); in sign64() 49 ir_expression *const r000B = expr(ir_unop_b2i, r000A); in sign64() 81 ir_expression *const r0012 = expr(ir_unop_find_msb, swizzle_y(r000D)); in udivmod64() 85 ir_expression *const r0014 = equal(swizzle_y(r000D), body.constant(0u)); in udivmod64() 86 ir_expression *const r0015 = gequal(swizzle_y(r000C), swizzle_x(r000D)); in udivmod64() 87 ir_expression *const r0016 = logic_and(r0014, r0015); in udivmod64() [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 | lower_ubo_reference.cpp | 68 ir_expression *ubo_load(void *mem_ctx, const struct glsl_type *type, 93 ir_visitor_status visit_enter(class ir_expression *); 94 ir_expression *calculate_ssbo_unsized_array_length(ir_expression *expr); 95 void check_ssbo_unsized_array_length_expression(class ir_expression *); 98 ir_expression *process_ssbo_unsized_array_length(ir_rvalue **, 101 ir_expression *emit_ssbo_get_buffer_size(void *mem_ctx); 392 ir_expression * 399 ir_expression(ir_binop_ubo_load, in ubo_load() 598 lower_ubo_reference_visitor::visit_enter(ir_expression *ir) in visit_enter() 604 ir_expression * [all …]
|
D | ast_function.cpp | 356 ir_expression *const expr = actual->as_expression(); in fix_parameter() 756 ir_expression *result = NULL; in convert_component() 771 result = new(ctx) ir_expression(ir_unop_i2u, src); in convert_component() 774 result = new(ctx) ir_expression(ir_unop_f2u, src); in convert_component() 777 result = new(ctx) ir_expression(ir_unop_i2u, in convert_component() 778 new(ctx) ir_expression(ir_unop_b2i, in convert_component() 782 result = new(ctx) ir_expression(ir_unop_d2u, src); in convert_component() 785 result = new(ctx) ir_expression(ir_unop_u642u, src); in convert_component() 788 result = new(ctx) ir_expression(ir_unop_i642u, src); in convert_component() 791 result = new(ctx) ir_expression(ir_unop_unpack_sampler_2x32, src); in convert_component() [all …]
|
D | loop_analysis.cpp | 98 ir_expression *const sub = in calculate_iterations() 99 new(mem_ctx) ir_expression(ir_binop_sub, from->type, to, from); in calculate_iterations() 101 ir_expression *const div = in calculate_iterations() 102 new(mem_ctx) ir_expression(ir_binop_div, sub->type, sub, increment); in calculate_iterations() 114 new(mem_ctx) ir_expression(op, glsl_type::int_type, iter, NULL); in calculate_iterations() 151 ir_expression *const mul = in calculate_iterations() 152 new(mem_ctx) ir_expression(ir_binop_mul, increment->type, iter, in calculate_iterations() 155 ir_expression *const add = in calculate_iterations() 156 new(mem_ctx) ir_expression(ir_binop_add, mul->type, mul, from); in calculate_iterations() 158 ir_expression *cmp = swap_compare_operands in calculate_iterations() [all …]
|
D | lower_vec_index_to_cond_assign.cpp | 68 virtual ir_visitor_status visit_enter(ir_expression *); 129 ir_expression *const expr = ir->as_expression(); in convert_vector_extract_to_cond_assign() 145 ir_expression *const interpolant = expr->operands[0]->as_expression(); in convert_vector_extract_to_cond_assign() 150 ir_expression *const vec_interpolate = in convert_vector_extract_to_cond_assign() 151 new(base_ir) ir_expression(expr->operation, vec_input->type, in convert_vector_extract_to_cond_assign() 170 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_expression *ir) in visit_enter()
|
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() 261 array_index = new(ctx) ir_expression( in create_indices() 263 new(ctx) ir_expression(ir_binop_add, in create_indices() 271 swizzle_index = new(ctx) ir_expression( in create_indices() 273 new(ctx) ir_expression(ir_binop_add, in create_indices() 388 ir_expression *const expr = in handle_rvalue() 389 new(mem_ctx) ir_expression(ir_binop_vector_extract, in handle_rvalue() 402 ir_expression *const expr = (ir_expression *) ir->lhs; in fix_lhs() 413 ir->rhs = new(mem_ctx) ir_expression(ir_triop_vector_insert, in fix_lhs()
|
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 | 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 | ir_rvalue_visitor.h | 43 ir_visitor_status rvalue_visit(ir_expression *); 62 virtual ir_visitor_status visit_leave(ir_expression *); 79 virtual ir_visitor_status visit_enter(ir_expression *);
|
D | lower_cs_derived.cpp | 191 ir_expression *index_z = in make_gl_LocalInvocationIndex() 194 ir_expression *index_y = in make_gl_LocalInvocationIndex() 196 ir_expression *index_y_plus_z = add(index_y, index_z); in make_gl_LocalInvocationIndex() 198 ir_expression *index_x_plus_y_plus_z = add(index_y_plus_z, index_x); in make_gl_LocalInvocationIndex()
|
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 | 53 virtual ir_visitor_status visit_enter(class ir_expression *); 70 void print_without_declaration(const ir_expression *ir); 118 const ir_expression *expr = (ir_expression *) ir; in is_simple_operand() 194 print_without_declaration((ir_expression *) ir); in print_without_declaration() 482 ir_expression *const rhs_expr = ir->rhs->as_expression(); in visit_enter() 539 ir_builder_print_visitor::print_without_declaration(const ir_expression *ir) in print_without_declaration() 593 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() 270 ir->rhs = new(mem_ctx) ir_expression(ir_triop_vector_insert, in fix_lhs()
|
D | lower_int64.cpp | 61 ir_expression *ir, 123 ir_rvalue *handle_op(ir_expression *ir, const char *function_name, 256 ir_expression *ir, in lower_op_to_function_call() 316 lower_64bit_visitor::handle_op(ir_expression *ir, in handle_op() 352 ir_expression *const ir = (*rvalue)->as_expression(); in handle_rvalue()
|
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() 314 new(mem_ctx) ir_expression(ir_unop_logic_not, in visit_leave()
|
/external/mesa3d/src/compiler/glsl/tests/ |
D | lower_int64_test.cpp | 42 ir_expression *ir, 87 static ir_expression * 90 return new(mem_ctx) ir_expression(ir_unop_neg, in create_expression() 180 ir_expression *unpack = assign2->rhs->as_expression(); in check_instructions() 287 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F() 298 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F() 309 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F() 320 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F() 331 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F() 342 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F() [all …]
|
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()
|