Home | History | Annotate | Download | only in ir3

Lines Matching refs:block

49 /* We want to evaluate each block from the position of any other
50 * predecessor block, in order that the flags set are the union
52 * want to stop when the pair of <pred-block, current-block> has
56 * flags set depending on path leading to pred-block.. we could
60 * For now we just set ss/sy flag on first instruction on block,
61 * and handle everything within the block as before.
65 legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
81 list_replace(&block->instr_list, &instr_list);
82 list_inithead(&block->instr_list);
151 nop = ir3_NOP(block);
157 if (list_empty(&block->instr_list) && (opc_cat(n->opc) >= 5))
158 ir3_NOP(block);
160 if (is_nop(n) && !list_empty(&block->instr_list)) {
161 struct ir3_instruction *last = list_last_entry(&block->instr_list,
170 list_addtail(&n->node, &block->instr_list);
218 baryf = ir3_instr_create(block, OPC_BARY_F);
236 list_first_entry(&block->instr_list, struct ir3_instruction, node)
241 * in the block. We take advantage of this as we resolve the
263 * that the first instruction in the target block is itself
276 resolve_dest_block(struct ir3_block *block)
278 /* special case for last block: */
279 if (!block->successors[0])
280 return block;
283 * in the target block yet, so conditions to resolve
284 * the dest to the dest block's successor are:
287 * (2) (block-is-empty || only-instr-is-jump)
289 if (block->successors[1] == NULL) {
290 if (list_empty(&block->instr_list)) {
291 return block->successors[0];
292 } else if (list_length(&block->instr_list) == 1) {
294 &block->instr_list, struct ir3_instruction, node);
296 return block->successors[0];
299 return block;
337 list_for_each_entry (struct ir3_block, block, &ir->block_list, node)
338 list_for_each_entry (struct ir3_instruction, instr, &block->instr_list, node)
378 list_for_each_entry (struct ir3_block, block, &ir->block_list, node) {
379 list_for_each_entry (struct ir3_instruction, instr, &block->instr_list, node) {
397 list_for_each_entry (struct ir3_block, block, &ir->block_list, node) {
398 legalize_block(&ctx, block);