Home
last modified time | relevance | path

Searched refs:BITSET_WORD (Results 1 – 25 of 95) sorted by relevance

1234

/third_party/mesa3d/src/util/
Dbitset.h41 #define BITSET_WORD unsigned int macro
42 #define BITSET_WORDBITS (sizeof (BITSET_WORD) * 8)
47 #define BITSET_DECLARE(name, bits) BITSET_WORD name[BITSET_WORDS(bits)]
72 __bitset_and(BITSET_WORD *r, const BITSET_WORD *x, const BITSET_WORD *y, unsigned n) in __bitset_and()
79 __bitset_or(BITSET_WORD *r, const BITSET_WORD *x, const BITSET_WORD *y, unsigned n) in __bitset_or()
86 __bitset_not(BITSET_WORD *x, unsigned n) in __bitset_not()
110 __bitset_rotate_right(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_rotate_right()
125 __bitset_rotate_left(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_rotate_left()
140 __bitset_shr(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_shr()
164 __bitset_shl(BITSET_WORD *x, unsigned amount, unsigned n) in __bitset_shl()
[all …]
Dregister_allocate_internal.h42 BITSET_WORD *conflicts;
64 BITSET_WORD *regs;
133 BITSET_WORD *adjacency;
147 BITSET_WORD *in_stack;
150 BITSET_WORD *reg_assigned;
153 BITSET_WORD *pq_test;
Dregister_allocate.c101 regs->regs[i].conflicts = rzalloc_array(regs->regs, BITSET_WORD, in ra_alloc_reg_set()
231 class->regs = rzalloc_array(class, BITSET_WORD, BITSET_WORDS(regs->count)); in ra_alloc_reg_class()
409 sizeof(BITSET_WORD)); in ra_set_serialize()
417 sizeof(BITSET_WORD)); in ra_set_serialize()
445 sizeof(BITSET_WORD)); in ra_set_deserialize()
459 class->regs = ralloc_array(class, BITSET_WORD, BITSET_WORDS(reg_count)); in ra_set_deserialize()
461 sizeof(BITSET_WORD)); in ra_set_deserialize()
549 g->adjacency = rerzalloc(g, g->adjacency, BITSET_WORD, in ra_realloc_interference_graph()
567 g->tmp.in_stack = reralloc(g, g->tmp.in_stack, BITSET_WORD, bitset_count); in ra_realloc_interference_graph()
569 g->tmp.reg_assigned = reralloc(g, g->tmp.reg_assigned, BITSET_WORD, in ra_realloc_interference_graph()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_live_variables.h49 BITSET_WORD *def;
54 BITSET_WORD *use;
57 BITSET_WORD *livein;
60 BITSET_WORD *liveout;
66 BITSET_WORD *defin;
72 BITSET_WORD *defout;
74 BITSET_WORD flag_def[1];
75 BITSET_WORD flag_use[1];
76 BITSET_WORD flag_livein[1];
77 BITSET_WORD flag_liveout[1];
Dbrw_vec4_live_variables.h48 BITSET_WORD *def;
53 BITSET_WORD *use;
56 BITSET_WORD *livein;
59 BITSET_WORD *liveout;
61 BITSET_WORD flag_def[1];
62 BITSET_WORD flag_use[1];
63 BITSET_WORD flag_livein[1];
64 BITSET_WORD flag_liveout[1];
Dbrw_fs_live_variables.cpp170 BITSET_WORD new_liveout = (child_bd->livein[i] & in compute_live_variables()
177 BITSET_WORD new_liveout = (child_bd->flag_livein[0] & in compute_live_variables()
187 BITSET_WORD new_livein = (bd->use[i] | in compute_live_variables()
195 BITSET_WORD new_livein = (bd->flag_use[0] | in compute_live_variables()
218 const BITSET_WORD new_def = bd->defout[i] & ~child_bd->defin[i]; in compute_live_variables()
239 BITSET_WORD livedefin = bd->livein[w] & bd->defin[w]; in compute_start_end()
240 BITSET_WORD livedefout = bd->liveout[w] & bd->defout[w]; in compute_start_end()
241 BITSET_WORD livedefinout = livedefin | livedefout; in compute_start_end()
296 block_data[i].def = rzalloc_array(mem_ctx, BITSET_WORD, bitset_words); in fs_live_variables()
297 block_data[i].use = rzalloc_array(mem_ctx, BITSET_WORD, bitset_words); in fs_live_variables()
[all …]
Dbrw_fs_dead_code_eliminate.cpp44 BITSET_WORD *flag_live) in can_eliminate()
82 BITSET_WORD *live = rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); in dead_code_eliminate()
83 BITSET_WORD *flag_live = rzalloc_array(NULL, BITSET_WORD, 1); in dead_code_eliminate()
87 sizeof(BITSET_WORD) * BITSET_WORDS(num_vars)); in dead_code_eliminate()
89 sizeof(BITSET_WORD)); in dead_code_eliminate()
Dbrw_vec4_dead_code_eliminate.cpp46 BITSET_WORD *live = rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); in dead_code_eliminate()
47 BITSET_WORD *flag_live = rzalloc_array(NULL, BITSET_WORD, 1); in dead_code_eliminate()
51 sizeof(BITSET_WORD) * BITSET_WORDS(num_vars)); in dead_code_eliminate()
53 sizeof(BITSET_WORD)); in dead_code_eliminate()
Dbrw_vec4_live_variables.cpp158 BITSET_WORD new_liveout = (child_bd->livein[i] & in compute_live_variables()
165 BITSET_WORD new_liveout = (child_bd->flag_livein[0] & in compute_live_variables()
175 BITSET_WORD new_livein = (bd->use[i] | in compute_live_variables()
183 BITSET_WORD new_livein = (bd->flag_use[0] | in compute_live_variables()
238 block_data[i].def = rzalloc_array(mem_ctx, BITSET_WORD, bitset_words); in vec4_live_variables()
239 block_data[i].use = rzalloc_array(mem_ctx, BITSET_WORD, bitset_words); in vec4_live_variables()
240 block_data[i].livein = rzalloc_array(mem_ctx, BITSET_WORD, bitset_words); in vec4_live_variables()
241 block_data[i].liveout = rzalloc_array(mem_ctx, BITSET_WORD, bitset_words); in vec4_live_variables()
Dbrw_fs_copy_propagation.cpp65 BITSET_WORD *livein;
72 BITSET_WORD *liveout;
79 BITSET_WORD *copy;
85 BITSET_WORD *kill;
91 BITSET_WORD *undef;
138 bd[block->num].livein = rzalloc_array(bd, BITSET_WORD, bitset_words); in fs_copy_prop_dataflow()
139 bd[block->num].liveout = rzalloc_array(bd, BITSET_WORD, bitset_words); in fs_copy_prop_dataflow()
140 bd[block->num].copy = rzalloc_array(bd, BITSET_WORD, bitset_words); in fs_copy_prop_dataflow()
141 bd[block->num].kill = rzalloc_array(bd, BITSET_WORD, bitset_words); in fs_copy_prop_dataflow()
142 bd[block->num].undef = rzalloc_array(bd, BITSET_WORD, bitset_words); in fs_copy_prop_dataflow()
[all …]
/third_party/mesa3d/src/compiler/nir/
Dnir_liveness.c49 BITSET_WORD *tmp_live;
61 block->live_in = reralloc(block, block->live_in, BITSET_WORD, in init_liveness_block()
63 memset(block->live_in, 0, state->bitset_words * sizeof(BITSET_WORD)); in init_liveness_block()
65 block->live_out = reralloc(block, block->live_out, BITSET_WORD, in init_liveness_block()
67 memset(block->live_out, 0, state->bitset_words * sizeof(BITSET_WORD)); in init_liveness_block()
75 BITSET_WORD *live = void_live; in set_src_live()
91 BITSET_WORD *live = void_live; in set_ssa_def_dead()
111 BITSET_WORD *live = state->tmp_live; in propagate_across_edge()
136 BITSET_WORD progress = 0; in propagate_across_edge()
150 state.tmp_live = rzalloc_array(impl, BITSET_WORD, state.bitset_words), in nir_live_ssa_defs_impl()
[all …]
Dnir_opt_dce.c31 is_dest_live(const nir_dest *dest, BITSET_WORD *defs_live) in is_dest_live()
37 mark_src_live(const nir_src *src, BITSET_WORD *defs_live) in mark_src_live()
55 is_live(BITSET_WORD *defs_live, nir_instr *instr) in is_live()
110 dce_block(nir_block *block, BITSET_WORD *defs_live, struct loop_state *loop) in dce_block()
148 dce_cf_list(struct exec_list *cf_list, BITSET_WORD *defs_live, in dce_cf_list()
222 BITSET_WORD *defs_live = rzalloc_array(NULL, BITSET_WORD, in nir_opt_dce_impl()
Dnir_gather_ssa_types.c28 set_type(unsigned idx, nir_alu_type type, BITSET_WORD *float_types, in set_type()
29 BITSET_WORD *int_types, bool *progress) in set_type()
55 BITSET_WORD *types, bool *progress) in copy_type()
72 copy_types(nir_src src, nir_dest *dest, BITSET_WORD *float_types, in copy_types()
73 BITSET_WORD *int_types, bool *progress) in copy_types()
95 BITSET_WORD *float_types, in nir_gather_ssa_types()
96 BITSET_WORD *int_types) in nir_gather_ssa_types()
Dnir_lower_int_to_float.c31 ASSERTED BITSET_WORD *int_types = arg; in assert_ssa_def_is_not_int()
155 BITSET_WORD *float_types = NULL, *int_types = NULL; in nir_lower_int_to_float_impl()
162 sizeof(BITSET_WORD)); in nir_lower_int_to_float_impl()
164 sizeof(BITSET_WORD)); in nir_lower_int_to_float_impl()
/third_party/mesa3d/src/asahi/compiler/
Dagx_liveness.c37 agx_liveness_ins_update(BITSET_WORD *live, agx_instr *I) in agx_liveness_ins_update()
76 block->live_in = rzalloc_array(block, BITSET_WORD, words); in agx_compute_liveness()
77 block->live_out = rzalloc_array(block, BITSET_WORD, words); in agx_compute_liveness()
88 memcpy(blk->live_in, blk->live_out, words * sizeof(BITSET_WORD)); in agx_compute_liveness()
109 BITSET_WORD *live = ralloc_array(blk, BITSET_WORD, words); in agx_compute_liveness()
110 memcpy(live, blk->live_in, words * sizeof(BITSET_WORD)); in agx_compute_liveness()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_liveness.c40 BITSET_WORD *tmp_live, unsigned bitset_words) in compute_block_liveness()
43 bitset_words * sizeof(BITSET_WORD)); in compute_block_liveness()
75 bitset_words * sizeof(BITSET_WORD)); in compute_block_liveness()
142 BITSET_WORD *tmp_live = ralloc_array(live, BITSET_WORD, bitset_words); in ir3_calc_liveness()
143 live->live_in = ralloc_array(live, BITSET_WORD *, block_count); in ir3_calc_liveness()
144 live->live_out = ralloc_array(live, BITSET_WORD *, block_count); in ir3_calc_liveness()
149 rzalloc_array(live, BITSET_WORD, bitset_words); in ir3_calc_liveness()
151 rzalloc_array(live, BITSET_WORD, bitset_words); in ir3_calc_liveness()
/third_party/mesa3d/src/broadcom/compiler/
Dvir_live_variables.c216 BITSET_WORD new_live_out = (succ->live_in[i] & in vir_live_variables_dataflow()
227 BITSET_WORD new_live_in = (block->use[i] | in vir_live_variables_dataflow()
255 BITSET_WORD new_def = (block->defout[i] & in vir_live_variables_defin_defout_dataflow()
324 block->def = rzalloc_array(c, BITSET_WORD, bitset_words); in vir_calculate_live_intervals()
325 block->defin = rzalloc_array(c, BITSET_WORD, bitset_words); in vir_calculate_live_intervals()
326 block->defout = rzalloc_array(c, BITSET_WORD, bitset_words); in vir_calculate_live_intervals()
327 block->use = rzalloc_array(c, BITSET_WORD, bitset_words); in vir_calculate_live_intervals()
328 block->live_in = rzalloc_array(c, BITSET_WORD, bitset_words); in vir_calculate_live_intervals()
329 block->live_out = rzalloc_array(c, BITSET_WORD, bitset_words); in vir_calculate_live_intervals()
/third_party/mesa3d/src/panfrost/midgard/
Dmir_promote_uniforms.c134 BITSET_WORD *uses = res->blocks[i].uses;
135 BITSET_WORD *push = res->blocks[i].pushed;
160 BITSET_WORD *uses = analysis->blocks[i].uses; in mir_promoteable_uniform_count()
237 static BITSET_WORD *
241 BITSET_WORD *bset = calloc(BITSET_WORDS(ctx->temp_count), sizeof(BITSET_WORD)); in mir_special_indices()
284 BITSET_WORD *special = mir_special_indices(ctx); in midgard_promote_uniforms()
Dmidgard_schedule.c75 BITSET_WORD *dependents = instructions[*parent]->dependents; in add_dependency()
114 calloc(BITSET_WORDS(count), sizeof(BITSET_WORD)); in mir_create_dependency_graph()
156 BITSET_WORD *dependents = instructions[prev]->dependents; in mir_create_dependency_graph()
189 BITSET_WORD *dependents = instructions[count - 1]->dependents; in mir_create_dependency_graph()
296 mir_initialize_worklist(BITSET_WORD *worklist, midgard_instruction **instructions, unsigned count) in mir_initialize_worklist()
310 BITSET_WORD *worklist, unsigned count, in mir_update_worklist()
658 BITSET_WORD *worklist, unsigned count, in mir_choose_instruction()
796 BITSET_WORD *worklist, unsigned count, in mir_choose_bundle()
844 BITSET_WORD *worklist, unsigned len, in mir_choose_alu()
935 BITSET_WORD *worklist, unsigned count, in mir_schedule_comparison()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/ir/gp/
Dregalloc.c31 BITSET_WORD *conflicts;
46 BITSET_WORD *live;
60 static void propagate_liveness_node(gpir_node *node, BITSET_WORD *live, in propagate_liveness_node()
89 memcpy(ctx->live, block->live_out, ctx->bitset_words * sizeof(BITSET_WORD)); in propagate_liveness_block()
137 BITSET_WORD new = block->def_out[j] & ~succ->def_out[j]; in calc_liveness()
173 BITSET_WORD *live_regs) in add_all_interferences()
183 BITSET_WORD *live_reg) in print_liveness()
604 ctx.live = ralloc_array(ctx.mem_ctx, BITSET_WORD, ctx.bitset_words); in gpir_regalloc_prog()
611 ctx.registers[i].conflicts = rzalloc_array(ctx.mem_ctx, BITSET_WORD, in gpir_regalloc_prog()
617 block->live_out = rzalloc_array(ctx.mem_ctx, BITSET_WORD, ctx.bitset_words); in gpir_regalloc_prog()
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir_liveness.c57 block->live_in = reralloc(block, block->live_in, BITSET_WORD, in init_liveness_block()
59 memset(block->live_in, 0, state->bitset_words * sizeof(BITSET_WORD)); in init_liveness_block()
61 block->live_out = reralloc(block, block->live_out, BITSET_WORD, in init_liveness_block()
63 memset(block->live_out, 0, state->bitset_words * sizeof(BITSET_WORD)); in init_liveness_block()
112 BITSET_WORD progress = 0; in propagate_across_edge()
185 state.bitset_words * sizeof(BITSET_WORD)); in etna_live_defs()
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_qir_live_variables.c235 BITSET_WORD new_live_out = (succ->live_in[i] & in qir_live_variables_dataflow()
246 BITSET_WORD new_live_in = (block->use[i] | in qir_live_variables_dataflow()
304 block->def = rzalloc_array(c, BITSET_WORD, bitset_words); in qir_calculate_live_intervals()
305 block->use = rzalloc_array(c, BITSET_WORD, bitset_words); in qir_calculate_live_intervals()
306 block->live_in = rzalloc_array(c, BITSET_WORD, bitset_words); in qir_calculate_live_intervals()
307 block->live_out = rzalloc_array(c, BITSET_WORD, bitset_words); in qir_calculate_live_intervals()
/third_party/mesa3d/src/vulkan/runtime/
Dvk_graphics_state.c29 clear_all_dynamic_state(BITSET_WORD *dynamic) in clear_all_dynamic_state()
37 get_dynamic_state_groups(BITSET_WORD *dynamic, in get_dynamic_state_groups()
102 fully_dynamic_state_groups(const BITSET_WORD *dynamic) in fully_dynamic_state_groups()
132 validate_dynamic_state_groups(const BITSET_WORD *dynamic, in validate_dynamic_state_groups()
145 vk_get_dynamic_graphics_states(BITSET_WORD *dynamic, in vk_get_dynamic_graphics_states()
220 const BITSET_WORD *dynamic, in vk_vertex_input_state_init()
276 const BITSET_WORD *needed, in vk_dynamic_graphics_state_init_vi()
294 const BITSET_WORD *dynamic, in vk_input_assembly_state_init()
309 const BITSET_WORD *needed, in vk_dynamic_graphics_state_init_ia()
317 const BITSET_WORD *dynamic, in vk_tessellation_state_init()
[all …]
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/
Dliveness.c31 BITSET_WORD *dest_set, BITSET_WORD *src_set, in ppir_liveness_propagate()
44 BITSET_WORD *set1, BITSET_WORD *set2, in ppir_liveness_set_equal()
/third_party/mesa3d/src/panfrost/bifrost/
Dbi_helper_invocations.c196 bi_helper_block_update(BITSET_WORD *deps, bi_block *block) in bi_helper_block_update()
229 BITSET_WORD *deps = calloc(sizeof(BITSET_WORD), BITSET_WORDS(temp_count)); in bi_analyze_helper_requirements()

1234