libFirm
Loading...
Searching...
No Matches

Enumerations

enum  n_Add { n_Add_left , n_Add_right , n_Add_max = n_Add_right }
 Input numbers for Add node. More...
 

Functions

ir_nodenew_rd_Add (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right)
 Construct an Add node.
 
ir_nodenew_r_Add (ir_node *block, ir_node *irn_left, ir_node *irn_right)
 Construct an Add node.
 
ir_nodenew_d_Add (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right)
 Construct an Add node.
 
ir_nodenew_Add (ir_node *irn_left, ir_node *irn_right)
 Construct an Add node.
 
int is_Add (const ir_node *node)
 Test if node is a Add.
 
ir_nodeget_Add_left (const ir_node *node)
 Returns left input of an Add node.
 
void set_Add_left (ir_node *node, ir_node *left)
 Sets left input of an Add node.
 
ir_nodeget_Add_right (const ir_node *node)
 Returns right input of an Add node.
 
void set_Add_right (ir_node *node, ir_node *right)
 Sets right input of an Add node.
 
ir_opget_op_Add (void)
 Returns opcode for Add nodes.
 

Variables

ir_opop_Add
 Add opcode.
 

Detailed Description

returns the sum of its operands

Enumeration Type Documentation

◆ n_Add

enum n_Add

Input numbers for Add node.

Enumerator
n_Add_left 

first operand

n_Add_right 

second operand

n_Add_max 

Definition at line 246 of file nodes.h.

Function Documentation

◆ get_Add_left()

ir_node * get_Add_left ( const ir_node * node)

Returns left input of an Add node.

◆ get_Add_right()

ir_node * get_Add_right ( const ir_node * node)

Returns right input of an Add node.

◆ get_op_Add()

ir_op * get_op_Add ( void )

Returns opcode for Add nodes.

◆ is_Add()

int is_Add ( const ir_node * node)

Test if node is a Add.

Returns
1 if the node is a Add node, 0 otherwise

◆ new_Add()

ir_node * new_Add ( ir_node * irn_left,
ir_node * irn_right )

Construct an Add node.

Parameters
irn_leftleft
irn_rightright

◆ new_d_Add()

ir_node * new_d_Add ( dbg_info * dbgi,
ir_node * irn_left,
ir_node * irn_right )

Construct an Add node.

Parameters
dbgiA pointer to debug information.
irn_leftleft
irn_rightright

◆ new_r_Add()

ir_node * new_r_Add ( ir_node * block,
ir_node * irn_left,
ir_node * irn_right )

Construct an Add node.

Parameters
blockThe IR block the node belongs to.
irn_leftleft
irn_rightright

◆ new_rd_Add()

ir_node * new_rd_Add ( dbg_info * dbgi,
ir_node * block,
ir_node * irn_left,
ir_node * irn_right )

Construct an Add node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_leftleft
irn_rightright

◆ set_Add_left()

void set_Add_left ( ir_node * node,
ir_node * left )

Sets left input of an Add node.

◆ set_Add_right()

void set_Add_right ( ir_node * node,
ir_node * right )

Sets right input of an Add node.

Variable Documentation

◆ op_Add

ir_op* op_Add

Add opcode.

Definition at line 303 of file nodes.h.