summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 13:25:39 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 13:45:22 +0100
commit58e07445ee5c9c92a4ca4230e84b90f34bdd99b1 (patch)
treecc3f12073c497f65d19cb179089e64d0be9be5bc /ir/be/belive.h
parent3acf444aeb1c967fb58d6682e77a2e273259a422 (diff)
belive: Change _be_is_live_xxx(..., flags) to be_get_live_state(...) & flags.
Diffstat (limited to 'ir/be/belive.h')
-rw-r--r--ir/be/belive.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/ir/be/belive.h b/ir/be/belive.h
index 8680c79..bf23a34 100644
--- a/ir/be/belive.h
+++ b/ir/be/belive.h
@@ -152,13 +152,13 @@ struct be_lv_info_t {
be_lv_info_node_t *be_lv_get(const be_lv_t *li, const ir_node *block,
const ir_node *irn);
-static inline bool _be_is_live_xxx(be_lv_t const *const li, ir_node const *const block, ir_node const *const irn, be_lv_state_t const flags)
+static inline be_lv_state_t be_get_live_state(be_lv_t const *const li, ir_node const *const block, ir_node const *const irn)
{
if (li->sets_valid) {
be_lv_info_node_t *info = be_lv_get(li, block, irn);
- return info != NULL ? (info->flags & flags) : false;
+ return info ? info->flags : be_lv_state_none;
} else {
- return lv_chk_bl_xxx(li->lvc, block, irn) & flags;
+ return lv_chk_bl_xxx(li->lvc, block, irn);
}
}
@@ -171,7 +171,7 @@ static inline bool _be_is_live_xxx(be_lv_t const *const li, ir_node const *const
static inline bool be_is_live_in(const be_lv_t *li, const ir_node *block,
const ir_node *node)
{
- return _be_is_live_xxx(li, block, node, be_lv_state_in);
+ return be_get_live_state(li, block, node) & be_lv_state_in;
}
/**
@@ -183,7 +183,7 @@ static inline bool be_is_live_in(const be_lv_t *li, const ir_node *block,
static inline bool be_is_live_out(const be_lv_t *li, const ir_node *block,
const ir_node *node)
{
- return _be_is_live_xxx(li, block, node, be_lv_state_out);
+ return be_get_live_state(li, block, node) & be_lv_state_out;
}
/**
@@ -195,7 +195,7 @@ static inline bool be_is_live_out(const be_lv_t *li, const ir_node *block,
static inline bool be_is_live_end(const be_lv_t *li, const ir_node *block,
const ir_node *node)
{
- return _be_is_live_xxx(li, block, node, be_lv_state_end);
+ return be_get_live_state(li, block, node) & be_lv_state_end;
}
typedef struct lv_iterator_t