Home
last modified time | relevance | path

Searched refs:ir_instruction (Results 1 – 25 of 71) sorted by relevance

123

/external/mesa3d/src/compiler/glsl/
Dir_equals.cpp31 possibly_null_equals(const ir_instruction *a, const ir_instruction *b, in possibly_null_equals()
45 ir_instruction::equals(const ir_instruction *, enum ir_node_type) const in equals() argument
51 ir_constant::equals(const ir_instruction *ir, enum ir_node_type) const in equals()
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()
193 ir_expression::equals(const ir_instruction *ir, enum ir_node_type ignore) const in equals()
Dloop_unroll.cpp57 is_break(ir_instruction *ir) in is_break()
240 ir_instruction *ir_to_replace = ir; in complex_unroll()
248 ir_if *ir_if = ((ir_instruction *) copy_list.get_tail())->as_if(); in complex_unroll()
296 ir_instruction *move_ir = (ir_instruction *) ir_if->get_next(); in splice_post_if_instructions()
319 ir_instruction *last_ir = in visit_leave()
320 (ir_instruction *) ir->body_instructions.get_tail(); in visit_leave()
381 ir_instruction *last_ir = (ir_instruction *) ir->body_instructions.get_tail(); in visit_leave()
397 foreach_in_list(ir_instruction, cur_ir, &ir->body_instructions) { in visit_leave()
414 ir_instruction *ir_if_last = in visit_leave()
415 (ir_instruction *) ir_if->then_instructions.get_tail(); in visit_leave()
[all …]
Dlower_jumps.cpp299 ((ir_instruction *)ir->get_next())->remove(); in truncate_after_instruction()
304 void move_outer_block_inside(ir_instruction *ir, exec_list *inner_block) in move_outer_block_inside()
307 ir_instruction *move_ir = (ir_instruction *)ir->get_next(); in move_outer_block_inside()
342 void lower_return_unconditionally(ir_instruction *ir) in lower_return_unconditionally()
354 ir_instruction *create_lowered_break() in create_lowered_break()
370 void lower_break_unconditionally(ir_instruction *ir) in lower_break_unconditionally()
384 ir_instruction *ir = (ir_instruction *) block->get_tail(); in lower_final_breaks()
389 (ir_instruction *) ir_if->then_instructions.get_tail()); in lower_final_breaks()
391 (ir_instruction *) ir_if->else_instructions.get_tail()); in lower_final_breaks()
451 enum jump_strength get_jump_strength(ir_instruction* ir) in get_jump_strength()
[all …]
Dopt_tree_grafting.cpp81 ir_visitor_status check_graft(ir_instruction *ir, ir_variable *var);
96 dereferences_variable_callback(ir_instruction *ir, void *data) in dereferences_variable_callback()
106 dereferences_variable(ir_instruction *ir, ir_variable *var) in dereferences_variable()
163 ir_tree_grafting_visitor::check_graft(ir_instruction *ir, ir_variable *var) in check_graft()
316 ir_instruction *bb_last) in try_tree_grafting()
326 for (ir_instruction *ir = (ir_instruction *)start->next; in try_tree_grafting()
328 ir = (ir_instruction *)ir->next) { in try_tree_grafting()
345 tree_grafting_basic_block(ir_instruction *bb_first, in tree_grafting_basic_block()
346 ir_instruction *bb_last, in tree_grafting_basic_block()
350 ir_instruction *ir, *next; in tree_grafting_basic_block()
[all …]
Dopt_redundant_jumps.cpp65 ir_instruction *const last_then = in visit_leave()
66 (ir_instruction *) ir->then_instructions.get_tail(); in visit_leave()
67 ir_instruction *const last_else = in visit_leave()
68 (ir_instruction *) ir->else_instructions.get_tail(); in visit_leave()
104 ir_instruction *const last = in visit_leave()
105 (ir_instruction *) ir->body_instructions.get_tail(); in visit_leave()
Dir.h90 class ir_instruction : public exec_node {
100 virtual ~ir_instruction() in ~ir_instruction()
110 virtual ir_instruction *clone(void *mem_ctx,
200 virtual bool equals(const ir_instruction *ir,
204 ir_instruction(enum ir_node_type t) in ir_instruction() function
210 ir_instruction() in ir_instruction() function
220 class ir_rvalue : public ir_instruction {
420 class ir_variable : public ir_instruction {
1125 class ir_function_signature : public ir_instruction {
1264 class ir_function : public ir_instruction {
[all …]
Dir_basic_block.cpp51 void (*callback)(ir_instruction *first, in call_for_basic_blocks()
52 ir_instruction *last, in call_for_basic_blocks()
56 ir_instruction *leader = NULL; in call_for_basic_blocks()
57 ir_instruction *last = NULL; in call_for_basic_blocks()
59 foreach_in_list(ir_instruction, ir, instructions) { in call_for_basic_blocks()
Dir_hierarchical_visitor.h159 class ir_instruction *base_ir;
169 void (*callback_enter)(class ir_instruction *ir, void *data);
179 void (*callback_leave)(class ir_instruction *ir, void *data);
199 void visit_tree(ir_instruction *ir,
200 void (*callback_enter)(class ir_instruction *ir, void *data),
202 void (*callback_leave)(class ir_instruction *ir, void *data) = NULL,
Dir_expression_flattening.cpp40 ir_expression_flattening_visitor(bool (*predicate)(ir_instruction *ir)) in ir_expression_flattening_visitor()
51 bool (*predicate)(ir_instruction *ir);
56 bool (*predicate)(ir_instruction *ir)) in do_expression_flattening()
60 foreach_in_list(ir_instruction, ir, instructions) { in do_expression_flattening()
Dir_print_visitor.cpp33 ir_instruction::print(void) const in print()
39 ir_instruction::fprint(FILE *f) const in fprint()
41 ir_instruction *deconsted = const_cast<ir_instruction *>(this); in fprint()
70 foreach_in_list(ir_instruction, ir, instructions) { in _mesa_print_ir()
81 const ir_instruction *ir = (const ir_instruction *)instruction; in fprint_ir()
242 foreach_in_list(ir_instruction, inst, &ir->body) { in visit()
552 foreach_in_list(ir_instruction, inst, &ir->then_instructions) { in visit()
567 foreach_in_list(ir_instruction, inst, &ir->else_instructions) { in visit()
587 foreach_in_list(ir_instruction, inst, &ir->body_instructions) { in visit()
Dopt_dead_code_local.cpp154 static void run(ir_instruction *ir, ir_hierarchical_visitor *v) in run()
296 dead_code_local_basic_block(ir_instruction *first, in dead_code_local_basic_block()
297 ir_instruction *last, in dead_code_local_basic_block()
300 ir_instruction *ir, *ir_next; in dead_code_local_basic_block()
310 for (ir = first, ir_next = (ir_instruction *)first->next;; in dead_code_local_basic_block()
311 ir = ir_next, ir_next = (ir_instruction *)ir->next) { in dead_code_local_basic_block()
Dir_clone.cpp118 foreach_in_list(ir_instruction, ir, &this->then_instructions) { in clone()
122 foreach_in_list(ir_instruction, ir, &this->else_instructions) { in clone()
134 foreach_in_list(ir_instruction, ir, &this->body_instructions) { in clone()
150 foreach_in_list(ir_instruction, ir, &this->actual_parameters) { in clone()
299 foreach_in_list(const ir_instruction, inst, &this->body) { in clone()
300 ir_instruction *const inst_copy = inst->clone(mem_ctx, ht); in clone()
429 foreach_in_list(const ir_instruction, original, in) { in clone_ir_list()
430 ir_instruction *copy = original->clone(mem_ctx, ht); in clone_ir_list()
Dlink_functions.cpp155 foreach_in_list(const ir_instruction, original, &sig->parameters) { in visit_enter()
156 assert(const_cast<ir_instruction *>(original)->as_variable()); in visit_enter()
158 ir_instruction *copy = original->clone(linked, ht); in visit_enter()
167 foreach_in_list(const ir_instruction, original, &sig->body) { in visit_enter()
168 ir_instruction *copy = original->clone(linked, ht); in visit_enter()
Dir_basic_block.h25 void (*callback)(ir_instruction *first,
26 ir_instruction *last,
Dlower_if_to_cond_assign.cpp119 check_ir_node(ir_instruction *ir, void *data) in check_ir_node()
177 foreach_in_list_safe(ir_instruction, ir, instructions) { in move_block_to_cond_assign()
246 foreach_in_list(ir_instruction, then_ir, &ir->then_instructions) { in visit_leave()
251 foreach_in_list(ir_instruction, else_ir, &ir->else_instructions) { in visit_leave()
Dir_function_can_inline.cpp70 ir_instruction *last = (ir_instruction *)callee->body.get_tail(); in can_inline()
Dopt_function_inlining.cpp83 replace_return_with_assignment(ir_instruction *ir, void *data) in replace_return_with_assignment()
135 ir_call::generate_inline(ir_instruction *next_ir) in generate_inline()
230 foreach_in_list(ir_instruction, ir, &callee->body) { in generate_inline()
231 ir_instruction *new_ir = ir->clone(ctx, ht); in generate_inline()
Dlink_interface_blocks.cpp300 foreach_in_list(ir_instruction, node, shader_list[i]->ir) { in validate_intrastage_interface_blocks()
368 foreach_in_list(ir_instruction, node, producer->ir) { in validate_interstage_inout_blocks()
377 foreach_in_list(ir_instruction, node, consumer->ir) { in validate_interstage_inout_blocks()
418 foreach_in_list(ir_instruction, node, stage->ir) { in validate_interstage_uniform_blocks()
Dir_builder.h92 void emit(ir_instruction *ir);
226 ir_instruction *then_branch);
228 ir_instruction *then_branch,
229 ir_instruction *else_branch);
Dglsl_to_nir.cpp93 nir_deref_var *evaluate_deref(nir_instr *mem_ctx, ir_instruction *ir);
204 nir_visitor::evaluate_deref(nir_instr *mem_ctx, ir_instruction *ir) in evaluate_deref()
935 ir_rvalue *block = ((ir_instruction *)param)->as_rvalue(); in visit()
938 ir_rvalue *offset = ((ir_instruction *)param)->as_rvalue(); in visit()
941 ir_rvalue *val = ((ir_instruction *)param)->as_rvalue(); in visit()
944 ir_constant *write_mask = ((ir_instruction *)param)->as_constant(); in visit()
958 ir_rvalue *block = ((ir_instruction *)param)->as_rvalue(); in visit()
961 ir_rvalue *offset = ((ir_instruction *)param)->as_rvalue(); in visit()
1017 ir_instruction *inst = (ir_instruction *) param; in visit()
1022 inst = (ir_instruction *) param; in visit()
[all …]
Dlower_vertex_id.cpp50 foreach_in_list(ir_instruction, ir, ir_list) { in lower_vertex_id_visitor()
111 ir_instruction *const inst = in visit()
Dlower_shared_reference.cpp347 ir_instruction *inst = (ir_instruction *) param; in lower_shared_atomic_intrinsic()
421 ir_rvalue *param_as_rvalue = ((ir_instruction *) param)->as_rvalue(); in lower_shared_atomic_intrinsic()
425 param_as_rvalue = ((ir_instruction *) param)->as_rvalue(); in lower_shared_atomic_intrinsic()
442 ((ir_instruction *) params.get_head())->as_rvalue(); in check_for_shared_atomic_intrinsic()
/external/mesa3d/src/compiler/glsl/tests/
Dopt_add_neg_to_sub_test.cpp83 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
116 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
149 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
182 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
Dbuiltin_variable_test.cpp100 foreach_in_list(ir_instruction, node, &this->ir) { in names_start_with_gl()
110 foreach_in_list(ir_instruction, node, &this->ir) { in uniforms_and_system_values_dont_have_explicit_location()
124 foreach_in_list(ir_instruction, node, &this->ir) { in constants_are_constant()
139 foreach_in_list(ir_instruction, node, &this->ir) { in no_invalid_variable_modes()
176 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
191 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
244 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
264 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
315 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
361 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
/external/mesa3d/src/mesa/program/
Dir_to_mesa.cpp157 ir_instruction *ir;
227 void reladdr_to_temp(ir_instruction *ir, src_reg *reg, int *num_reladdr);
273 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op);
275 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op,
278 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op,
281 ir_to_mesa_instruction *emit(ir_instruction *ir, enum prog_opcode op,
288 ir_to_mesa_instruction * emit_dp(ir_instruction *ir,
294 void emit_scalar(ir_instruction *ir, enum prog_opcode op,
297 void emit_scalar(ir_instruction *ir, enum prog_opcode op,
353 ir_to_mesa_visitor::emit(ir_instruction *ir, enum prog_opcode op, in emit()
[all …]

123