Commit 90e7800f authored by Christoph Mallon's avatar Christoph Mallon
Browse files

becopyilp: Make new_size_red(), sr_remove(), sr_reinsert() and free_size_red() static.

parent ce4fdd2c
......@@ -78,7 +78,10 @@ void be_init_copyilp(void)
*****************************************************************************/
size_red_t *new_size_red(copy_opt_t *co)
/**
* Just prepare. Do nothing yet.
*/
static size_red_t *new_size_red(copy_opt_t *co)
{
size_red_t *res = XMALLOC(size_red_t);
......@@ -120,7 +123,11 @@ end:
return res;
}
void sr_remove(size_red_t *sr)
/**
* Virtually remove all nodes not related to the problem
* (simplicial AND not adjacent to a equal-color-edge)
*/
static void sr_remove(size_red_t *const sr)
{
bool redo = true;
const be_ifg_t *ifg = sr->co->cenv->ifg;
......@@ -150,7 +157,10 @@ void sr_remove(size_red_t *sr)
}
}
void sr_reinsert(size_red_t *sr)
/**
* Virtually reinsert the nodes removed before and color them
*/
static void sr_reinsert(size_red_t *const sr)
{
coloring_suffix_t *cs;
ir_graph *irg = sr->co->irg;
......@@ -205,7 +215,10 @@ void sr_reinsert(size_red_t *sr)
}
}
void free_size_red(size_red_t *sr)
/**
* Free all space.
*/
static void free_size_red(size_red_t *const sr)
{
del_pset(sr->all_removed);
obstack_free(&sr->ob, NULL);
......
......@@ -40,32 +40,11 @@ typedef struct size_red_t {
struct obstack ob;
} size_red_t;
/**
* Just prepare. Do nothing yet.
*/
size_red_t *new_size_red(copy_opt_t *co);
/**
* Checks if a node has already been removed
*/
#define sr_is_removed(sr, irn) pset_find_ptr((sr)->all_removed, irn)
/**
* Virtually remove all nodes not related to the problem
* (simplicial AND not adjacent to a equal-color-edge)
*/
void sr_remove(size_red_t *sr);
/**
* Virtually reinsert the nodes removed before and color them
*/
void sr_reinsert(size_red_t *sr);
/**
* Free all space...
*/
void free_size_red(size_red_t *sr);
/**
* TODO: This search is necessary because during the construction of the
* units (ou's) args could be merged and weights are accumulated.
......
Supports Markdown
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