Home
last modified time | relevance | path

Searched refs:BITSET_WORDS (Results 1 – 25 of 51) sorted by relevance

123

/third_party/mesa3d/src/util/
Dbitset.h46 #define BITSET_WORDS(bits) (((bits) + BITSET_WORDBITS - 1) / BITSET_WORDBITS) macro
47 #define BITSET_DECLARE(name, bits) BITSET_WORD name[BITSET_WORDS(bits)]
309 if (word >= BITSET_WORDS(size)) in __bitset_next_set()
345 if (word >= BITSET_WORDS(size)) { in __bitset_next_range()
352 if (word >= BITSET_WORDS(size)) { in __bitset_next_range()
366 if (word >= BITSET_WORDS(size)) { in __bitset_next_range()
373 if (word >= BITSET_WORDS(size)) { in __bitset_next_range()
415 for (unsigned i = 0; i < BITSET_WORDS(N); i++) \
457 for (unsigned i = 0; i < BITSET_WORDS(N); i++) \
465 for (unsigned i = 0; i < BITSET_WORDS(N); i++) \
[all …]
Dregister_allocate.c103 BITSET_WORDS(count)); in ra_alloc_reg_set()
212 for (i = 0; i < BITSET_WORDS(regs->count); i++) in ra_make_reg_conflicts_transitive()
232 class->regs = rzalloc_array(class, BITSET_WORD, BITSET_WORDS(regs->count)); in ra_alloc_reg_class()
323 for (int i = 0; i < BITSET_WORDS(regs->count); i++) { in ra_set_finalize()
409 blob_write_bytes(blob, reg->conflicts, BITSET_WORDS(regs->count) * in ra_set_serialize()
417 blob_write_bytes(blob, class->regs, BITSET_WORDS(regs->count) * in ra_set_serialize()
445 blob_copy_bytes(blob, reg->conflicts, BITSET_WORDS(reg_count) * in ra_set_deserialize()
460 class->regs = ralloc_array(class, BITSET_WORD, BITSET_WORDS(reg_count)); in ra_set_deserialize()
461 blob_copy_bytes(blob, class->regs, BITSET_WORDS(reg_count) * in ra_set_deserialize()
519 unsigned g_bitset_count = BITSET_WORDS(g->alloc); in ra_realloc_interference_graph()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_fs_dead_code_eliminate.cpp82 BITSET_WORD *live = rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(num_vars)); in dead_code_eliminate()
87 sizeof(BITSET_WORD) * BITSET_WORDS(num_vars)); 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()
51 sizeof(BITSET_WORD) * BITSET_WORDS(num_vars)); in dead_code_eliminate()
Dbrw_predicated_break.cpp59 BITSET_WORD has_continue[BITSET_WORDS(MAX_NESTING)];
/third_party/mesa3d/src/panfrost/midgard/
Dmir_promote_uniforms.c137 unsigned last = BITSET_LAST_BIT_SIZED(uses, BITSET_WORDS(MAX_UBO_QWORDS));
162 for (unsigned w = 0; w < BITSET_WORDS(MAX_UBO_QWORDS); ++w) in mir_promoteable_uniform_count()
241 BITSET_WORD *bset = calloc(BITSET_WORDS(ctx->temp_count), sizeof(BITSET_WORD)); in mir_special_indices()
Dmidgard_helper_invocations.c192 BITSET_WORD *deps = calloc(sizeof(BITSET_WORD), BITSET_WORDS(temp_count)); in mir_analyze_helper_requirements()
/third_party/mesa3d/src/compiler/glsl/
Dir_array_refcount.cpp60 bits = new BITSET_WORD[BITSET_WORDS(num_bits)]; in ir_array_refcount_entry()
61 memset(bits, 0, BITSET_WORDS(num_bits) * sizeof(bits[0])); in ir_array_refcount_entry()
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_int_to_float.c130 float_types = calloc(BITSET_WORDS(impl->ssa_alloc), in nir_lower_int_to_float_impl()
132 int_types = calloc(BITSET_WORDS(impl->ssa_alloc), in nir_lower_int_to_float_impl()
Dnir_liveness.c148 .bitset_words = BITSET_WORDS(impl->ssa_alloc), in nir_live_ssa_defs_impl()
247 const unsigned bitset_words = BITSET_WORDS(impl->ssa_alloc); in nir_get_live_ssa_defs()
Dnir_worklist.c39 BITSET_WORDS(num_blocks)); in nir_block_worklist_init()
Dnir_repair_ssa.c40 const unsigned num_words = BITSET_WORDS(state->impl->num_blocks); in prep_build_phi()
Dnir_opt_dce.c223 BITSET_WORDS(impl->ssa_alloc)); in nir_opt_dce_impl()
Dnir_lower_shader_calls.c94 .set = rzalloc_array(mem_ctx, BITSET_WORD, BITSET_WORDS(size)), in bitset_create()
326 const unsigned live_words = BITSET_WORDS(num_ssa_defs); in spill_ssa_defs_and_lower_shader_calls()
512 const unsigned block_words = BITSET_WORDS(impl->num_blocks); in spill_ssa_defs_and_lower_shader_calls()
Dnir_validate.c1615 BITSET_WORD, BITSET_WORDS(impl->reg_alloc)); in validate_function_impl()
1616 memset(state->regs_found, 0, BITSET_WORDS(impl->reg_alloc) * in validate_function_impl()
1624 BITSET_WORD, BITSET_WORDS(impl->ssa_alloc)); in validate_function_impl()
1625 memset(state->ssa_defs_found, 0, BITSET_WORDS(impl->ssa_alloc) * in validate_function_impl()
1795 BITSET_WORDS(func->impl->ssa_alloc)); in nir_validate_ssa_dominance()
1796 memset(state.ssa_defs_found, 0, BITSET_WORDS(func->impl->ssa_alloc) * in nir_validate_ssa_dominance()
Dnir_lower_vars_to_ssa.c771 BITSET_WORDS(state.impl->num_blocks)); in nir_lower_vars_to_ssa_impl()
778 BITSET_WORDS(state.impl->num_blocks) * sizeof(*store_blocks)); in nir_lower_vars_to_ssa_impl()
/third_party/mesa3d/src/gallium/drivers/lima/ir/pp/
Dliveness.c34 for (int i = 0; i < BITSET_WORDS(comp->reg_num); i++) in ppir_liveness_propagate()
47 for (int i = 0; i < BITSET_WORDS(comp->reg_num); i++) in ppir_liveness_set_equal()
/third_party/mesa3d/src/asahi/compiler/
Dagx_dce.c31 BITSET_WORD *seen = calloc(BITSET_WORDS(ctx->alloc), sizeof(BITSET_WORD)); in agx_dce()
Dagx_register_allocate.c85 for (unsigned i = 0; i < BITSET_WORDS(max); ++i) in agx_assign_regs()
99 for (unsigned i = 0; i < BITSET_WORDS(AGX_NUM_REGS); ++i) in agx_ra_assign_local()
Dagx_liveness.c99 unsigned words = BITSET_WORDS(ctx->alloc); in agx_compute_liveness()
Dagx_optimizer.c183 BITSET_WORD *multiple = calloc(BITSET_WORDS(ctx->alloc), sizeof(*multiple)); in agx_optimizer_backward()
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_batch.c207 rzalloc_array(NULL, BITSET_WORD, BITSET_WORDS(batch->exec_array_size)); in iris_init_batch()
268 BITSET_WORDS(old_size), in ensure_exec_obj_space()
269 BITSET_WORDS(batch->exec_array_size)); in ensure_exec_obj_space()
425 sizeof(BITSET_WORD) * BITSET_WORDS(batch->exec_array_size)); in iris_batch_reset()
/third_party/mesa3d/src/panfrost/bifrost/
Dbi_helper_invocations.c231 BITSET_WORD *deps = calloc(sizeof(BITSET_WORD), BITSET_WORDS(temp_count)); in bi_analyze_helper_requirements()
/third_party/mesa3d/src/freedreno/ir3/
Dir3_liveness.c141 unsigned bitset_words = BITSET_WORDS(live->definitions_count); in ir3_calc_liveness()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_compiler_nir_liveness.c165 state.bitset_words = BITSET_WORDS(state.num_defs); in etna_live_defs()

123