libFirm 1.20
Sub node

returns the difference of its operands More...

Enumerations

enum  n_Sub { n_Sub_left, n_Sub_right, n_Sub_max = n_Sub_right }
 Input numbers for Sub node. More...

Functions

ir_nodenew_rd_Sub (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node.
ir_nodenew_r_Sub (ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node.
ir_nodenew_d_Sub (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node.
ir_nodenew_Sub (ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node.
int is_Sub (const ir_node *node)
 Test if node is a Sub.
ir_nodeget_Sub_left (const ir_node *node)
 Returns left input of a Sub node.
void set_Sub_left (ir_node *node, ir_node *left)
 Sets left input of a Sub node.
ir_nodeget_Sub_right (const ir_node *node)
 Returns right input of a Sub node.
void set_Sub_right (ir_node *node, ir_node *right)
 Sets right input of a Sub node.
ir_opget_op_Sub (void)
 Returns opcode for Sub nodes.

Variables

ir_opop_Sub
 Sub opcode.

Detailed Description

returns the difference of its operands


Enumeration Type Documentation

enum n_Sub

Input numbers for Sub node.

Definition at line 3582 of file nodeops.h.


Function Documentation

ir_op* get_op_Sub ( void  )

Returns opcode for Sub nodes.

ir_node* get_Sub_left ( const ir_node node)

Returns left input of a Sub node.

ir_node* get_Sub_right ( const ir_node node)

Returns right input of a Sub node.

int is_Sub ( const ir_node node)

Test if node is a Sub.

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

Construct a Sub node.

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

Construct a Sub node.

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

Construct a Sub 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
ir_node* new_Sub ( ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Sub node.

Parameters:
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
void set_Sub_left ( ir_node node,
ir_node left 
)

Sets left input of a Sub node.

void set_Sub_right ( ir_node node,
ir_node right 
)

Sets right input of a Sub node.


Variable Documentation

Sub opcode.

Definition at line 344 of file opcodes.h.