summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 13:22:53 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 13:23:24 +0100
commit3acf444aeb1c967fb58d6682e77a2e273259a422 (patch)
tree00a85d7205900fc3619b56f222d8cd916cffd89f /ir/be/belive.h
parent87d50cbc3b2d23eac16c7204207a92295aaa24cb (diff)
belive: Use be_lv_state_t instead of unsigned.
Diffstat (limited to 'ir/be/belive.h')
-rw-r--r--ir/be/belive.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ir/be/belive.h b/ir/be/belive.h
index 3f02a85..8680c79 100644
--- a/ir/be/belive.h
+++ b/ir/be/belive.h
@@ -18,7 +18,7 @@
#include "irlivechk.h"
#include "bearch.h"
-typedef enum {
+typedef enum be_lv_state_t {
be_lv_state_none = 0,
be_lv_state_in = 1u << 0,
be_lv_state_end = 1u << 1,
@@ -139,8 +139,8 @@ struct be_lv_t {
typedef struct be_lv_info_node_t be_lv_info_node_t;
struct be_lv_info_node_t {
- ir_node *node;
- unsigned flags;
+ ir_node *node;
+ be_lv_state_t flags;
};
struct be_lv_info_t {
@@ -152,8 +152,7 @@ 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(const be_lv_t *li, const ir_node *block,
- const ir_node *irn, unsigned flags)
+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)
{
if (li->sets_valid) {
be_lv_info_node_t *info = be_lv_get(li, block, irn);