Home
last modified time | relevance | path

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

123

/third_party/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()
199 ir_expression::equals(const ir_instruction *ir, enum ir_node_type ignore) const in equals()
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 …]
Dir.h91 class ir_instruction : public exec_node {
101 virtual ~ir_instruction() in ~ir_instruction()
111 virtual ir_instruction *clone(void *mem_ctx,
197 virtual bool equals(const ir_instruction *ir,
201 ir_instruction(enum ir_node_type t) in ir_instruction() function
207 ir_instruction() in ir_instruction() function
217 class ir_rvalue : public ir_instruction {
418 class ir_variable : public ir_instruction {
1180 class ir_function_signature : public ir_instruction {
1329 class ir_function : public ir_instruction {
[all …]
Dlower_jumps.cpp286 ((ir_instruction *)ir->get_next())->remove(); in truncate_after_instruction()
291 void move_outer_block_inside(ir_instruction *ir, exec_list *inner_block) in move_outer_block_inside()
294 ir_instruction *move_ir = (ir_instruction *)ir->get_next(); in move_outer_block_inside()
329 void lower_return_unconditionally(ir_instruction *ir) in lower_return_unconditionally()
394 enum jump_strength get_jump_strength(ir_instruction* ir) in get_jump_strength()
448 foreach_in_list(ir_instruction, node, list) { in visit_block()
483 if(!list.is_empty() && get_jump_strength((ir_instruction*)list.get_tail())) in visit()
725 ir_instruction* ir_after; in visit()
726 for(ir_after = (ir_instruction*)ir->get_next(); !ir_after->is_tail_sentinel();) in visit()
732 ir_instruction* ir_next = (ir_instruction*)ir_after->get_next(); in visit()
[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.h156 void call_enter_leave_callbacks(class ir_instruction *ir);
166 class ir_instruction *base_ir;
176 void (*callback_enter)(class ir_instruction *ir, void *data);
186 void (*callback_leave)(class ir_instruction *ir, void *data);
206 void visit_tree(ir_instruction *ir,
207 void (*callback_enter)(class ir_instruction *ir, void *data),
209 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()
Dopt_dead_code_local.cpp156 static void run(ir_instruction *ir, ir_hierarchical_visitor *v) in run()
302 dead_code_local_basic_block(ir_instruction *first, in dead_code_local_basic_block()
303 ir_instruction *last, in dead_code_local_basic_block()
306 ir_instruction *ir, *ir_next; in dead_code_local_basic_block()
316 for (ir = first, ir_next = (ir_instruction *)first->next;; in dead_code_local_basic_block()
317 ir = ir_next, ir_next = (ir_instruction *)ir->next) { in dead_code_local_basic_block()
Dir_print_visitor.cpp34 ir_instruction::print(void) const in print()
40 ir_instruction::fprint(FILE *f) const in fprint()
42 ir_instruction *deconsted = const_cast<ir_instruction *>(this); in fprint()
71 foreach_in_list(ir_instruction, ir, instructions) { in _mesa_print_ir()
82 const ir_instruction *ir = (const ir_instruction *)instruction; in fprint_ir()
256 foreach_in_list(ir_instruction, inst, &ir->body) { in visit()
598 foreach_in_list(ir_instruction, inst, &ir->then_instructions) { in visit()
613 foreach_in_list(ir_instruction, inst, &ir->else_instructions) { in visit()
633 foreach_in_list(ir_instruction, inst, &ir->body_instructions) { in visit()
Dir_clone.cpp124 foreach_in_list(ir_instruction, ir, &this->then_instructions) { in clone()
128 foreach_in_list(ir_instruction, ir, &this->else_instructions) { in clone()
140 foreach_in_list(ir_instruction, ir, &this->body_instructions) { in clone()
156 foreach_in_list(ir_instruction, ir, &this->actual_parameters) { in clone()
301 foreach_in_list(const ir_instruction, inst, &this->body) { in clone()
302 ir_instruction *const inst_copy = inst->clone(mem_ctx, ht); in clone()
424 foreach_in_list(const ir_instruction, original, in) { in clone_ir_list()
425 ir_instruction *copy = original->clone(mem_ctx, ht); in clone_ir_list()
Dlink_functions.cpp153 foreach_in_list(const ir_instruction, original, &sig->parameters) { in visit_enter()
154 assert(const_cast<ir_instruction *>(original)->as_variable()); in visit_enter()
156 ir_instruction *copy = original->clone(linked, ht); in visit_enter()
165 foreach_in_list(const ir_instruction, original, &sig->body) { in visit_enter()
166 ir_instruction *copy = original->clone(linked, ht); in visit_enter()
Dir_basic_block.h28 void (*callback)(ir_instruction *first,
29 ir_instruction *last,
Dlower_int64.cpp60 ir_rvalue *lower_op_to_function_call(ir_instruction *base_ir,
79 foreach_in_list(ir_instruction, node, instructions) { in lower_64bit_visitor()
141 ir_instruction *first_inst = (ir_instruction *) instructions->get_head_raw(); in lower_64bit_integer_instructions()
255 lower_64bit::lower_op_to_function_call(ir_instruction *base_ir, in lower_op_to_function_call()
Dir_function_can_inline.cpp70 ir_instruction *last = (ir_instruction *)callee->body.get_tail(); in can_inline()
Dir_hierarchical_visitor.cpp380 ir_hierarchical_visitor::call_enter_leave_callbacks(class ir_instruction *ir) in call_enter_leave_callbacks()
389 visit_tree(ir_instruction *ir, in visit_tree()
390 void (*callback_enter)(class ir_instruction *ir, void *data), in visit_tree()
392 void (*callback_leave)(class ir_instruction *ir, void *data), in visit_tree()
Dopt_function_inlining.cpp83 replace_return_with_assignment(ir_instruction *ir, void *data) in replace_return_with_assignment()
147 ir_call::generate_inline(ir_instruction *next_ir) in generate_inline()
238 foreach_in_list(ir_instruction, ir, &callee->body) { in generate_inline()
239 ir_instruction *new_ir = ir->clone(ctx, ht); in generate_inline()
Dir_builder.h95 void emit(ir_instruction *ir);
234 ir_instruction *then_branch);
236 ir_instruction *then_branch,
237 ir_instruction *else_branch);
Dlink_interface_blocks.cpp321 foreach_in_list(ir_instruction, node, shader_list[i]->ir) { in validate_intrastage_interface_blocks()
453 foreach_in_list(ir_instruction, node, producer->ir) { in validate_interstage_inout_blocks()
472 foreach_in_list(ir_instruction, node, consumer->ir) { in validate_interstage_inout_blocks()
529 foreach_in_list(ir_instruction, node, stage->ir) { in validate_interstage_uniform_blocks()
Dlower_precision.cpp93 ir_instruction *instr;
103 std::vector<ir_instruction *> lowerable_children;
109 static void stack_enter(class ir_instruction *ir, void *data);
110 static void stack_leave(class ir_instruction *ir, void *data);
126 static parent_relation get_parent_relation(ir_instruction *parent,
127 ir_instruction *child);
191 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()
308 find_lowerable_rvalues_visitor::get_parent_relation(ir_instruction *parent, in get_parent_relation()
309 ir_instruction *child) in get_parent_relation()
Dlower_vertex_id.cpp52 foreach_in_list(ir_instruction, ir, ir_list) { in lower_vertex_id_visitor()
113 ir_instruction *const inst = in visit()
Dast_function.cpp406 copy_index_derefs_to_temps(ir_instruction *ir, void *data) in copy_index_derefs_to_temps()
1257 ir_instruction *assignment = NULL; in process_vec_mat_constructor()
1397 ir_instruction *assignment = new(ctx) ir_assignment(lhs, rhs); in process_array_constructor()
1465 ir_instruction *inst = new(ctx) ir_assignment(lhs, rhs, mask); in emit_inline_vector_constructor()
1534 ir_instruction *inst = in emit_inline_vector_constructor()
1568 ir_instruction *inst = in emit_inline_vector_constructor()
1595 static ir_instruction *
1680 ir_instruction *inst = in emit_inline_matrix_constructor()
1782 ir_instruction *inst = new(ctx) ir_assignment(lhs, rhs); in emit_inline_matrix_constructor()
1799 ir_instruction *const inst = in emit_inline_matrix_constructor()
[all …]
Dlower_cs_derived.cpp168 ir_instruction *inst = in make_gl_GlobalInvocationID()
200 ir_instruction *inst = in make_gl_LocalInvocationIndex()
/third_party/mesa3d/src/compiler/glsl/tests/
Dopt_add_neg_to_sub_test.cpp87 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
120 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
153 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
186 ir_instruction *const ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
Dbuiltin_variable_test.cpp104 foreach_in_list(ir_instruction, node, &this->ir) { in names_start_with_gl()
114 foreach_in_list(ir_instruction, node, &this->ir) { in uniforms_and_system_values_dont_have_explicit_location()
128 foreach_in_list(ir_instruction, node, &this->ir) { in constants_are_constant()
143 foreach_in_list(ir_instruction, node, &this->ir) { in no_invalid_variable_modes()
180 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
195 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
248 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
268 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
319 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
365 foreach_in_list(ir_instruction, node, &this->ir) { in TEST_F()
Dlower_int64_test.cpp40 ir_rvalue *lower_op_to_function_call(ir_instruction *base_ir,
127 const ir_instruction *source) in check_instructions()
137 ir_instruction *ir; in check_instructions()
153 ir = (ir_instruction *) instructions->pop_head(); in check_instructions()
163 ir = (ir_instruction *) instructions->pop_head(); in check_instructions()
172 ir = (ir_instruction *) instructions->pop_head(); in check_instructions()
178 ir = (ir_instruction *) instructions->pop_head(); in check_instructions()
428 ir_instruction *ir; in TEST_F()
431 ir = (ir_instruction *) instructions.pop_head(); in TEST_F()
438 ir = (ir_instruction *) instructions.pop_head(); in TEST_F()

123