libFirm
Mul node

returns the product of its operands More...

Enumerations

enum  n_Mul { n_Mul_left, n_Mul_right, n_Mul_max = n_Mul_right }
 Input numbers for Mul node. More...

Functions

ir_nodenew_rd_Mul (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Mul node.
ir_nodenew_r_Mul (ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Mul node.
ir_nodenew_d_Mul (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Mul node.
ir_nodenew_Mul (ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Mul node.
int is_Mul (const ir_node *node)
 Test if node is a Mul.
ir_nodeget_Mul_left (const ir_node *node)
 Returns left input of a Mul node.
void set_Mul_left (ir_node *node, ir_node *left)
 Sets left input of a Mul node.
ir_nodeget_Mul_right (const ir_node *node)
 Returns right input of a Mul node.
void set_Mul_right (ir_node *node, ir_node *right)
 Sets right input of a Mul node.
ir_opget_op_Mul (void)
 Returns opcode for Mul nodes.

Variables

ir_opop_Mul
 Mul opcode.

Detailed Description

returns the product of its operands

Enumeration Type Documentation

enum n_Mul

Input numbers for Mul node.

Definition at line 2330 of file nodeops.h.

Function Documentation

ir_node* get_Mul_left ( const ir_node node)

Returns left input of a Mul node.

ir_node* get_Mul_right ( const ir_node node)

Returns right input of a Mul node.

ir_op* get_op_Mul ( void  )

Returns opcode for Mul nodes.

int is_Mul ( const ir_node node)

Test if node is a Mul.

Returns
1 if the node is a Mul node, 0 otherwise
ir_node* new_d_Mul ( dbg_info dbgi,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Mul node.

Parameters
dbgiA pointer to debug information.
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_Mul ( ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Mul node.

Parameters
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_r_Mul ( ir_node block,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Mul node.

Parameters
blockThe IR block the node belongs to.
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_rd_Mul ( dbg_info dbgi,
ir_node block,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Mul node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
void set_Mul_left ( ir_node node,
ir_node left 
)

Sets left input of a Mul node.

void set_Mul_right ( ir_node node,
ir_node right 
)

Sets right input of a Mul node.

Variable Documentation

ir_op* op_Mul

Mul opcode.

Definition at line 253 of file opcodes.h.