Home
last modified time | relevance | path

Searched refs:gpir_node (Results 1 – 10 of 10) sorted by relevance

/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/
Dgpir.h139 struct gpir_node *pred;
141 struct gpir_node *succ;
152 typedef struct gpir_node { struct
189 struct gpir_node *last; argument
195 } gpir_node; typedef
198 gpir_node node;
200 gpir_node *children[3];
208 gpir_node node;
218 gpir_node node;
228 gpir_node node;
[all …]
Dscheduler.c351 static void schedule_update_distance(gpir_node *node) in schedule_update_distance()
359 gpir_node *pred = dep->pred; in schedule_update_distance()
370 static bool gpir_is_input_node(gpir_node *node) in gpir_is_input_node()
382 static int gpir_get_slots_required(gpir_node *node) in gpir_get_slots_required()
399 list_for_each_entry(gpir_node, node, &ctx->ready_list, list) { in verify_ready_list()
422 gpir_node *insert_node) in schedule_insert_ready_list()
434 gpir_node *succ = dep->succ; in schedule_insert_ready_list()
451 list_for_each_entry(gpir_node, node, &ctx->ready_list, list) { in schedule_insert_ready_list()
465 static int gpir_get_max_start(gpir_node *node) in gpir_get_max_start()
471 gpir_node *succ = dep->succ; in gpir_get_max_start()
[all …]
Dreduce_scheduler.c41 static void schedule_calc_sched_info(gpir_node *node) in schedule_calc_sched_info()
48 gpir_node *pred = dep->pred; in schedule_calc_sched_info()
73 gpir_node *pred = dep->pred; in schedule_calc_sched_info()
104 gpir_node *insert_node) in schedule_insert_ready_list()
108 list_for_each_entry(gpir_node, node, ready_list, list) { in schedule_insert_ready_list()
135 gpir_node *node = list_first_entry(ready_list, gpir_node, list); in schedule_ready_list()
144 gpir_node *pred = dep->pred; in schedule_ready_list()
149 gpir_node *succ = dep->succ; in schedule_ready_list()
172 list_for_each_entry(gpir_node, node, &node_list, list) { in schedule_block()
183 list_for_each_entry_safe(gpir_node, node, &node_list, list) { in schedule_block()
[all …]
Dlower.c34 list_for_each_entry_safe(gpir_node, node, &block->node_list, list) { in gpir_lower_const()
54 list_for_each_entry_safe(gpir_node, node, &block->node_list, list) { in gpir_lower_const()
88 list_for_each_entry_safe(gpir_node, node, &block->node_list, list) { in gpir_lower_load()
94 gpir_node *succ = dep->succ; in gpir_lower_load()
101 gpir_node *new = gpir_node_create(succ->block, node->op); in gpir_lower_load()
124 static bool gpir_lower_neg(gpir_block *block, gpir_node *node) in gpir_lower_neg()
127 gpir_node *child = neg->children[0]; in gpir_lower_neg()
145 gpir_node *succ = dep->succ; in gpir_lower_neg()
172 static bool gpir_lower_complex(gpir_block *block, gpir_node *node) in gpir_lower_complex()
175 gpir_node *child = alu->children[0]; in gpir_lower_complex()
[all …]
Dnode.c316 gpir_node *node = rzalloc_size(block, size); in gpir_node_create()
333 gpir_dep *gpir_node_add_dep(gpir_node *succ, gpir_node *pred, int type) in gpir_node_add_dep()
362 void gpir_node_remove_dep(gpir_node *succ, gpir_node *pred) in gpir_node_remove_dep()
374 void gpir_node_replace_child(gpir_node *parent, gpir_node *old_child, in gpir_node_replace_child()
375 gpir_node *new_child) in gpir_node_replace_child()
395 void gpir_node_replace_pred(gpir_dep *dep, gpir_node *new_pred) in gpir_node_replace_pred()
402 void gpir_node_replace_succ(gpir_node *dst, gpir_node *src) in gpir_node_replace_succ()
413 void gpir_node_insert_child(gpir_node *parent, gpir_node *child, in gpir_node_insert_child()
414 gpir_node *insert_child) in gpir_node_insert_child()
425 void gpir_node_delete(gpir_node *node) in gpir_node_delete()
[all …]
Doptimize.c73 gpir_node *node = list_first_entry(&block->node_list, gpir_node, list); in optimize_branches()
88 gpir_node *prev_block_last = in optimize_branches()
89 list_last_entry(&prev_block->node_list, gpir_node, list); in optimize_branches()
120 list_for_each_entry_rev(gpir_node, node, &block->node_list, list) { in optimize_not()
126 gpir_node *replace = NULL; in optimize_not()
166 list_for_each_entry_safe_rev(gpir_node, node, &block->node_list, list) { in dead_code_eliminate()
183 list_for_each_entry(gpir_node, node, &block->node_list, list) { in dead_code_eliminate()
192 list_for_each_entry_safe(gpir_node, node, &block->node_list, list) { in dead_code_eliminate()
Dinstr.c52 static gpir_node *gpir_instr_get_the_other_acc_node(gpir_instr *instr, int slot) in gpir_instr_get_the_other_acc_node()
62 static bool gpir_instr_check_acc_same_op(gpir_instr *instr, gpir_node *node, int slot) in gpir_instr_check_acc_same_op()
65 gpir_node *acc_node = gpir_instr_get_the_other_acc_node(instr, slot); in gpir_instr_check_acc_same_op()
75 static int gpir_instr_get_consume_slot(gpir_instr *instr, gpir_node *node) in gpir_instr_get_consume_slot()
78 gpir_node *acc_node = gpir_instr_get_the_other_acc_node(instr, node->sched.pos); in gpir_instr_get_consume_slot()
90 static bool gpir_instr_insert_alu_check(gpir_instr *instr, gpir_node *node) in gpir_instr_insert_alu_check()
159 static void gpir_instr_remove_alu(gpir_instr *instr, gpir_node *node) in gpir_instr_remove_alu()
184 static bool gpir_instr_insert_reg0_check(gpir_instr *instr, gpir_node *node) in gpir_instr_insert_reg0_check()
208 static void gpir_instr_remove_reg0(gpir_instr *instr, gpir_node *node) in gpir_instr_remove_reg0()
215 static bool gpir_instr_insert_reg1_check(gpir_instr *instr, gpir_node *node) in gpir_instr_insert_reg1_check()
[all …]
Dregalloc.c60 static void propagate_liveness_node(gpir_node *node, BITSET_WORD *live, in propagate_liveness_node()
91 list_for_each_entry_rev(gpir_node, node, &block->node_list, list) { in propagate_liveness_block()
105 list_for_each_entry(gpir_node, node, &block->node_list, list) { in calc_def_block()
218 list_for_each_entry_rev(gpir_node, node, &block->node_list, list) { in calc_interference()
347 list_for_each_entry(gpir_node, node, &block->node_list, list) { in assign_regs()
383 static gpir_node __physreg_live;
387 gpir_node *last_written[GPIR_VALUE_REG_NUM + GPIR_PHYSICAL_REG_NUM];
388 gpir_node *complex1_last_written[GPIR_VALUE_REG_NUM + GPIR_PHYSICAL_REG_NUM];
389 gpir_node *live[GPIR_VALUE_REG_NUM + GPIR_PHYSICAL_REG_NUM];
390 gpir_node *last_complex1;
[all …]
Dnir.c52 static void register_node_ssa(gpir_block *block, gpir_node *node, nir_ssa_def *ssa) in register_node_ssa()
88 static void register_node_reg(gpir_block *block, gpir_node *node, nir_reg_dest *nir_reg) in register_node_reg()
107 static void register_node(gpir_block *block, gpir_node *node, nir_dest *dest) in register_node()
115 static gpir_node *gpir_node_find(gpir_block *block, nir_src *src, in gpir_node_find()
119 gpir_node *pred = NULL; in gpir_node_find()
128 gpir_node *pred = block->comp->node_for_ssa[src->ssa->index]; in gpir_node_find()
180 gpir_node *child = gpir_node_find(block, &instr->src[0].src, in gpir_emit_alu()
205 gpir_node *child = gpir_node_find(block, &src->src, src->swizzle[0]); in gpir_emit_alu()
217 static gpir_node *gpir_create_load(gpir_block *block, nir_dest *dest, in gpir_create_load()
239 gpir_node *node = gpir_create_load(block, dest, gpir_op_load_uniform, in gpir_create_vector_load()
[all …]
Dcodegen.c31 static gpir_codegen_src gpir_get_alu_input(gpir_node *parent, gpir_node *child) in gpir_get_alu_input()
88 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_MUL0]; in gpir_codegen_mul0_slot()
148 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_MUL1]; in gpir_codegen_mul1_slot()
200 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_ADD0]; in gpir_codegen_add0_slot()
285 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_ADD1]; in gpir_codegen_add1_slot()
370 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_COMPLEX]; in gpir_codegen_complex_slot()
415 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_PASS]; in gpir_codegen_pass_slot()
486 static gpir_codegen_store_src gpir_get_store_input(gpir_node *node) in gpir_get_store_input()
505 gpir_node *node = instr->slots[GPIR_INSTR_SLOT_STORE0]; in gpir_codegen_store_slot()