nir: Rename nir_block_following_if to nir_block_get_following_if
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 17 Dec 2014 22:49:24 +0000 (14:49 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Jan 2015 15:20:23 +0000 (07:20 -0800)
The new name is a little longer but less confusing.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_from_ssa.c
src/glsl/nir/nir_live_variables.c
src/glsl/nir/nir_opt_dce.c

index 10e6d0408b97f9a797a745a74592c695dc52b1db..4b02ec0dd86a7a073157fa5d9e9001ebb5f8f5a2 100644 (file)
@@ -1947,7 +1947,7 @@ nir_foreach_block_reverse(nir_function_impl *impl, nir_foreach_block_cb cb,
 }
 
 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;
index 367862c9a8aea16725d9c10d753bac34b1489608..5ae572335f6ab0ab036c043daf4ca39b5e7e5104 100644 (file)
@@ -1335,7 +1335,7 @@ bool nir_foreach_block_reverse(nir_function_impl *impl, nir_foreach_block_cb cb,
 /* 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);
index b644eb506a9698468d087db02b82245b93544615..ca3314f55dedc8bc73502346e72ff7c418404de0 100644 (file)
@@ -557,7 +557,7 @@ resolve_registers_block(nir_block *block, void *void_state)
    }
    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);
index dc3057c41fdbaa9d7d0770dbece497f0b32238b9..305c26476e9de408a01a0f038e2d1f0a76f37a3e 100644 (file)
@@ -165,7 +165,7 @@ walk_instructions_block(nir_block *block, void *void_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);
 
index 9778e9ed6a6a36f9364caf12c953b01ce0925d3c..3f7d94d8295511fe9c517f759a37e45b7ee6343b 100644 (file)
@@ -116,7 +116,7 @@ init_block_cb(nir_block *block, void *_state)
    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)