libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
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. More...
 
ir_nodenew_r_Sub (ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node. More...
 
ir_nodenew_d_Sub (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node. More...
 
ir_nodenew_Sub (ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct a Sub node. More...
 
int is_Sub (const ir_node *node)
 Test if node is a Sub. More...
 
ir_nodeget_Sub_left (const ir_node *node)
 Returns left input of a Sub node. More...
 
void set_Sub_left (ir_node *node, ir_node *left)
 Sets left input of a Sub node. More...
 
ir_nodeget_Sub_right (const ir_node *node)
 Returns right input of a Sub node. More...
 
void set_Sub_right (ir_node *node, ir_node *right)
 Sets right input of a Sub node. More...
 
ir_opget_op_Sub (void)
 Returns opcode for Sub nodes. More...
 

Variables

ir_opop_Sub
 Sub opcode. More...
 

Detailed Description

returns the difference of its operands

Enumeration Type Documentation

enum n_Sub

Input numbers for Sub node.

Enumerator
n_Sub_left 

first operand

n_Sub_right 

second operand

n_Sub_max 

Definition at line 3930 of file nodes.h.

Function Documentation

ir_op* get_op_Sub ( void  )

Returns opcode for Sub nodes.

Definition at line 2697 of file gen_irnode.c.

References op_Sub.

ir_node* get_Sub_left ( const ir_node node)

Returns left input of a Sub node.

Definition at line 2677 of file gen_irnode.c.

ir_node* get_Sub_right ( const ir_node node)

Returns right input of a Sub node.

Definition at line 2687 of file gen_irnode.c.

int is_Sub ( const ir_node node)

Test if node is a Sub.

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

Definition at line 3479 of file gen_irnode.c.

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_leftleft
irn_rightright
modemode of the operations result

Definition at line 2665 of file gen_irnode.c.

References current_ir_graph, get_cur_block(), IR_GRAPH_CONSTRAINT_CONSTRUCTION, irg_is_constrained(), and new_rd_Sub().

Referenced by new_Sub().

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_leftleft
irn_rightright
modemode of the operations result

Definition at line 2660 of file gen_irnode.c.

References new_rd_Sub().

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_leftleft
irn_rightright
modemode of the operations result

Definition at line 2644 of file gen_irnode.c.

References get_irn_irg(), new_ir_node(), op_Sub, optimize_node(), and verify_new_node().

Referenced by new_d_Sub(), and new_r_Sub().

ir_node* new_Sub ( ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct a Sub node.

Parameters
irn_leftleft
irn_rightright
modemode of the operations result

Definition at line 2672 of file gen_irnode.c.

References new_d_Sub().

void set_Sub_left ( ir_node node,
ir_node left 
)

Sets left input of a Sub node.

Definition at line 2682 of file gen_irnode.c.

void set_Sub_right ( ir_node node,
ir_node right 
)

Sets right input of a Sub node.

Definition at line 2692 of file gen_irnode.c.

Variable Documentation

ir_op* op_Sub

Sub opcode.

Definition at line 3991 of file nodes.h.

Referenced by get_op_Sub(), and new_rd_Sub().