| /xsrc/external/mit/MesaLib/dist/src/compiler/nir/ |
| nir_control_flow_private.h | 38 void nir_handle_add_jump(nir_block *block); 39 void nir_handle_remove_jump(nir_block *block, nir_jump_type type);
|
| nir_dominance.c | 37 init_block(nir_block *block, nir_function_impl *impl) 39 if (block == nir_start_block(impl)) 40 block->imm_dom = block; 42 block->imm_dom = NULL; 43 block->num_dom_children = 0; 46 block->dom_pre_index = UINT32_MAX; 47 block->dom_post_index = 0; 49 _mesa_set_clear(block->dom_frontier, NULL); 73 calc_dominance(nir_block *block) [all...] |
| nir_control_flow.c | 37 * 2. Each if-statement and loop must have one basic block before it and one 40 * 4. If a basic block has a jump instruction, there must be only one and it 41 * must be at the end of the block. 49 block_add_pred(nir_block *block, nir_block *pred) 51 _mesa_set_add(block->predecessors, pred); 55 block_remove_pred(nir_block *block, nir_block *pred) 57 struct set_entry *entry = _mesa_set_search(block->predecessors, pred); 61 _mesa_set_remove(block->predecessors, entry); 91 unlink_block_successors(nir_block *block) 93 if (block->successors[1] != NULL 589 nir_block *block = nir_cf_node_as_block(node); local 626 nir_block *block = nir_cf_node_as_block(node); local 737 nir_block *block = nir_cf_node_as_block(node); local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/ |
| nir_control_flow_private.h | 38 void nir_handle_add_jump(nir_block *block); 39 void nir_handle_remove_jump(nir_block *block, nir_jump_type type);
|
| nir_dominance.c | 37 init_block(nir_block *block, nir_function_impl *impl) 39 if (block == nir_start_block(impl)) 40 block->imm_dom = block; 42 block->imm_dom = NULL; 43 block->num_dom_children = 0; 45 set_foreach(block->dom_frontier, entry) { 46 _mesa_set_remove(block->dom_frontier, entry); 71 calc_dominance(nir_block *block) 74 set_foreach(block->predecessors, entry) [all...] |
| nir_opt_move_comparisons.c | 31 * It only moves instructions within a single basic block; cross-block 54 move_comparison_source(nir_src *src, nir_block *block, nir_instr *before) 61 if (src_instr->block == block && 70 exec_list_push_tail(&block->instr_list, &src_instr->node); 84 if (move_comparison_source(src, instr->block, instr)) 91 move_comparisons(nir_block *block) 97 * If the instruction's source is a comparison from the same block, 99 * the block as well. However, as we walk backwards, we'll find th [all...] |
| nir_opt_move_load_ubo.c | 31 * the same basic block. 34 move_load_ubo_source(nir_src *src, nir_block *block, nir_instr *before) 41 if (src_instr->block == block && 50 exec_list_push_tail(&block->instr_list, &src_instr->node); 63 if (move_load_ubo_source(src, instr->block, instr)) 70 move_load_ubo(nir_block *block) 74 nir_if *iff = nir_block_get_following_if(block); 76 progress |= move_load_ubo_source(&iff->condition, block, NULL); 79 nir_foreach_instr_reverse(instr, block) { [all...] |
| nir_control_flow.c | 37 * 2. Each if-statement and loop must have one basic block before it and one 40 * 4. If a basic block has a jump instruction, there must be only one and it 41 * must be at the end of the block. 49 block_add_pred(nir_block *block, nir_block *pred) 51 _mesa_set_add(block->predecessors, pred); 55 block_remove_pred(nir_block *block, nir_block *pred) 57 struct set_entry *entry = _mesa_set_search(block->predecessors, pred); 61 _mesa_set_remove(block->predecessors, entry); 91 unlink_block_successors(nir_block *block) 93 if (block->successors[1] != NULL 579 nir_block *block = nir_cf_node_as_block(node); local 616 nir_block *block = nir_cf_node_as_block(node); local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/ |
| ir3_dominance.c | 54 calc_dominance(struct ir3_block *block) 57 for (unsigned i = 0; i < block->predecessors_count; i++) { 58 struct ir3_block *pred = block->predecessors[i]; 68 if (block->imm_dom != new_idom) { 69 block->imm_dom = new_idom; 77 calc_dfs_indices(struct ir3_block *block, unsigned index) 79 block->dom_pre_index = index++; 80 for (unsigned i = 0; i < block->dom_children_count; i++) 81 index = calc_dfs_indices(block->dom_children[i], index); 82 block->dom_post_index = index++ [all...] |
| ir3_remove_unreachable.c | 33 delete_block(struct ir3 *ir, struct ir3_block *block) 36 foreach_instr (instr, &block->instr_list) { 43 /* The end block can be legitimately unreachable if the shader only exits via 45 * block around but delete all the other instructions and make the end not 50 foreach_instr_safe (instr, &block->instr_list) { 59 struct ir3_block *succ = block->successors[i]; 63 unsigned pred_idx = ir3_block_get_pred_index(succ, block); 86 struct ir3_block *succ = block->physical_successors[i]; 90 ir3_block_remove_physical_predecessor(succ, block); 93 if (block->physical_predecessors_count != 0) [all...] |
| ir3_legalize.c | 67 /* We want to evaluate each block from the position of any other 68 * predecessor block, in order that the flags set are the union of 73 * that we can't simply recursively process each predecessor block 74 * before legalizing the current block. 77 * results converge. If the output state of a given block changes 83 legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block) 85 struct ir3_legalize_block_data *bd = block->data; 100 for (unsigned i = 0; i < block->predecessors_count; i++) { 101 struct ir3_block *predecessor = block->predecessors[i]; 116 foreach_instr (n, &block->instr_list) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/vc4/ |
| vc4_qir_emit_uniform_stream_resets.c | 27 * Adds updates to the uniform stream address at the start of each basic block 31 * have performed optimization know how many uniforms are used in each block. 39 block_reads_any_uniform(struct qblock *block) 41 qir_for_each_inst(inst, block) { 54 qir_for_each_block(block, c) { 55 if (block != qir_entry_block(c) && 56 (block_reads_any_uniform(block) || 57 block == qir_exit_block(c))) { 75 /* Pushes to the top of the block, so in reverse 78 list_add(&add->link, &block->instructions) [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/ |
| vc4_qir_emit_uniform_stream_resets.c | 27 * Adds updates to the uniform stream address at the start of each basic block 31 * have performed optimization know how many uniforms are used in each block. 39 block_reads_any_uniform(struct qblock *block) 41 qir_for_each_inst(inst, block) { 54 qir_for_each_block(block, c) { 55 if (block != qir_entry_block(c) && 56 (block_reads_any_uniform(block) || 57 block == qir_exit_block(c))) { 75 /* Pushes to the top of the block, so in reverse 78 list_add(&add->link, &block->instructions) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/ |
| r600_perfcounter.c | 33 /* Max counters per HW block */ 40 struct r600_perfcounter_block *block = pc->blocks; local 44 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { 45 unsigned total = block->num_groups * block->num_selectors; 49 return block; 53 *base_gid += block->num_groups; 63 struct r600_perfcounter_block *block = pc->blocks; local 65 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { 66 if (*index < block->num_groups 76 struct r600_perfcounter_block *block; member in struct:r600_pc_group 140 struct r600_perfcounter_block *block = group->block; local 168 struct r600_perfcounter_block *block = group->block; local 307 struct r600_perfcounter_block *block; local 363 struct r600_perfcounter_block *block = group->block; local 394 struct r600_perfcounter_block *block; local 519 struct r600_perfcounter_block *block; local 561 struct r600_perfcounter_block *block; local 608 struct r600_perfcounter_block *block = &pc->blocks[pc->num_blocks]; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r600/ |
| r600_perfcounter.c | 33 /* Max counters per HW block */ 40 struct r600_perfcounter_block *block = pc->blocks; local 44 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { 45 unsigned total = block->num_groups * block->num_selectors; 49 return block; 53 *base_gid += block->num_groups; 63 struct r600_perfcounter_block *block = pc->blocks; local 65 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { 66 if (*index < block->num_groups 76 struct r600_perfcounter_block *block; member in struct:r600_pc_group 140 struct r600_perfcounter_block *block = group->block; local 168 struct r600_perfcounter_block *block = group->block; local 307 struct r600_perfcounter_block *block; local 363 struct r600_perfcounter_block *block = group->block; local 394 struct r600_perfcounter_block *block; local 519 struct r600_perfcounter_block *block; local 561 struct r600_perfcounter_block *block; local 608 struct r600_perfcounter_block *block = &pc->blocks[pc->num_blocks]; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/mesa/main/ |
| texcompress_etc_tmp.h | 84 TAG(etc1_parse_block)(struct TAG(etc1_block) *block, const UINT8_TYPE *src) 88 block->base_colors[0][0] = (int) TAG(etc1_base_color_diff_hi)(src[0]); 89 block->base_colors[1][0] = (int) TAG(etc1_base_color_diff_lo)(src[0]); 90 block->base_colors[0][1] = (int) TAG(etc1_base_color_diff_hi)(src[1]); 91 block->base_colors[1][1] = (int) TAG(etc1_base_color_diff_lo)(src[1]); 92 block->base_colors[0][2] = (int) TAG(etc1_base_color_diff_hi)(src[2]); 93 block->base_colors[1][2] = (int) TAG(etc1_base_color_diff_lo)(src[2]); 97 block->base_colors[0][0] = (int) TAG(etc1_base_color_ind_hi)(src[0]); 98 block->base_colors[1][0] = (int) TAG(etc1_base_color_ind_lo)(src[0]); 99 block->base_colors[0][1] = (int) TAG(etc1_base_color_ind_hi)(src[1]) 147 struct etc1_block block; local [all...] |
| texcompress_etc.c | 122 * The size of the source data must be a multiple of the ETC1 block size, 128 * found in the upper left part of the block(s), and the rest of the 130 * placed in the upper half of a 4x4 block, and the lower half of the 131 * pixels in the block will not be accessed. 308 etc2_get_pixel_index(const struct etc2_block *block, int x, int y) 311 int idx = (block->pixel_indices[1] >> bit) & 0x7; 337 etc2_rgb8_parse_block(struct etc2_block *block, 350 block->is_ind_mode = false; 351 block->is_diff_mode = false; 352 block->is_t_mode = false 680 struct etc2_block block; local 728 struct etc2_block block; local 779 struct etc2_block block; local 818 struct etc2_block block; local 865 struct etc2_block block; local 902 struct etc2_block block; local 952 struct etc2_block block; local 990 struct etc2_block block; local 1037 struct etc2_block block; local 1074 struct etc2_block block; local 1274 struct etc1_block block; local 1294 struct etc2_block block; local 1315 struct etc2_block block; local 1336 struct etc2_block block; local 1355 struct etc2_block block; local 1374 struct etc2_block block; local 1393 struct etc2_block block; local 1417 struct etc2_block block; local 1436 struct etc2_block block; local 1461 struct etc2_block block; local 1482 struct etc2_block block; local [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/ |
| texcompress_etc_tmp.h | 84 TAG(etc1_parse_block)(struct TAG(etc1_block) *block, const UINT8_TYPE *src) 88 block->base_colors[0][0] = (int) TAG(etc1_base_color_diff_hi)(src[0]); 89 block->base_colors[1][0] = (int) TAG(etc1_base_color_diff_lo)(src[0]); 90 block->base_colors[0][1] = (int) TAG(etc1_base_color_diff_hi)(src[1]); 91 block->base_colors[1][1] = (int) TAG(etc1_base_color_diff_lo)(src[1]); 92 block->base_colors[0][2] = (int) TAG(etc1_base_color_diff_hi)(src[2]); 93 block->base_colors[1][2] = (int) TAG(etc1_base_color_diff_lo)(src[2]); 97 block->base_colors[0][0] = (int) TAG(etc1_base_color_ind_hi)(src[0]); 98 block->base_colors[1][0] = (int) TAG(etc1_base_color_ind_lo)(src[0]); 99 block->base_colors[0][1] = (int) TAG(etc1_base_color_ind_hi)(src[1]) 147 struct etc1_block block; local [all...] |
| texcompress_etc.c | 122 * The size of the source data must be a multiple of the ETC1 block size, 128 * found in the upper left part of the block(s), and the rest of the 130 * placed in the upper half of a 4x4 block, and the lower half of the 131 * pixels in the block will not be accessed. 308 etc2_get_pixel_index(const struct etc2_block *block, int x, int y) 311 int idx = (block->pixel_indices[1] >> bit) & 0x7; 337 etc2_rgb8_parse_block(struct etc2_block *block, 350 block->is_ind_mode = false; 351 block->is_diff_mode = false; 352 block->is_t_mode = false 678 struct etc2_block block; local 726 struct etc2_block block; local 777 struct etc2_block block; local 816 struct etc2_block block; local 863 struct etc2_block block; local 900 struct etc2_block block; local 950 struct etc2_block block; local 988 struct etc2_block block; local 1035 struct etc2_block block; local 1072 struct etc2_block block; local 1272 struct etc1_block block; local 1292 struct etc2_block block; local 1313 struct etc2_block block; local 1334 struct etc2_block block; local 1353 struct etc2_block block; local 1372 struct etc2_block block; local 1391 struct etc2_block block; local 1415 struct etc2_block block; local 1434 struct etc2_block block; local 1459 struct etc2_block block; local 1480 struct etc2_block block; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/amd/compiler/ |
| aco_ssa_elimination.cpp | 40 /* The outer vectors should be indexed by block index. The inner vectors store phi information 41 * for each block. */ 58 for (Block& block : ctx.program->blocks) { 59 for (aco_ptr<Instruction>& phi : block.instructions) { 72 phi->opcode == aco_opcode::p_phi ? block.logical_preds : block.linear_preds; 92 Block& block = ctx.program->blocks[block_idx]; local 93 unsigned idx = block.instructions.size() - 1 120 Block& block = ctx.program->blocks[block_idx]; local 367 Block* block = &ctx.program->blocks[i]; local [all...] |
| /xsrc/external/mit/MesaLib/dist/src/gallium/frontends/clover/util/ |
| factor.hpp | 65 std::pair<T, std::vector<T>> block, 74 std::move(block), d + 1, 0); 80 block.first *= f; 81 block.second[d] *= f; 83 if (block.first <= limits.first && 84 block.second[d] <= limits.second[d] && 85 grid[d] % block.second[d] == 0) { 87 return block; 91 while (block.second[d] % f == 0) { 92 block.second[d] /= f [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/clover/util/ |
| factor.hpp | 65 std::pair<T, std::vector<T>> block, 74 std::move(block), d + 1, 0); 80 block.first *= f; 81 block.second[d] *= f; 83 if (block.first <= limits.first && 84 block.second[d] <= limits.second[d] && 85 grid[d] % block.second[d] == 0) { 87 return block; 91 while (block.second[d] % f == 0) { 92 block.second[d] /= f [all...] |
| /xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/ |
| brw_cfg.cpp | 40 bblock_t *block = link->block; local 43 return block; 47 link(void *mem_ctx, bblock_t *block) 49 bblock_link *l = new(mem_ctx) bblock_link(block); 69 bblock_t::is_predecessor_of(const bblock_t *block) const 71 foreach_list_typed_safe (bblock_link, parent, link, &block->parents) { 72 if (parent->block == this) { 81 bblock_t::is_successor_of(const bblock_t *block) const 83 foreach_list_typed_safe (bblock_link, child, link, &block->children) 447 bblock_t *block = new(mem_ctx) bblock_t(this); local 572 bblock_t *block = this->blocks[b]; local [all...] |
| brw_cfg.h | 39 bblock_link(bblock_t *block) 40 : block(block) 46 struct bblock_t *block; member in struct:bblock_link 58 bool is_predecessor_of(const bblock_t *block) const; 59 bool is_successor_of(const bblock_t *block) const; 97 bblock_start(struct bblock_t *block) 99 return (struct backend_instruction *)exec_list_get_head(&block->instructions); 103 bblock_start_const(const struct bblock_t *block) 105 return (const struct backend_instruction *)exec_list_get_head_const(&block->instructions) [all...] |
| /xsrc/external/mit/MesaLib/dist/src/intel/compiler/ |
| brw_cfg.cpp | 43 bblock_t *block = link->block; local 46 return block; 50 link(void *mem_ctx, bblock_t *block, enum bblock_link_kind kind) 52 bblock_link *l = new(mem_ctx) bblock_link(block, kind); 57 push_stack(exec_list *list, void *mem_ctx, bblock_t *block) 62 list->push_tail(link(mem_ctx, block, bblock_link_logical)); 82 bblock_t::is_predecessor_of(const bblock_t *block, 85 foreach_list_typed_safe (bblock_link, parent, link, &block->parents) { 86 if (parent->block == this && parent->kind <= kind) 475 bblock_t *block = new(mem_ctx) bblock_t(this); local 610 bblock_t *block = this->blocks[b]; local [all...] |