The new name is a little longer but less confusing.
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
}
nir_if *
-nir_block_following_if(nir_block *block)
+nir_block_get_following_if(nir_block *block)
{
if (exec_node_is_tail_sentinel(&block->cf_node.node))
return NULL;
/* If the following CF node is an if, this function returns that if.
* Otherwise, it returns NULL.
*/
-nir_if *nir_block_following_if(nir_block *block);
+nir_if *nir_block_get_following_if(nir_block *block);
void nir_index_local_regs(nir_function_impl *impl);
void nir_index_global_regs(nir_shader *shader);
}
state->instr = NULL;
- nir_if *following_if = nir_block_following_if(block);
+ nir_if *following_if = nir_block_get_following_if(block);
if (following_if && following_if->condition.is_ssa) {
nir_register *reg = get_register_for_ssa_def(following_if->condition.ssa,
state);
memcpy(block->live_in, block->live_out,
state->bitset_words * sizeof(BITSET_WORD));
- nir_if *following_if = nir_block_following_if(block);
+ nir_if *following_if = nir_block_get_following_if(block);
if (following_if)
set_src_live(&following_if->condition, block->live_in);
nir_foreach_instr(block, instr)
init_instr(instr, worklist);
- nir_if *following_if = nir_block_following_if(block);
+ nir_if *following_if = nir_block_get_following_if(block);
if (following_if) {
if (following_if->condition.is_ssa &&
!following_if->condition.ssa->parent_instr->live)