Home
last modified time | relevance | path

Searched refs:ir_expression (Results 1 – 25 of 60) sorted by relevance

123

/external/mesa3d/src/compiler/glsl/
Dir_builder.h130 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 …]
Dir_builder.cpp180 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 …]
Dbuiltin_int64.h21 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 …]
Dopt_rebalance_tree.cpp71 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 …]
Dlower_mat_op_to_vec.cpp73 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 …]
Dopt_algebraic.cpp63 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 …]
Dlower_instructions.cpp136 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 …]
Dlower_ubo_reference.cpp68 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 …]
Dast_function.cpp356 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 …]
Dloop_analysis.cpp98 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 …]
Dlower_vec_index_to_cond_assign.cpp68 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()
Dlower_texture_projection.cpp68 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()
Dlower_distance.cpp235 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()
Dlower_vector.cpp62 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()
Dopt_minmax.cpp79 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()
Dir_rvalue_visitor.h43 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 *);
Dlower_cs_derived.cpp191 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()
Dopt_vectorize.cpp86 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()
Dir_builder_print_visitor.cpp53 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()
Dopt_add_neg_to_sub.h37 ir_visitor_status visit_leave(ir_expression *ir) in visit_leave()
43 ir_expression *const op = ir->operands[i]->as_expression(); in visit_leave()
Dlower_tess_level.cpp239 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()
Dlower_int64.cpp61 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()
Dlower_if_to_cond_assign.cpp195 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/
Dlower_int64_test.cpp42 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 …]
Dopt_add_neg_to_sub_test.cpp93 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()

123