diff options
author | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-20 00:52:59 +0000 |
---|---|---|
committer | tbsaunde <tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-20 00:52:59 +0000 |
commit | 42acab1cd6812e2d9e49f4132176f5505f49a0e5 (patch) | |
tree | aadb7908b4b80ecaf7e744ca1ae42a59a12b07ea /gcc/tree-ssa-loop-manip.c | |
parent | 08d9039cffc7a572df5898c48fa080f7ce4b5076 (diff) | |
download | gcc-42acab1cd6812e2d9e49f4132176f5505f49a0e5.tar.gz |
switch from gimple to gimple*
This renames the gimple_statement_base struct to gimple removes the
typedef of gimple_statement_base * to gimple, and then adjusts all of
the places that use the type.
gcc/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* coretypes.h (gimple): Change typedef to be a forward
declaration.
* gimple.h (gimple_statement_base): rename to gimple.
* (all functions and types using gimple): Adjust.
* *.[ch]: Likewise.
gcc/cp/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* cp-gimplify.c (gimplify_must_not_throw_expr): Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227941 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-manip.c')
-rw-r--r-- | gcc/tree-ssa-loop-manip.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/tree-ssa-loop-manip.c b/gcc/tree-ssa-loop-manip.c index fb7ba4810c8..27ba2755685 100644 --- a/gcc/tree-ssa-loop-manip.c +++ b/gcc/tree-ssa-loop-manip.c @@ -281,7 +281,7 @@ add_exit_phi (basic_block exit, tree var) #ifdef ENABLE_CHECKING /* Check that at least one of the edges entering the EXIT block exits the loop, or a superloop of that loop, that VAR is defined in. */ - gimple def_stmt = SSA_NAME_DEF_STMT (var); + gimple *def_stmt = SSA_NAME_DEF_STMT (var); basic_block def_bb = gimple_bb (def_stmt); FOR_EACH_EDGE (e, ei, exit->preds) { @@ -408,7 +408,7 @@ find_uses_to_rename_use (basic_block bb, tree use, bitmap *use_blocks, names are used to USE_BLOCKS, and the ssa names themselves to NEED_PHIS. */ static void -find_uses_to_rename_stmt (gimple stmt, bitmap *use_blocks, bitmap need_phis, +find_uses_to_rename_stmt (gimple *stmt, bitmap *use_blocks, bitmap need_phis, int use_flags) { ssa_op_iter iter; @@ -492,7 +492,7 @@ find_uses_to_rename (bitmap changed_bbs, bitmap *use_blocks, bitmap need_phis, static void find_uses_to_rename_def (tree def, bitmap *use_blocks, bitmap need_phis) { - gimple use_stmt; + gimple *use_stmt; imm_use_iterator imm_iter; FOR_EACH_IMM_USE_STMT (use_stmt, imm_iter, def) @@ -548,7 +548,7 @@ find_uses_to_rename_in_loop (struct loop *loop, bitmap *use_blocks, for (gimple_stmt_iterator bsi = gsi_start_bb (bb); !gsi_end_p (bsi); gsi_next (&bsi)) { - gimple stmt = gsi_stmt (bsi); + gimple *stmt = gsi_stmt (bsi); /* FOR_EACH_SSA_TREE_OPERAND iterator does not allows SSA_OP_VIRTUAL_DEFS only. */ if (def_flags == SSA_OP_VIRTUAL_DEFS) @@ -699,7 +699,7 @@ rewrite_virtuals_into_loop_closed_ssa (struct loop *loop) static void check_loop_closed_ssa_use (basic_block bb, tree use) { - gimple def; + gimple *def; basic_block def_bb; if (TREE_CODE (use) != SSA_NAME || virtual_operand_p (use)) @@ -714,7 +714,7 @@ check_loop_closed_ssa_use (basic_block bb, tree use) /* Checks invariants of loop closed ssa form in statement STMT in BB. */ static void -check_loop_closed_ssa_stmt (basic_block bb, gimple stmt) +check_loop_closed_ssa_stmt (basic_block bb, gimple *stmt) { ssa_op_iter iter; tree var; @@ -816,7 +816,7 @@ ip_end_pos (struct loop *loop) basic_block ip_normal_pos (struct loop *loop) { - gimple last; + gimple *last; basic_block bb; edge exit; @@ -849,7 +849,7 @@ standard_iv_increment_position (struct loop *loop, gimple_stmt_iterator *bsi, bool *insert_after) { basic_block bb = ip_normal_pos (loop), latch = ip_end_pos (loop); - gimple last = last_stmt (latch); + gimple *last = last_stmt (latch); if (!bb || (last && gimple_code (last) != GIMPLE_LABEL)) |