summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-16 23:43:30 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-16 23:47:15 +0100
commit3b6c919808534f66388ec4212373fe5b40d20926 (patch)
tree8076b70a62af82809dac5bf9232a3359659f3c0e /ir/be/becopyilp_t.h
parent50a8c9cc239f96867b9c028cf6ad142454dcfc57 (diff)
becopyilp: Inline struct size_red_t into struct ilp_env_t.
Diffstat (limited to 'ir/be/becopyilp_t.h')
-rw-r--r--ir/be/becopyilp_t.h39
1 files changed, 12 insertions, 27 deletions
diff --git a/ir/be/becopyilp_t.h b/ir/be/becopyilp_t.h
index 4354d45..3be6ab7 100644
--- a/ir/be/becopyilp_t.h
+++ b/ir/be/becopyilp_t.h
@@ -16,30 +16,6 @@
#include "becopyopt_t.h"
/******************************************************************************
- _____ _ _ _ _
- / ____(_) | | | | (_)
- | (___ _ _______ _ __ ___ __| |_ _ ___| |_ _ ___ _ __
- \___ \| |_ / _ \ | '__/ _ \/ _` | | | |/ __| __| |/ _ \| '_ \
- ____) | |/ / __/ | | | __/ (_| | |_| | (__| |_| | (_) | | | |
- |_____/|_/___\___| |_| \___|\__,_|\__,_|\___|\__|_|\___/|_| |_|
-
- *****************************************************************************/
-
-typedef struct size_red_t {
- copy_opt_t *co;
- ir_node **col_suff; /**< Coloring suffix. A PEO prefix. */
- ir_nodeset_t all_removed; /**< All nodes removed during problem size reduction */
-} size_red_t;
-
-/**
- * Checks if a node has already been removed
- */
-static inline bool sr_is_removed(size_red_t const *const sr, ir_node const *const irn)
-{
- return ir_nodeset_contains(&sr->all_removed, irn);
-}
-
-/******************************************************************************
_____ _ _____ _ _____
/ ____| (_) |_ _| | | __ \
| | __ ___ _ __ ___ _ __ _ ___ | | | | | |__) |
@@ -59,9 +35,10 @@ typedef struct ilp_env_t ilp_env_t;
typedef void(*ilp_callback)(ilp_env_t*);
struct ilp_env_t {
- const copy_opt_t *co; /**< the copy opt problem */
- size_red_t *sr; /**< problem size reduction. removes simple nodes */
- lpp_t *lp; /**< the linear programming problem */
+ copy_opt_t const *co; /**< the copy opt problem */
+ ir_node **col_suff; /**< Coloring suffix for size reduction. A PEO prefix. */
+ ir_nodeset_t all_removed; /**< All nodes removed during problem size reduction */
+ lpp_t *lp; /**< the linear programming problem */
void *env;
ilp_callback build;
ilp_callback apply;
@@ -73,4 +50,12 @@ lpp_sol_state_t ilp_go(ilp_env_t *ienv);
void free_ilp_env(ilp_env_t *ienv);
+/**
+ * Checks if a node has already been removed
+ */
+static inline bool sr_is_removed(ilp_env_t const *const ienv, ir_node const *const irn)
+{
+ return ir_nodeset_contains(&ienv->all_removed, irn);
+}
+
#endif