summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-16 08:23:33 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-16 08:59:10 +0200
commit1134b42208a421defb0cdcbb9631ea9c95c87724 (patch)
tree4709e55238506184f44a15f5ba9bd73bc6828520 /ir/stat
parentd3945d4edfd9f53cb9ae608dc749ef81e516b513 (diff)
Remove the unused function stat_register_dumper_func().
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/firmstat.c33
-rw-r--r--ir/stat/firmstat_t.h9
-rw-r--r--ir/stat/stat_dmp.c2
3 files changed, 0 insertions, 44 deletions
diff --git a/ir/stat/firmstat.c b/ir/stat/firmstat.c
index c1a0d88..8b5f5b7 100644
--- a/ir/stat/firmstat.c
+++ b/ir/stat/firmstat.c
@@ -1064,21 +1064,6 @@ static void stat_dump_graph(graph_entry_t *entry)
}
/**
- * Calls all registered dumper functions.
- */
-static void stat_dump_registered(graph_entry_t *entry)
-{
- dumper_t *dumper;
-
- for (dumper = status->dumper; dumper; dumper = dumper->next) {
- if (dumper->func_map) {
- foreach_pset(dumper->func_map, dump_graph_FUNC, func)
- func(dumper, entry);
- }
- }
-}
-
-/**
* Dumps a constant table.
*/
static void stat_dump_consts(const constant_info_t *tbl)
@@ -1143,20 +1128,6 @@ static void stat_dump_finish(void)
}
}
-/**
- * Register an additional function for all dumper.
- */
-void stat_register_dumper_func(dump_graph_FUNC *const func)
-{
- dumper_t *dumper;
-
- for (dumper = status->dumper; dumper; dumper = dumper->next) {
- if (! dumper->func_map)
- dumper->func_map = pset_new_ptr(3);
- pset_insert_ptr(dumper->func_map, (void*)func);
- }
-}
-
/* ---------------------------------------------------------------------- */
/*
@@ -1821,7 +1792,6 @@ void stat_dump_snapshot(const char *name, const char *phase)
if (! entry->is_deleted || status->stat_options & FIRMSTAT_COUNT_DELETED) {
stat_dump_graph(entry);
- stat_dump_registered(entry);
}
if (! entry->is_deleted) {
@@ -1961,9 +1931,6 @@ static void stat_term_dumper(void)
dumper_t *dumper, *next_dumper;
for (dumper = status->dumper; dumper; /* iteration done in loop body */ ) {
- if (dumper->func_map)
- del_pset(dumper->func_map);
-
next_dumper = dumper->next;
free(dumper);
dumper = next_dumper;
diff --git a/ir/stat/firmstat_t.h b/ir/stat/firmstat_t.h
index 19bbccf..082cf45 100644
--- a/ir/stat/firmstat_t.h
+++ b/ir/stat/firmstat_t.h
@@ -429,7 +429,6 @@ struct dumper_t {
FILE *f; /**< the file to dump to */
stat_info_t *status; /**< access to the global status */
dumper_t *next; /**< link to the next dumper */
- pset *func_map; /**< pset containing all registered functions */
unsigned tag; /**< the id tag of the dumper */
};
@@ -546,12 +545,4 @@ void stat_be_block_regpressure(ir_graph *irg, ir_node *block, int pressure, cons
*/
void stat_be_block_sched_ready(ir_graph *irg, ir_node *block, int num_ready);
-/**
- * Register an additional function for all dumper. This function
- * is called in dump_snapshot once for each graph_entry and dumper.
- *
- * @param func the dump function to register
- */
-void stat_register_dumper_func(dump_graph_FUNC *func);
-
#endif
diff --git a/ir/stat/stat_dmp.c b/ir/stat/stat_dmp.c
index e6d8b5b..686a7a2 100644
--- a/ir/stat/stat_dmp.c
+++ b/ir/stat/stat_dmp.c
@@ -552,7 +552,6 @@ const dumper_t simple_dumper = {
NULL,
NULL,
NULL,
- NULL,
FOURCC('S', 'M', 'P', 'L'),
};
@@ -695,6 +694,5 @@ const dumper_t csv_dumper = {
NULL,
NULL,
NULL,
- NULL,
FOURCC('C', 'S', 'V', '\0')
};