Home
last modified time | relevance | path

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

123

/third_party/mesa3d/src/compiler/glsl/
Dir_builder.h133 ir_expression *expr(ir_expression_operation op, operand a);
134 ir_expression *expr(ir_expression_operation op, operand a, operand b);
135 ir_expression *expr(ir_expression_operation op, operand a, operand b, operand c);
136 ir_expression *add(operand a, operand b);
137 ir_expression *sub(operand a, operand b);
138 ir_expression *mul(operand a, operand b);
139 ir_expression *imul_high(operand a, operand b);
140 ir_expression *div(operand a, operand b);
141 ir_expression *carry(operand a, operand b);
142 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 …]
Dlower_instructions.cpp138 ir_visitor_status visit_leave(ir_expression *);
145 void sub_to_add_neg(ir_expression *);
146 void div_to_mul_rcp(ir_expression *);
147 void int_div_to_mul_rcp(ir_expression *);
148 void mod_to_floor(ir_expression *);
149 void exp_to_exp2(ir_expression *);
150 void pow_to_exp2(ir_expression *);
151 void log_to_log2(ir_expression *);
152 void ldexp_to_arith(ir_expression *);
153 void dldexp_to_arith(ir_expression *);
[all …]
Dopt_algebraic.cpp64 ir_rvalue *handle_expression(ir_expression *ir);
66 bool reassociate_constant(ir_expression *ir1,
69 ir_expression *ir2);
70 void reassociate_operands(ir_expression *ir1,
72 ir_expression *ir2,
74 ir_rvalue *swizzle_if_required(ir_expression *expr,
180 update_type(ir_expression *ir) in update_type()
189 static ir_expression *
190 try_replace_with_dot(ir_expression *expr0, ir_expression *expr1, void *mem_ctx) in try_replace_with_dot()
229 ir_algebraic_visitor::reassociate_operands(ir_expression *ir1, in reassociate_operands()
[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()
130 new(mem_ctx) ir_expression(ir_binop_add, from->type, from, increment); in calculate_iterations()
133 ir_expression *cmp = swap_compare_operands in calculate_iterations()
134 ? new(mem_ctx) ir_expression(op, glsl_type::bool_type, to, first_value) in calculate_iterations()
135 : new(mem_ctx) ir_expression(op, glsl_type::bool_type, first_value, to); in calculate_iterations()
137 cmp = new(mem_ctx) ir_expression(ir_unop_logic_not, cmp); in calculate_iterations()
[all …]
Dlower_ubo_reference.cpp71 ir_expression *ubo_load(void *mem_ctx, const struct glsl_type *type,
96 ir_visitor_status visit_enter(class ir_expression *);
97 ir_expression *calculate_ssbo_unsized_array_length(ir_expression *expr);
98 void check_ssbo_unsized_array_length_expression(class ir_expression *);
101 ir_expression *process_ssbo_unsized_array_length(ir_rvalue **,
104 ir_expression *emit_ssbo_get_buffer_size(void *mem_ctx);
395 ir_expression *
402 ir_expression(ir_binop_ubo_load, in ubo_load()
601 lower_ubo_reference_visitor::visit_enter(ir_expression *ir) in visit_enter()
607 ir_expression *
[all …]
Dast_function.cpp445 ir_expression *const expr = actual->as_expression(); in fix_parameter()
872 ir_expression *result = NULL; in convert_component()
887 result = new(ctx) ir_expression(ir_unop_i2u, src); in convert_component()
890 result = new(ctx) ir_expression(ir_unop_f2u, src); in convert_component()
893 result = new(ctx) ir_expression(ir_unop_i2u, in convert_component()
894 new(ctx) ir_expression(ir_unop_b2i, in convert_component()
898 result = new(ctx) ir_expression(ir_unop_d2u, src); in convert_component()
901 result = new(ctx) ir_expression(ir_unop_u642u, src); in convert_component()
904 result = new(ctx) ir_expression(ir_unop_i642u, src); in convert_component()
907 result = new(ctx) ir_expression(ir_unop_unpack_sampler_2x32, src); in convert_component()
[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_distance.cpp236 old_index = new(ctx) ir_expression(ir_unop_u2i, old_index); in create_indices()
262 array_index = new(ctx) ir_expression( in create_indices()
264 new(ctx) ir_expression(ir_binop_add, in create_indices()
272 swizzle_index = new(ctx) ir_expression( in create_indices()
274 new(ctx) ir_expression(ir_binop_add, in create_indices()
389 ir_expression *const expr = in handle_rvalue()
390 new(mem_ctx) ir_expression(ir_binop_vector_extract, in handle_rvalue()
403 ir_expression *const expr = (ir_expression *) ir->lhs; in fix_lhs()
414 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()
Dlower_cs_derived.cpp192 ir_expression *index_z = in make_gl_LocalInvocationIndex()
195 ir_expression *index_y = in make_gl_LocalInvocationIndex()
197 ir_expression *index_y_plus_z = add(index_y, index_z); in make_gl_LocalInvocationIndex()
199 ir_expression *index_x_plus_y_plus_z = add(index_y_plus_z, index_x); in make_gl_LocalInvocationIndex()
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 *);
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()
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()
Dlower_tess_level.cpp240 ir_expression *const expr = in handle_rvalue()
241 new(mem_ctx) ir_expression(ir_binop_vector_extract, in handle_rvalue()
255 ir_expression *const expr = (ir_expression *) ir->lhs; in fix_lhs()
271 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()
Dir_builder_print_visitor.cpp54 virtual ir_visitor_status visit_enter(class ir_expression *);
73 void print_without_declaration(const ir_expression *ir);
121 const ir_expression *expr = (ir_expression *) ir; in is_simple_operand()
196 print_without_declaration((ir_expression *) ir); in print_without_declaration()
486 ir_expression *const rhs_expr = ir->rhs->as_expression(); in visit_enter()
544 ir_builder_print_visitor::print_without_declaration(const ir_expression *ir) in print_without_declaration()
598 ir_builder_print_visitor::visit_enter(ir_expression *ir) in visit_enter()
Dopt_minmax.cpp80 ir_rvalue *prune_expression(ir_expression *expr, minmax_range baserange);
333 ir_expression *expr = rval->as_expression(); in get_range()
357 ir_minmax_visitor::prune_expression(ir_expression *expr, minmax_range baserange) in prune_expression()
430 ir_expression *op_expr = expr->operands[1 - i]->as_expression(); in prune_expression()
461 ir_expression *op_expr = expr->operands[i]->as_expression(); in prune_expression()
491 swizzle_if_required(ir_expression *expr, ir_rvalue *rval) in swizzle_if_required()
506 ir_expression *expr = (*rvalue)->as_expression(); in handle_rvalue()
Dlower_if_to_cond_assign.cpp199 new(mem_ctx) ir_expression(ir_binop_logic_and, in move_block_to_cond_assign()
208 new(mem_ctx) ir_expression(ir_binop_logic_and, in move_block_to_cond_assign()
318 new(mem_ctx) ir_expression(ir_unop_logic_not, in visit_leave()
Dopt_flip_matrices.cpp59 ir_visitor_status visit_enter(ir_expression *ir);
70 matrix_flipper::visit_enter(ir_expression *ir) in visit_enter()
/third_party/mesa3d/src/compiler/glsl/tests/
Dlower_int64_test.cpp42 ir_expression *ir,
91 static ir_expression *
94 return new(mem_ctx) ir_expression(ir_unop_neg, in create_expression()
184 ir_expression *unpack = assign2->rhs->as_expression(); in check_instructions()
291 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F()
302 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F()
313 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F()
324 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F()
335 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F()
346 ir_expression *const expr = create_expression(mem_ctx, type); in TEST_F()
[all …]
Dopt_add_neg_to_sub_test.cpp97 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F()
130 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F()
163 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F()
196 ir_expression *const expr = assign->rhs->as_expression(); in TEST_F()
200 ir_expression *const neg_b = expr->operands[0]->as_expression(); in TEST_F()

123