Commit 544b8de7 authored by Michael Beck's avatar Michael Beck
Browse files

more support for Mulh nodes

[r15752]
parent 5acecf22
......@@ -693,6 +693,11 @@ void set_Mul_left(ir_node *node, ir_node *left);
ir_node *get_Mul_right(const ir_node *node);
void set_Mul_right(ir_node *node, ir_node *right);
ir_node *get_Mulh_left(const ir_node *node);
void set_Mulh_left(ir_node *node, ir_node *left);
ir_node *get_Mulh_right(const ir_node *node);
void set_Mulh_right(ir_node *node, ir_node *right);
ir_node *get_Quot_left(const ir_node *node);
void set_Quot_left(ir_node *node, ir_node *left);
ir_node *get_Quot_right(const ir_node *node);
......@@ -1256,6 +1261,8 @@ int is_Call(const ir_node *node);
int is_Sel(const ir_node *node);
/** Returns true if node is a Mul node. */
int is_Mul(const ir_node *node);
/** Returns true if node is a Mulh node. */
int is_Mulh(const ir_node *node);
/** Returns true if node is a Mux node or a Psi with only one condition. */
int is_Mux(const ir_node *node);
/** Returns true if node is a Load node. */
......
......@@ -1463,6 +1463,7 @@ BINOP(Add)
BINOP(Sub)
UNOP(Minus)
BINOP(Mul)
BINOP(Mulh)
DIVOP(Quot)
DIVOP(DivMod)
DIVOP(Div)
......
......@@ -568,6 +568,12 @@ _is_Mul(const ir_node *node) {
return (_get_irn_op(node) == op_Mul);
}
static INLINE int
_is_Mulh(const ir_node *node) {
assert(node);
return (_get_irn_op(node) == op_Mulh);
}
static INLINE int
_is_Mux(const ir_node *node) {
assert(node);
......@@ -878,6 +884,7 @@ static INLINE void _set_irn_dbg_info(ir_node *n, dbg_info *db) {
#define is_Call(node) _is_Call(node)
#define is_Sel(node) _is_Sel(node)
#define is_Mul(node) _is_Mul(node)
#define is_Mulh(node) _is_Mulh(node)
#define is_Mux(node) _is_Mux(node)
#define is_Load(node) _is_Load(node)
#define is_Sync(node) _is_Sync(node)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment