libFirm

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)
 Construct a Sub node. More...
 
ir_nodenew_r_Sub (ir_node *block, ir_node *irn_left, ir_node *irn_right)
 Construct a Sub node. More...
 
ir_nodenew_d_Sub (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right)
 Construct a Sub node. More...
 
ir_nodenew_Sub (ir_node *irn_left, ir_node *irn_right)
 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 3875 of file nodes.h.

Function Documentation

ir_op* get_op_Sub ( void  )

Returns opcode for Sub nodes.

Definition at line 2698 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 2678 of file gen_irnode.c.

ir_node* get_Sub_right ( const ir_node node)

Returns right input of a Sub node.

Definition at line 2688 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 3480 of file gen_irnode.c.

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

Construct a Sub node.

Parameters
dbgiA pointer to debug information.
irn_leftleft
irn_rightright

Definition at line 2666 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 
)

Construct a Sub node.

Parameters
blockThe IR block the node belongs to.
irn_leftleft
irn_rightright

Definition at line 2661 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 
)

Construct a Sub node.

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

Definition at line 2645 of file gen_irnode.c.

References get_irn_irg(), get_irn_mode(), get_reference_offset_mode(), mode_is_reference(), 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 
)

Construct a Sub node.

Parameters
irn_leftleft
irn_rightright

Definition at line 2673 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 2683 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 2693 of file gen_irnode.c.

References op_Sub.

Variable Documentation

ir_op* op_Sub

Sub opcode.

Definition at line 3932 of file nodes.h.

Referenced by get_op_Sub(), new_rd_Sub(), set_Sub_right(), and set_typeconst_type().