Home
last modified time | relevance | path

Searched defs:ir (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/third_party/mesa3d/src/compiler/glsl/
Dir_hierarchical_visitor.cpp38 ir_hierarchical_visitor::visit(ir_rvalue *ir) in visit()
46 ir_hierarchical_visitor::visit(ir_variable *ir) in visit()
54 ir_hierarchical_visitor::visit(ir_constant *ir) in visit()
62 ir_hierarchical_visitor::visit(ir_loop_jump *ir) in visit()
70 ir_hierarchical_visitor::visit(ir_dereference_variable *ir) in visit()
78 ir_hierarchical_visitor::visit(ir_barrier *ir) in visit()
86 ir_hierarchical_visitor::visit_enter(ir_loop *ir) in visit_enter()
95 ir_hierarchical_visitor::visit_leave(ir_loop *ir) in visit_leave()
104 ir_hierarchical_visitor::visit_enter(ir_function_signature *ir) in visit_enter()
113 ir_hierarchical_visitor::visit_leave(ir_function_signature *ir) in visit_leave()
[all …]
Dir_rvalue_visitor.cpp38 ir_rvalue_base_visitor::rvalue_visit(ir_expression *ir) in rvalue_visit()
50 ir_rvalue_base_visitor::rvalue_visit(ir_texture *ir) in rvalue_visit()
88 ir_rvalue_base_visitor::rvalue_visit(ir_swizzle *ir) in rvalue_visit()
95 ir_rvalue_base_visitor::rvalue_visit(ir_dereference_array *ir) in rvalue_visit()
110 ir_rvalue_base_visitor::rvalue_visit(ir_dereference_record *ir) in rvalue_visit()
117 ir_rvalue_base_visitor::rvalue_visit(ir_assignment *ir) in rvalue_visit()
126 ir_rvalue_base_visitor::rvalue_visit(ir_call *ir) in rvalue_visit()
140 ir_rvalue_base_visitor::rvalue_visit(ir_discard *ir) in rvalue_visit()
147 ir_rvalue_base_visitor::rvalue_visit(ir_return *ir) in rvalue_visit()
154 ir_rvalue_base_visitor::rvalue_visit(ir_if *ir) in rvalue_visit()
[all …]
Dir_validate.cpp93 ir_validate::visit(ir_dereference_variable *ir) in visit()
124 ir_validate::visit_enter(class ir_dereference_array *ir) in visit_enter()
167 ir_validate::visit_enter(class ir_dereference_record *ir) in visit_enter()
189 ir_validate::visit_enter(ir_discard *ir) in visit_enter()
203 ir_validate::visit_enter(ir_if *ir) in visit_enter()
218 ir_validate::visit_enter(ir_function *ir) in visit_enter()
254 ir_validate::visit_leave(ir_function *ir) in visit_leave()
263 ir_validate::visit_enter(ir_function_signature *ir) in visit_enter()
287 ir_validate::visit_enter(ir_return *ir) in visit_enter()
298 ir_validate::visit_leave(ir_expression *ir) in visit_leave()
[all …]
Dir_builder_print_visitor.cpp91 is_simple_operand(const ir_rvalue *ir, unsigned depth = 1) in is_simple_operand()
183 ir_builder_print_visitor::print_without_declaration(const ir_rvalue *ir) in print_without_declaration()
204 ir_builder_print_visitor::visit(ir_variable *ir) in visit()
257 ir_builder_print_visitor::print_without_declaration(const ir_dereference_variable *ir) in print_without_declaration()
266 ir_builder_print_visitor::visit(ir_dereference_variable *ir) in visit()
278 ir_builder_print_visitor::visit_enter(ir_function_signature *ir) in visit_enter()
302 ir_builder_print_visitor::visit_leave(ir_function_signature *ir) in visit_leave()
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()
437 ir_builder_print_visitor::print_without_declaration(const ir_swizzle *ir) in print_without_declaration()
[all …]
Dir_print_visitor.cpp82 const ir_instruction *ir = (const ir_instruction *)instruction; in fprint_ir() local
149 void ir_print_visitor::visit(ir_variable *ir) in visit()
228 void ir_print_visitor::visit(ir_function_signature *ir) in visit()
269 void ir_print_visitor::visit(ir_function *ir) in visit()
284 void ir_print_visitor::visit(ir_expression *ir) in visit()
300 void ir_print_visitor::visit(ir_texture *ir) in visit()
385 void ir_print_visitor::visit(ir_swizzle *ir) in visit()
404 void ir_print_visitor::visit(ir_dereference_variable *ir) in visit()
411 void ir_print_visitor::visit(ir_dereference_array *ir) in visit()
420 void ir_print_visitor::visit(ir_dereference_record *ir) in visit()
[all …]
Dopt_tree_grafting.cpp96 dereferences_variable_callback(ir_instruction *ir, void *data) in dereferences_variable_callback()
106 dereferences_variable(ir_instruction *ir, ir_variable *var) in dereferences_variable()
146 ir_tree_grafting_visitor::visit_enter(ir_loop *ir) in visit_enter()
163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variable *var) in check_graft()
178 ir_tree_grafting_visitor::visit_leave(ir_assignment *ir) in visit_leave()
191 ir_tree_grafting_visitor::visit_enter(ir_function *ir) in visit_enter()
198 ir_tree_grafting_visitor::visit_enter(ir_function_signature *ir) in visit_enter()
205 ir_tree_grafting_visitor::visit_enter(ir_call *ir) in visit_enter()
210 ir_rvalue *ir = (ir_rvalue *) actual_node; in visit_enter() local
233 ir_tree_grafting_visitor::visit_enter(ir_expression *ir) in visit_enter()
[all …]
Dopt_function_inlining.cpp83 replace_return_with_assignment(ir_instruction *ir, void *data) in replace_return_with_assignment()
292 ir_function_inlining_visitor::visit_enter(ir_expression *ir) in visit_enter()
300 ir_function_inlining_visitor::visit_enter(ir_return *ir) in visit_enter()
308 ir_function_inlining_visitor::visit_enter(ir_texture *ir) in visit_enter()
316 ir_function_inlining_visitor::visit_enter(ir_swizzle *ir) in visit_enter()
324 ir_function_inlining_visitor::visit_enter(ir_call *ir) in visit_enter()
397 ir_variable_replacement_visitor::visit_leave(ir_texture *ir) in visit_leave()
405 ir_variable_replacement_visitor::visit_leave(ir_assignment *ir) in visit_leave()
414 ir_variable_replacement_visitor::visit_leave(ir_expression *ir) in visit_leave()
423 ir_variable_replacement_visitor::visit_leave(ir_return *ir) in visit_leave()
[all …]
Dlower_precision.cpp191 find_lowerable_rvalues_visitor::stack_enter(class ir_instruction *ir, in stack_enter()
278 find_lowerable_rvalues_visitor::stack_leave(class ir_instruction *ir, in stack_leave()
329 find_lowerable_rvalues_visitor::visit(ir_constant *ir) in visit()
342 find_lowerable_rvalues_visitor::visit(ir_dereference_variable *ir) in visit()
355 find_lowerable_rvalues_visitor::visit_enter(ir_dereference_record *ir) in visit_enter()
366 find_lowerable_rvalues_visitor::visit_enter(ir_dereference_array *ir) in visit_enter()
377 find_lowerable_rvalues_visitor::visit_enter(ir_texture *ir) in visit_enter()
390 find_lowerable_rvalues_visitor::visit_enter(ir_expression *ir) in visit_enter()
423 handle_call(ir_call *ir, const struct set *lowerable_rvalues) in handle_call()
557 find_lowerable_rvalues_visitor::visit_leave(ir_call *ir) in visit_leave()
[all …]
Dlower_vec_index_to_cond_assign.cpp127 ir_vec_index_to_cond_assign_visitor::convert_vector_extract_to_cond_assign(ir_rvalue *ir) in convert_vector_extract_to_cond_assign()
170 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_expression *ir) in visit_enter()
179 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_swizzle *ir) in visit_enter()
191 ir_vec_index_to_cond_assign_visitor::visit_leave(ir_assignment *ir) in visit_leave()
202 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_call *ir) in visit_enter()
216 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_return *ir) in visit_enter()
225 ir_vec_index_to_cond_assign_visitor::visit_enter(ir_if *ir) in visit_enter()
Dlower_instructions.cpp201 lower_instructions_visitor::sub_to_add_neg(ir_expression *ir) in sub_to_add_neg()
211 lower_instructions_visitor::div_to_mul_rcp(ir_expression *ir) in div_to_mul_rcp()
230 lower_instructions_visitor::int_div_to_mul_rcp(ir_expression *ir) in int_div_to_mul_rcp()
281 lower_instructions_visitor::exp_to_exp2(ir_expression *ir) in exp_to_exp2()
293 lower_instructions_visitor::pow_to_exp2(ir_expression *ir) in pow_to_exp2()
308 lower_instructions_visitor::log_to_log2(ir_expression *ir) in log_to_log2()
319 lower_instructions_visitor::mod_to_floor(ir_expression *ir) in mod_to_floor()
369 lower_instructions_visitor::ldexp_to_arith(ir_expression *ir) in ldexp_to_arith()
543 lower_instructions_visitor::dldexp_to_arith(ir_expression *ir) in dldexp_to_arith()
673 lower_instructions_visitor::dfrexp_sig_to_arith(ir_expression *ir) in dfrexp_sig_to_arith()
[all …]
Dir_equals.cpp51 ir_constant::equals(const ir_instruction *ir, enum ir_node_type) const in equals() argument
74 ir_dereference_variable::equals(const ir_instruction *ir, in equals()
85 ir_dereference_array::equals(const ir_instruction *ir, in equals()
105 ir_swizzle::equals(const ir_instruction *ir, in equals()
128 ir_texture::equals(const ir_instruction *ir, enum ir_node_type ignore) const in equals() argument
193 ir_expression::equals(const ir_instruction *ir, enum ir_node_type ignore) const in equals() argument
Dloop_analysis.cpp54 ir_instruction *ir = (ir_instruction *) node; in find_initial_value() local
231 ir_instruction *ir = (ir_instruction *) node; in incremented_before_terminator() local
315 loop_state::insert(ir_loop *ir) in insert()
327 loop_state::get(const ir_loop *ir) in get()
335 loop_variable_state::get(const ir_variable *ir) in get()
436 loop_analysis::visit(ir_loop_jump *ir) in visit()
466 loop_analysis::visit(ir_dereference_variable *ir) in visit()
489 loop_analysis::visit_enter(ir_loop *ir) in visit_enter()
498 loop_analysis::visit_leave(ir_loop *ir) in visit_leave()
684 loop_analysis::visit_enter(ir_if *ir) in visit_enter()
[all …]
Dglsl_to_nir.cpp151 virtual ir_visitor_status visit_enter(ir_function_signature *ir) in visit_enter()
185 has_unsupported_function_param(exec_list *ir) in has_unsupported_function_param()
287 nir_visitor::evaluate_deref(ir_instruction *ir) in evaluate_deref()
294 nir_visitor::constant_copy(ir_constant *ir, void *mem_ctx) in constant_copy()
457 nir_visitor::visit(ir_variable *ir) in visit()
687 nir_function_visitor::visit_enter(ir_function *ir) in visit_enter()
696 nir_visitor::create_function(ir_function_signature *ir) in create_function()
737 nir_visitor::visit(ir_function *ir) in visit()
744 nir_visitor::visit(ir_function_signature *ir) in visit()
789 nir_visitor::visit(ir_loop *ir) in visit()
[all …]
Dopt_vectorize.cpp133 rewrite_swizzle(ir_instruction *ir, void *data) in rewrite_swizzle()
253 ir_vectorize_visitor::visit_enter(ir_assignment *ir) in visit_enter()
283 ir_vectorize_visitor::visit_enter(ir_swizzle *ir) in visit_enter()
313 ir_vectorize_visitor::visit_enter(ir_expression *ir) in visit_enter()
327 ir_vectorize_visitor::visit_enter(ir_if *ir) in visit_enter()
345 ir_vectorize_visitor::visit_enter(ir_loop *ir) in visit_enter()
375 ir_vectorize_visitor::visit_leave(ir_assignment *ir) in visit_leave()
Dlower_tess_level.cpp103 lower_tess_level_visitor::visit(ir_variable *ir) in visit()
165 lower_tess_level_visitor::is_tess_level_array(ir_rvalue *ir) in is_tess_level_array()
194 lower_tess_level_visitor::lower_tess_level_array(ir_rvalue *ir) in lower_tess_level_array()
250 lower_tess_level_visitor::fix_lhs(ir_assignment *ir) in fix_lhs()
296 lower_tess_level_visitor::visit_leave(ir_assignment *ir) in visit_leave()
366 lower_tess_level_visitor::visit_new_assignment(ir_assignment *ir) in visit_new_assignment()
383 lower_tess_level_visitor::visit_leave(ir_call *ir) in visit_leave()
Dlower_discard_flow.cpp78 lower_discard_flow_visitor::visit(ir_loop_jump *ir) in visit()
89 lower_discard_flow_visitor::visit_enter(ir_discard *ir) in visit_enter()
107 lower_discard_flow_visitor::visit_enter(ir_loop *ir) in visit_enter()
115 lower_discard_flow_visitor::visit_enter(ir_function_signature *ir) in visit_enter()
141 lower_discard_flow(exec_list *ir) in lower_discard_flow()
Dopt_dead_code_local.cpp51 assignment_entry(ir_variable *lhs, ir_assignment *ir) in assignment_entry()
61 ir_assignment *ir; member in __anon51bf88c50111::assignment_entry
96 virtual ir_visitor_status visit(ir_dereference_variable *ir) in visit()
103 virtual ir_visitor_status visit(ir_swizzle *ir) in visit()
150 virtual ir_visitor_status visit_enter(class ir_dereference_array *ir) in visit_enter()
156 static void run(ir_instruction *ir, ir_hierarchical_visitor *v) in run()
172 process_assignment(void *lin_ctx, ir_assignment *ir, exec_list *assignments) in process_assignment()
313 ir_instruction *ir, *ir_next; in dead_code_local_basic_block() local
Dir_variable_refcount.cpp94 ir_variable_refcount_visitor::visit(ir_variable *ir) in visit()
105 ir_variable_refcount_visitor::visit(ir_dereference_variable *ir) in visit()
118 ir_variable_refcount_visitor::visit_enter(ir_function_signature *ir) in visit_enter()
129 ir_variable_refcount_visitor::visit_leave(ir_assignment *ir) in visit_leave()
Dopt_algebraic.cpp87 ir_algebraic_visitor::visit_enter(ir_assignment *ir) in visit_enter()
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()
180 update_type(ir_expression *ir) in update_type()
[all …]
Dir_expression_flattening.cpp40 ir_expression_flattening_visitor(bool (*predicate)(ir_instruction *ir)) in ir_expression_flattening_visitor()
56 bool (*predicate)(ir_instruction *ir)) in do_expression_flattening()
70 ir_rvalue *ir = *rvalue; in handle_rvalue() local
Dopt_constant_propagation.cpp256 ir_constant_propagation_visitor::visit_enter(ir_function_signature *ir) in visit_enter()
280 ir_constant_propagation_visitor::visit_leave(ir_assignment *ir) in visit_leave()
314 ir_constant_propagation_visitor::visit_enter(ir_function *ir) in visit_enter()
321 ir_constant_propagation_visitor::visit_enter(ir_call *ir) in visit_enter()
373 ir_constant_propagation_visitor::visit_enter(ir_if *ir) in visit_enter()
400 ir_constant_propagation_visitor::handle_loop(ir_loop *ir, bool keep_acp) in handle_loop()
433 ir_constant_propagation_visitor::visit_enter(ir_loop *ir) in visit_enter()
485 ir_constant_propagation_visitor::add_constant(ir_assignment *ir) in add_constant()
Dlower_distance.cpp138 lower_distance_visitor::visit(ir_variable *ir) in visit()
291 lower_distance_visitor::is_distance_vec8(ir_rvalue *ir) in is_distance_vec8()
331 lower_distance_visitor::lower_distance_vec8(ir_rvalue *ir) in lower_distance_vec8()
399 lower_distance_visitor::fix_lhs(ir_assignment *ir) in fix_lhs()
437 lower_distance_visitor::visit_leave(ir_assignment *ir) in visit_leave()
507 lower_distance_visitor::visit_new_assignment(ir_assignment *ir) in visit_new_assignment()
530 lower_distance_visitor::visit_leave(ir_call *ir) in visit_leave()
613 lower_distance_visitor_counter::visit(ir_variable *ir) in visit()
/third_party/mesa3d/src/gallium/drivers/r600/sfn/
Dsfn_emitaluinstruction.cpp43 bool EmitAluInstruction::do_emit(nir_instr* ir) in do_emit()
288 AluInstruction *ir = nullptr; in emit_cube() local
334 AluInstruction *ir = nullptr; in split_constants() local
353 AluInstruction *ir = nullptr; in emit_alu_inot() local
368 AluInstruction *ir = nullptr; in emit_alu_op1() local
413 AluInstruction *ir = nullptr; in emit_alu_trans_op1() local
447 AluInstruction *ir = nullptr; in emit_alu_cm_trig() local
472 AluInstruction *ir = nullptr; in emit_alu_f2i32_or_u32() local
516 AluInstruction *ir = nullptr; in emit_alu_f2b32() local
530 AluInstruction *ir = nullptr; in emit_b2i32() local
[all …]
Dsfn_shader_base.cpp241 for (auto& ir: m_output) in remap_registers() local
364 void ShaderFromNirProcessor::emit_instruction(AluInstruction *ir) in emit_instruction()
383 void ShaderFromNirProcessor::emit_instruction(Instruction *ir) in emit_instruction()
390 void ShaderFromNirProcessor::emit_instruction_internal(Instruction *ir) in emit_instruction_internal()
482 IfInstruction *ir = new IfInstruction(pred); in emit_if_start() local
502 ElseInstruction *ir = new ElseInstruction(if_instr); in emit_else_start() local
527 IfElseEndInstruction *ir = new IfElseEndInstruction(); in emit_ifelse_end() local
720 AluInstruction *ir = new AluInstruction(op0_group_barrier); in emit_barrier() local
730 auto ir = new AluInstruction(op1_mov, from_nir(dest, 0), value, {alu_write}); in load_preloaded_value() local
751 WriteScratchInstruction *ir = nullptr; in emit_store_scratch() local
[all …]
/third_party/mesa3d/src/mesa/program/
Dir_to_mesa.cpp158 ir_instruction *ir; member in __anon7ed230b40211::ir_to_mesa_instruction
313 inline void emit_sne(ir_expression *ir, dst_reg dst, in emit_sne()
319 inline void emit_seq(ir_expression *ir, dst_reg dst, in emit_seq()
355 ir_to_mesa_visitor::emit(ir_instruction *ir, enum prog_opcode op, in emit()
395 ir_to_mesa_visitor::emit(ir_instruction *ir, enum prog_opcode op, in emit()
402 ir_to_mesa_visitor::emit(ir_instruction *ir, enum prog_opcode op, in emit()
410 ir_to_mesa_visitor::emit(ir_instruction *ir, enum prog_opcode op) in emit()
416 ir_to_mesa_visitor::emit_dp(ir_instruction *ir, in emit_dp()
436 ir_to_mesa_visitor::emit_scalar(ir_instruction *ir, enum prog_opcode op, in emit_scalar()
481 ir_to_mesa_visitor::emit_scalar(ir_instruction *ir, enum prog_opcode op, in emit_scalar()
[all …]

12345678910>>...14