Lines Matching defs:block

113 agx_block_add_successor(agx_block *block, agx_block *successor)
115 assert(block != NULL && successor != NULL);
118 if (block->unconditional_jumps)
121 for (unsigned i = 0; i < ARRAY_SIZE(block->successors); ++i) {
122 if (block->successors[i]) {
123 if (block->successors[i] == successor)
129 block->successors[i] = successor;
130 util_dynarray_append(&successor->predecessors, agx_block *, block);
416 uint32_t block = kernel_input ? 0 : nir_src_as_uint(instr->src[0]);
421 unsigned index = block * 4; /* 16 bit units */
980 * Mark the logical end of the current block by emitting a p_logical_end marker.
982 * loop from inside an if), the block has already reached its logical end so we
1031 /* Jumps must come at the end of a block */
1047 /* Look up the AGX block corresponding to a given NIR block. Used when
1051 agx_from_nir_block(agx_context *ctx, nir_block *block)
1053 return ctx->indexed_nir_blocks[block->index];
1057 agx_emit_phi_deferred(agx_context *ctx, agx_block *block, agx_instr *I)
1069 unsigned i = agx_predecessor_index(block, pred);
1079 agx_foreach_block(ctx, block) {
1080 agx_foreach_instr_in_block(block, I) {
1082 agx_emit_phi_deferred(ctx, block, I);
1131 emit_block(agx_context *ctx, nir_block *block)
1144 ctx->indexed_nir_blocks[block->index] = blk;
1148 nir_foreach_instr(instr, block) {
1167 * an empty else block can become nonempty after RA due to phi lowering. This is
1257 * definition this occurs at the end of the first block, which dominates the
1281 agx_block *block = emit_block(ctx, nir_cf_node_as_block(node));
1284 start_block = block;
1737 /* Terminate the shader after the exit block */
1747 agx_foreach_block(ctx, block)
1748 block->index = ctx->num_blocks++;