libFirm
Carry node

Computes the value of the carry-bit that would result when adding the 2 operands. More...

Enumerations

enum  n_Carry { n_Carry_left, n_Carry_right, n_Carry_max = n_Carry_right }
 Input numbers for Carry node. More...

Functions

ir_nodenew_rd_Carry (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Carry node.
ir_nodenew_r_Carry (ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Carry node.
ir_nodenew_d_Carry (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Carry node.
ir_nodenew_Carry (ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Carry node.
int is_Carry (const ir_node *node)
 Test if node is a Carry.
ir_nodeget_Carry_left (const ir_node *node)
 Returns left input of a Carry node.
void set_Carry_left (ir_node *node, ir_node *left)
 Sets left input of a Carry node.
ir_nodeget_Carry_right (const ir_node *node)
 Returns right input of a Carry node.
void set_Carry_right (ir_node *node, ir_node *right)
 Sets right input of a Carry node.
ir_opget_op_Carry (void)
 Returns opcode for Carry nodes.

Variables

ir_opop_Carry
 Carry opcode.

Detailed Description

Computes the value of the carry-bit that would result when adding the 2 operands.

Enumeration Type Documentation

enum n_Carry

Input numbers for Carry node.

Definition at line 834 of file nodeops.h.

Function Documentation

ir_node* get_Carry_left ( const ir_node node)

Returns left input of a Carry node.

ir_node* get_Carry_right ( const ir_node node)

Returns right input of a Carry node.

ir_op* get_op_Carry ( void  )

Returns opcode for Carry nodes.

int is_Carry ( const ir_node node)

Test if node is a Carry.

Returns
1 if the node is a Carry node, 0 otherwise
ir_node* new_Carry ( ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Carry node.

Parameters
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_d_Carry ( dbg_info dbgi,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Carry node.

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

Construct a Carry node.

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

Construct a Carry 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_Carry_left ( ir_node node,
ir_node left 
)

Sets left input of a Carry node.

void set_Carry_right ( ir_node node,
ir_node right 
)

Sets right input of a Carry node.

Variable Documentation

ir_op* op_Carry

Carry opcode.

Definition at line 148 of file opcodes.h.