Commit 09a23476 by Trevor Saunders Committed by Trevor Saunders

tree-ssa-ter.c: remove typedefs that hide pointerness

gcc/ChangeLog:

2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
	and remove typedef.
	(new_temp_expr_table): Adjust.
	(free_temp_expr_table): Likewise.
	(version_to_be_replaced_p): Likewise.
	(make_dependent_on_partition): Likewise.
	(add_to_partition_kill_list): Likewise.
	(remove_from_partition_kill_list): Likewise.
	(add_dependence): Likewise.
	(finished_with_expr): Likewise.
	(process_replaceable): Likewise.
	(kill_expr): Likewise.
	(kill_virtual_exprs): Likewise.
	(mark_replaceable): Likewise.
	(find_replaceable_in_bb): Likewise.
	(find_replaceable_exprs): Likewise.
	(debug_ter): Likewise.

From-SVN: r227723
parent 2d5b3f6e
2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
and remove typedef.
(new_temp_expr_table): Adjust.
(free_temp_expr_table): Likewise.
(version_to_be_replaced_p): Likewise.
(make_dependent_on_partition): Likewise.
(add_to_partition_kill_list): Likewise.
(remove_from_partition_kill_list): Likewise.
(add_dependence): Likewise.
(finished_with_expr): Likewise.
(process_replaceable): Likewise.
(kill_expr): Likewise.
(kill_virtual_exprs): Likewise.
(mark_replaceable): Likewise.
(find_replaceable_in_bb): Likewise.
(find_replaceable_exprs): Likewise.
(debug_ter): Likewise.
2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* bt-load.c (struct btr_def_group): Rename from btr_def_group_s. * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
(struct btr_user): Rename from btr_user_s. (struct btr_user): Rename from btr_user_s.
(struct btr_def): Rename from btr_def_s. (struct btr_def): Rename from btr_def_s.
......
...@@ -162,7 +162,7 @@ along with GCC; see the file COPYING3. If not see ...@@ -162,7 +162,7 @@ along with GCC; see the file COPYING3. If not see
/* Temporary Expression Replacement (TER) table information. */ /* Temporary Expression Replacement (TER) table information. */
typedef struct temp_expr_table_d struct temp_expr_table
{ {
var_map map; var_map map;
bitmap *partition_dependencies; /* Partitions expr is dependent on. */ bitmap *partition_dependencies; /* Partitions expr is dependent on. */
...@@ -174,7 +174,7 @@ typedef struct temp_expr_table_d ...@@ -174,7 +174,7 @@ typedef struct temp_expr_table_d
bitmap new_replaceable_dependencies; /* Holding place for pending dep's. */ bitmap new_replaceable_dependencies; /* Holding place for pending dep's. */
int *num_in_part; /* # of ssa_names in a partition. */ int *num_in_part; /* # of ssa_names in a partition. */
int *call_cnt; /* Call count at definition. */ int *call_cnt; /* Call count at definition. */
} *temp_expr_table_p; };
/* Used to indicate a dependency on VDEFs. */ /* Used to indicate a dependency on VDEFs. */
#define VIRTUAL_PARTITION(table) (table->virtual_partition) #define VIRTUAL_PARTITION(table) (table->virtual_partition)
...@@ -183,19 +183,18 @@ typedef struct temp_expr_table_d ...@@ -183,19 +183,18 @@ typedef struct temp_expr_table_d
static bitmap_obstack ter_bitmap_obstack; static bitmap_obstack ter_bitmap_obstack;
#ifdef ENABLE_CHECKING #ifdef ENABLE_CHECKING
extern void debug_ter (FILE *, temp_expr_table_p); extern void debug_ter (FILE *, temp_expr_table *);
#endif #endif
/* Create a new TER table for MAP. */ /* Create a new TER table for MAP. */
static temp_expr_table_p static temp_expr_table *
new_temp_expr_table (var_map map) new_temp_expr_table (var_map map)
{ {
temp_expr_table_p t;
unsigned x; unsigned x;
t = XNEW (struct temp_expr_table_d); temp_expr_table *t = XNEW (struct temp_expr_table);
t->map = map; t->map = map;
t->partition_dependencies = XCNEWVEC (bitmap, num_ssa_names + 1); t->partition_dependencies = XCNEWVEC (bitmap, num_ssa_names + 1);
...@@ -229,7 +228,7 @@ new_temp_expr_table (var_map map) ...@@ -229,7 +228,7 @@ new_temp_expr_table (var_map map)
vector. */ vector. */
static bitmap static bitmap
free_temp_expr_table (temp_expr_table_p t) free_temp_expr_table (temp_expr_table *t)
{ {
bitmap ret = NULL; bitmap ret = NULL;
...@@ -264,7 +263,7 @@ free_temp_expr_table (temp_expr_table_p t) ...@@ -264,7 +263,7 @@ free_temp_expr_table (temp_expr_table_p t)
/* Return TRUE if VERSION is to be replaced by an expression in TAB. */ /* Return TRUE if VERSION is to be replaced by an expression in TAB. */
static inline bool static inline bool
version_to_be_replaced_p (temp_expr_table_p tab, int version) version_to_be_replaced_p (temp_expr_table *tab, int version)
{ {
if (!tab->replaceable_expressions) if (!tab->replaceable_expressions)
return false; return false;
...@@ -276,7 +275,7 @@ version_to_be_replaced_p (temp_expr_table_p tab, int version) ...@@ -276,7 +275,7 @@ version_to_be_replaced_p (temp_expr_table_p tab, int version)
the expression table */ the expression table */
static inline void static inline void
make_dependent_on_partition (temp_expr_table_p tab, int version, int p) make_dependent_on_partition (temp_expr_table *tab, int version, int p)
{ {
if (!tab->partition_dependencies[version]) if (!tab->partition_dependencies[version])
tab->partition_dependencies[version] = BITMAP_ALLOC (&ter_bitmap_obstack); tab->partition_dependencies[version] = BITMAP_ALLOC (&ter_bitmap_obstack);
...@@ -288,7 +287,7 @@ make_dependent_on_partition (temp_expr_table_p tab, int version, int p) ...@@ -288,7 +287,7 @@ make_dependent_on_partition (temp_expr_table_p tab, int version, int p)
/* Add VER to the kill list for P. TAB is the expression table */ /* Add VER to the kill list for P. TAB is the expression table */
static inline void static inline void
add_to_partition_kill_list (temp_expr_table_p tab, int p, int ver) add_to_partition_kill_list (temp_expr_table *tab, int p, int ver)
{ {
if (!tab->kill_list[p]) if (!tab->kill_list[p])
{ {
...@@ -303,7 +302,7 @@ add_to_partition_kill_list (temp_expr_table_p tab, int p, int ver) ...@@ -303,7 +302,7 @@ add_to_partition_kill_list (temp_expr_table_p tab, int p, int ver)
table. */ table. */
static inline void static inline void
remove_from_partition_kill_list (temp_expr_table_p tab, int p, int version) remove_from_partition_kill_list (temp_expr_table *tab, int p, int version)
{ {
gcc_checking_assert (tab->kill_list[p]); gcc_checking_assert (tab->kill_list[p]);
bitmap_clear_bit (tab->kill_list[p], version); bitmap_clear_bit (tab->kill_list[p], version);
...@@ -321,7 +320,7 @@ remove_from_partition_kill_list (temp_expr_table_p tab, int p, int version) ...@@ -321,7 +320,7 @@ remove_from_partition_kill_list (temp_expr_table_p tab, int p, int version)
expression table. */ expression table. */
static void static void
add_dependence (temp_expr_table_p tab, int version, tree var) add_dependence (temp_expr_table *tab, int version, tree var)
{ {
int i; int i;
bitmap_iterator bi; bitmap_iterator bi;
...@@ -372,7 +371,7 @@ add_dependence (temp_expr_table_p tab, int version, tree var) ...@@ -372,7 +371,7 @@ add_dependence (temp_expr_table_p tab, int version, tree var)
expression from consideration as well by freeing the decl uid bitmap. */ expression from consideration as well by freeing the decl uid bitmap. */
static void static void
finished_with_expr (temp_expr_table_p tab, int version, bool free_expr) finished_with_expr (temp_expr_table *tab, int version, bool free_expr)
{ {
unsigned i; unsigned i;
bitmap_iterator bi; bitmap_iterator bi;
...@@ -444,7 +443,7 @@ ter_is_replaceable_p (gimple stmt) ...@@ -444,7 +443,7 @@ ter_is_replaceable_p (gimple stmt)
/* Create an expression entry for a replaceable expression. */ /* Create an expression entry for a replaceable expression. */
static void static void
process_replaceable (temp_expr_table_p tab, gimple stmt, int call_cnt) process_replaceable (temp_expr_table *tab, gimple stmt, int call_cnt)
{ {
tree var, def, basevar; tree var, def, basevar;
int version; int version;
...@@ -493,7 +492,7 @@ process_replaceable (temp_expr_table_p tab, gimple stmt, int call_cnt) ...@@ -493,7 +492,7 @@ process_replaceable (temp_expr_table_p tab, gimple stmt, int call_cnt)
from consideration, making it not replaceable. */ from consideration, making it not replaceable. */
static inline void static inline void
kill_expr (temp_expr_table_p tab, int partition) kill_expr (temp_expr_table *tab, int partition)
{ {
unsigned version; unsigned version;
...@@ -513,7 +512,7 @@ kill_expr (temp_expr_table_p tab, int partition) ...@@ -513,7 +512,7 @@ kill_expr (temp_expr_table_p tab, int partition)
partitions. */ partitions. */
static inline void static inline void
kill_virtual_exprs (temp_expr_table_p tab) kill_virtual_exprs (temp_expr_table *tab)
{ {
kill_expr (tab, VIRTUAL_PARTITION (tab)); kill_expr (tab, VIRTUAL_PARTITION (tab));
} }
...@@ -524,7 +523,7 @@ kill_virtual_exprs (temp_expr_table_p tab) ...@@ -524,7 +523,7 @@ kill_virtual_exprs (temp_expr_table_p tab)
MORE_REPLACING is true, accumulate the pending partition dependencies. */ MORE_REPLACING is true, accumulate the pending partition dependencies. */
static void static void
mark_replaceable (temp_expr_table_p tab, tree var, bool more_replacing) mark_replaceable (temp_expr_table *tab, tree var, bool more_replacing)
{ {
int version = SSA_NAME_VERSION (var); int version = SSA_NAME_VERSION (var);
...@@ -572,7 +571,7 @@ find_ssaname_in_store (gimple, tree, tree t, void *data) ...@@ -572,7 +571,7 @@ find_ssaname_in_store (gimple, tree, tree t, void *data)
be replaced by their expressions. Results are stored in the table TAB. */ be replaced by their expressions. Results are stored in the table TAB. */
static void static void
find_replaceable_in_bb (temp_expr_table_p tab, basic_block bb) find_replaceable_in_bb (temp_expr_table *tab, basic_block bb)
{ {
gimple_stmt_iterator bsi; gimple_stmt_iterator bsi;
gimple stmt; gimple stmt;
...@@ -712,7 +711,7 @@ bitmap ...@@ -712,7 +711,7 @@ bitmap
find_replaceable_exprs (var_map map) find_replaceable_exprs (var_map map)
{ {
basic_block bb; basic_block bb;
temp_expr_table_p table; temp_expr_table *table;
bitmap ret; bitmap ret;
bitmap_obstack_initialize (&ter_bitmap_obstack); bitmap_obstack_initialize (&ter_bitmap_obstack);
...@@ -755,7 +754,7 @@ dump_replaceable_exprs (FILE *f, bitmap expr) ...@@ -755,7 +754,7 @@ dump_replaceable_exprs (FILE *f, bitmap expr)
table being debugged. */ table being debugged. */
DEBUG_FUNCTION void DEBUG_FUNCTION void
debug_ter (FILE *f, temp_expr_table_p t) debug_ter (FILE *f, temp_expr_table *t)
{ {
unsigned x, y; unsigned x, y;
bitmap_iterator bi; bitmap_iterator bi;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment