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
76ce20d4
Commit
76ce20d4
authored
Aug 03, 2007
by
Matthias Braun
Browse files
add is_Shl, is_Shr, is_Shrs, is_Rot
[r15444]
parent
bade29f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/libfirm/irnode.h
View file @
76ce20d4
...
...
@@ -1230,6 +1230,14 @@ int is_Eor(const ir_node *node);
int
is_Sub
(
const
ir_node
*
node
);
/** Returns true if node is a Not node. */
int
is_Not
(
const
ir_node
*
node
);
/** Returns true if node is a Shl node. */
int
is_Shl
(
const
ir_node
*
node
);
/** Returns true if node is a Shr node. */
int
is_Shr
(
const
ir_node
*
node
);
/** Returns true if node is a Shrs node. */
int
is_Shrs
(
const
ir_node
*
node
);
/** Returns true if node is a Rot node. */
int
is_Rot
(
const
ir_node
*
node
);
/** Returns true if node is a Psi node. */
int
is_Psi
(
const
ir_node
*
node
);
/** Returns true if node is a Tuple node. */
...
...
ir/ir/irnode.c
View file @
76ce20d4
...
...
@@ -2647,6 +2647,26 @@ int
return
_is_Sub
(
node
);
}
int
(
is_Shl
)(
const
ir_node
*
node
)
{
return
_is_Shl
(
node
);
}
int
(
is_Shr
)(
const
ir_node
*
node
)
{
return
_is_Shr
(
node
);
}
int
(
is_Shrs
)(
const
ir_node
*
node
)
{
return
_is_Shrs
(
node
);
}
int
(
is_Rot
)(
const
ir_node
*
node
)
{
return
_is_Rot
(
node
);
}
int
(
is_Not
)(
const
ir_node
*
node
)
{
return
_is_Not
(
node
);
...
...
ir/ir/irnode_t.h
View file @
76ce20d4
...
...
@@ -472,6 +472,30 @@ _is_Not(const ir_node *node) {
return
(
_get_irn_op
(
node
)
==
op_Not
);
}
static
INLINE
int
_is_Shl
(
const
ir_node
*
node
)
{
assert
(
node
);
return
(
_get_irn_op
(
node
)
==
op_Shl
);
}
static
INLINE
int
_is_Shr
(
const
ir_node
*
node
)
{
assert
(
node
);
return
(
_get_irn_op
(
node
)
==
op_Shr
);
}
static
INLINE
int
_is_Shrs
(
const
ir_node
*
node
)
{
assert
(
node
);
return
(
_get_irn_op
(
node
)
==
op_Shrs
);
}
static
INLINE
int
_is_Rot
(
const
ir_node
*
node
)
{
assert
(
node
);
return
(
_get_irn_op
(
node
)
==
op_Rot
);
}
static
INLINE
int
_is_Psi
(
const
ir_node
*
node
)
{
assert
(
node
);
...
...
@@ -883,6 +907,10 @@ static INLINE void _set_irn_dbg_info(ir_node *n, dbg_info *db) {
#define is_Eor(node) _is_Eor(node)
#define is_Sub(node) _is_Sub(node)
#define is_Not(node) _is_Not(node)
#define is_Shl(node) _is_Shl(node)
#define is_Shr(node) _is_Shr(node)
#define is_Shrs(node) _is_Shrs(node)
#define is_Rot(node) _is_Rot(node)
#define is_Psi(node) _is_Psi(node)
#define is_Tuple(node) _is_Tuple(node)
#define is_no_Block(node) _is_no_Block(node)
...
...
Write
Preview
Supports
Markdown
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