Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
58e07445
Commit
58e07445
authored
Jan 10, 2015
by
Christoph Mallon
Browse files
belive: Change _be_is_live_xxx(..., flags) to be_get_live_state(...) & flags.
parent
3acf444a
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/belive.h
View file @
58e07445
...
...
@@ -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
b
ool
_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
b
e_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
)
:
fals
e
;
return
info
?
info
->
flags
:
be_lv_state_non
e
;
}
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment