Lines Matching defs:block
152 bi_next_clause(bi_context *ctx, bi_block *block, bi_clause *clause)
154 if (!block && !clause)
157 /* Try the first clause in this block if we're starting from scratch */
158 if (!clause && !list_is_empty(&block->clauses))
159 return list_first_entry(&block->clauses, bi_clause, link);
161 /* Try the next clause in this block */
162 if (clause && clause->link.next != &block->clauses)
165 /* Try the next block, or the one after that if it's empty, etc .*/
166 bi_block *next_block = bi_next_block(block);
168 bi_foreach_block_from(ctx, next_block, block) {
169 if (!list_is_empty(&block->clauses))
170 return list_first_entry(&block->clauses, bi_clause, link);
224 * branches and for the last instruction (clause) in a block whose
229 bi_reconverge_branches(bi_block *block)
231 /* Last block of a program */
232 if (!block->successors[0]) {
233 assert(!block->successors[1]);
238 if (block->successors[1])
242 struct bi_block *succ = block->successors[0];