Home
last modified time | relevance | path

Searched refs:ir_constant (Results 1 – 25 of 57) sorted by relevance

123

/third_party/mesa3d/src/compiler/glsl/
Dlower_instructions.cpp121 static ir_constant *_imm_fp(void *mem_ctx,
248 new(ir) ir_constant(23, vec_elem)))); in ldexp_to_arith()
264 new(ir) ir_constant(255, vec_elem)))); in ldexp_to_arith()
269 new(ir) ir_constant(0x807fffffu, vec_elem)))); in ldexp_to_arith()
283 ir_constant::zero(ir, ivec)))); in ldexp_to_arith()
286 ir_constant::zero(ir, ivec), in ldexp_to_arith()
293 new(ir) ir_constant(255, vec_elem))))); in ldexp_to_arith()
297 new(ir) ir_constant(0x80000000u, vec_elem)), in ldexp_to_arith()
308 new(ir) ir_constant(23u, vec_elem), in ldexp_to_arith()
309 new(ir) ir_constant(8u, vec_elem)))); in ldexp_to_arith()
[all …]
Dir_constant_expression.cpp45 dot_f(ir_constant *op0, ir_constant *op1) in dot_f()
57 dot_d(ir_constant *op0, ir_constant *op1) in dot_d()
479 ir_constant *&store, int &offset) in constant_referenced()
492 ir_constant *const index_c = in constant_referenced()
503 ir_constant *substore; in constant_referenced()
536 ir_constant *substore; in constant_referenced()
556 store = (ir_constant *) entry->data; in constant_referenced()
569 ir_constant *
688 ir_constant *
698 ir_constant *op[ARRAY_SIZE(this->operands)] = { NULL, }; in constant_expression_value()
[all …]
Dopt_minmax.cpp58 minmax_range(ir_constant *low = NULL, ir_constant *high = NULL) in minmax_range()
69 ir_constant *low;
70 ir_constant *high;
94 compare_components(ir_constant *a, ir_constant *b) in compare_components()
195 static ir_constant *
196 combine_constant(bool ismin, ir_constant *a, ir_constant *b) in combine_constant()
199 ir_constant *c = a->clone(mem_ctx, NULL); in combine_constant()
246 static ir_constant *
247 smaller_constant(ir_constant *a, ir_constant *b) in smaller_constant()
261 static ir_constant *
[all …]
Dir.cpp697 ir_constant::ir_constant() in ir_constant() function in ir_constant
703 ir_constant::ir_constant(const struct glsl_type *type, in ir_constant() function in ir_constant
716 ir_constant::ir_constant(float16_t f16, unsigned vector_elements) in ir_constant() function in ir_constant
730 ir_constant::ir_constant(float f, unsigned vector_elements) in ir_constant() function in ir_constant
744 ir_constant::ir_constant(double d, unsigned vector_elements) in ir_constant() function in ir_constant
758 ir_constant::ir_constant(int16_t i16, unsigned vector_elements) in ir_constant() function in ir_constant
772 ir_constant::ir_constant(uint16_t u16, unsigned vector_elements) in ir_constant() function in ir_constant
786 ir_constant::ir_constant(unsigned int u, unsigned vector_elements) in ir_constant() function in ir_constant
800 ir_constant::ir_constant(int integer, unsigned vector_elements) in ir_constant() function in ir_constant
814 ir_constant::ir_constant(uint64_t u64, unsigned vector_elements) in ir_constant() function in ir_constant
[all …]
Dir.h230 virtual ir_constant *constant_expression_value(void *mem_ctx,
996 ir_constant *constant_value;
1006 ir_constant *constant_initializer;
1205 ir_constant *constant_expression_value(void *mem_ctx,
1320 ir_constant **result);
1473 virtual ir_constant *constant_expression_value(void *mem_ctx,
1574 virtual ir_constant *constant_expression_value(void *mem_ctx,
1656 virtual ir_constant *constant_expression_value(void *mem_ctx,
1903 virtual ir_constant *constant_expression_value(void *mem_ctx,
2007 virtual ir_constant *constant_expression_value(void *mem_ctx,
[all …]
Dopt_algebraic.cpp68 ir_constant *constant,
104 is_vec_zero(ir_constant *ir) in is_vec_zero()
110 is_vec_one(ir_constant *ir) in is_vec_one()
116 is_vec_two(ir_constant *ir) in is_vec_two()
122 is_vec_four(ir_constant *ir) in is_vec_four()
128 is_vec_negative_one(ir_constant *ir) in is_vec_negative_one()
134 is_valid_vec_const(ir_constant *ir) in is_valid_vec_const()
146 is_less_than_one(ir_constant *ir) in is_less_than_one()
163 is_greater_than_zero(ir_constant *ir) in is_greater_than_zero()
222 return dot(x->val, new(mem_ctx) ir_constant(1.0f, 4)); in try_replace_with_dot()
[all …]
Dir_builder.h98 ir_constant*
101 return new(mem_ctx) ir_constant(f); in constant()
104 ir_constant*
107 return new(mem_ctx) ir_constant(i); in constant()
110 ir_constant*
113 return new(mem_ctx) ir_constant(u); in constant()
116 ir_constant*
119 return new(mem_ctx) ir_constant(b); in constant()
Dast_function.cpp60 ir_constant *const constant = in process_parameters()
636 ir_constant *value = sig->constant_expression_value(ctx, in generate_call()
1077 ir_constant *const constant = result->constant_expression_value(ctx); in convert_component()
1150 ir_constant *constant = src->as_constant(); in dereference_component()
1152 return new(ctx) ir_constant(constant, component); in dereference_component()
1166 ir_constant *const col_index = new(ctx) ir_constant(c); in dereference_component()
1248 return new(ctx) ir_constant(constructor_type, &actual_parameters); in process_vec_mat_constructor()
1261 new(ctx) ir_dereference_array(var, new(ctx) ir_constant(i)); in process_vec_mat_constructor()
1386 return new(ctx) ir_constant(constructor_type, &actual_parameters); in process_array_constructor()
1395 new(ctx) ir_constant(i)); in process_array_constructor()
[all …]
Dlower_distance.cpp239 ir_constant *old_index_constant = in create_indices()
247 array_index = new(ctx) ir_constant(const_val / 4); in create_indices()
248 swizzle_index = new(ctx) ir_constant(const_val % 4); in create_indices()
266 new(ctx) ir_constant(offset)), in create_indices()
267 new(ctx) ir_constant(2)); in create_indices()
276 new(ctx) ir_constant(offset)), in create_indices()
277 new(ctx) ir_constant(3)); in create_indices()
460 ir->lhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave()
462 ir->rhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave()
Dopt_constant_folding.cpp103 ir_constant *constant = in ir_constant_fold()
126 ir_constant *const_val = ir->condition->as_constant(); in visit_enter()
176 ir_constant *const_val = ir->constant_expression_value(ralloc_parent(ir)); in visit_enter()
Dlower_vector_insert.cpp71 ir_constant *const idx = in handle_rvalue()
134 ir_constant *const cmp_index = in handle_rvalue()
135 ir_constant::zero(factory.mem_ctx, expr->operands[2]->type); in handle_rvalue()
Dir_clone.cpp331 ir_constant *
332 ir_constant::clone(void *mem_ctx, struct hash_table *ht) const in clone()
352 return new(mem_ctx) ir_constant(this->type, &this->value); in clone()
356 ir_constant *c = new(mem_ctx) ir_constant; in clone()
359 c->const_elements = ralloc_array(c, ir_constant *, this->type->length); in clone()
Dlower_vector_derefs.cpp79 ir_constant *old_index_constant = in visit_enter()
105 ir_constant *const cmp_index = in visit_enter()
106 ir_constant::zero(factory.mem_ctx, deref->array_index->type); in visit_enter()
Dopt_constant_propagation.cpp53 acp_entry(ir_variable *var, unsigned write_mask, ir_constant *constant) in acp_entry()
72 ir_constant *constant;
139 ir_constant *constant = in constant_folding()
244 *rvalue = new(ralloc_parent(deref)) ir_constant(type, &data); in constant_propagation()
493 ir_constant *constant = ir->rhs->as_constant(); in add_constant()
Dlower_blend_equation_advanced.cpp36 #define imm1(x) new(mem_ctx) ir_constant((float) (x), 1)
37 #define imm3(x) new(mem_ctx) ir_constant((float) (x), 3)
194 return dot(c, new(mem_ctx) ir_constant(glsl_type::vec3_type, &data)); in lumv3()
272 return equal(mode, new(ralloc_parent(mode)) ir_constant(unsigned(q))); in is_mode()
437 ir_constant *index = new(mem_ctx) ir_constant(0); in deref_output()
538 blend_comps[i] = new(mem_ctx) ir_constant(i < 3 ? 0.0f : 1.0f); in lower_blend_equation_advanced()
Dir_builder_print_visitor.cpp43 virtual ir_visitor_status visit(class ir_constant *);
70 void print_without_declaration(const ir_constant *ir);
107 const ir_constant *const c = (ir_constant *) ir; in is_simple_operand()
190 print_without_declaration((ir_constant *) ir); in print_without_declaration()
314 ir_builder_print_visitor::print_without_declaration(const ir_constant *ir) in print_without_declaration()
346 ir_builder_print_visitor::visit(ir_constant *ir) in visit()
Dlower_discard.cpp157 condition = new(mem_ctx) ir_constant(true); in replace_discard()
183 new(mem_ctx) ir_constant(false)); in visit_leave()
Dlower_discard_flow.cpp98 rhs = new(mem_ctx) ir_constant(true); in visit_enter()
121 ir_rvalue *rhs = new(mem_ctx) ir_constant(false); in visit_enter()
Dir_visitor.h58 virtual void visit(class ir_constant *) = 0;
85 virtual void visit(class ir_constant *) {} in visit() argument
Dlower_subroutine.cpp91 ir_constant *lc = new(mem_ctx)ir_constant(fn->subroutine_index); in visit_leave()
Dopt_constant_variable.cpp46 ir_constant *constval;
101 ir_constant *constval; in visit_enter()
Dir_equals.cpp51 ir_constant::equals(const ir_instruction *ir, enum ir_node_type) const in equals()
53 const ir_constant *other = ir->as_constant(); in equals()
Dlower_tess_level.cpp268 ir_constant *old_index_constant = in fix_lhs()
319 ir->lhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave()
321 ir->rhs->clone(ctx, NULL), new(ctx) ir_constant(i)); in visit_leave()
Dlower_jumps.cpp190 …w(this->signature) ir_dereference_variable(execute_flag), new(this->signature) ir_constant(true))); in get_execute_flag()
219 …w(this->signature) ir_dereference_variable(return_flag), new(this->signature) ir_constant(false))); in get_return_flag()
318 new (ir) ir_constant(true))); in insert_lowered_return()
609 …ew(ir) ir_assignment(new (ir) ir_dereference_variable(execute_flag), new (ir) ir_constant(false))); in visit()
/third_party/mesa3d/src/mesa/main/
Dff_fragment_shader.cpp405 new(p->mem_ctx) ir_constant(unit)); in get_source()
413 return new(p->mem_ctx) ir_constant(0.0f); in get_source()
416 return new(p->mem_ctx) ir_constant(1.0f); in get_source()
443 return sub(new(p->mem_ctx) ir_constant(1.0f), src); in emit_combine_source()
451 return sub(new(p->mem_ctx) ir_constant(1.0f), scalar); in emit_combine_source()
539 return add(add(src[0], src[1]), new(p->mem_ctx) ir_constant(-0.5f)); in emit_combine()
544 tmp1 = mul(src[1], sub(new(p->mem_ctx) ir_constant(1.0f), in emit_combine()
555 tmp0 = mul(src[0], new(p->mem_ctx) ir_constant(2.0f)); in emit_combine()
556 tmp0 = add(tmp0, new(p->mem_ctx) ir_constant(-1.0f)); in emit_combine()
558 tmp1 = mul(src[1], new(p->mem_ctx) ir_constant(2.0f)); in emit_combine()
[all …]

123