libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Minus node

returns the additive inverse of its operand More...

Enumerations

enum  n_Minus { n_Minus_op, n_Minus_max = n_Minus_op }
 Input numbers for Minus node. More...
 

Functions

ir_nodenew_rd_Minus (dbg_info *dbgi, ir_node *block, ir_node *irn_op, ir_mode *mode)
 Construct a Minus node. More...
 
ir_nodenew_r_Minus (ir_node *block, ir_node *irn_op, ir_mode *mode)
 Construct a Minus node. More...
 
ir_nodenew_d_Minus (dbg_info *dbgi, ir_node *irn_op, ir_mode *mode)
 Construct a Minus node. More...
 
ir_nodenew_Minus (ir_node *irn_op, ir_mode *mode)
 Construct a Minus node. More...
 
int is_Minus (const ir_node *node)
 Test if node is a Minus. More...
 
ir_nodeget_Minus_op (const ir_node *node)
 Returns op input of a Minus node. More...
 
void set_Minus_op (ir_node *node, ir_node *op)
 Sets op input of a Minus node. More...
 
ir_opget_op_Minus (void)
 Returns opcode for Minus nodes. More...
 

Variables

ir_opop_Minus
 Minus opcode. More...
 

Detailed Description

returns the additive inverse of its operand

Enumeration Type Documentation

enum n_Minus

Input numbers for Minus node.

Enumerator
n_Minus_op 

operand

n_Minus_max 

Definition at line 2288 of file nodes.h.

Function Documentation

ir_node* get_Minus_op ( const ir_node node)

Returns op input of a Minus node.

Definition at line 1537 of file gen_irnode.c.

ir_op* get_op_Minus ( void  )

Returns opcode for Minus nodes.

Definition at line 1547 of file gen_irnode.c.

References op_Minus.

int is_Minus ( const ir_node node)

Test if node is a Minus.

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

Definition at line 3284 of file gen_irnode.c.

ir_node* new_d_Minus ( dbg_info dbgi,
ir_node irn_op,
ir_mode mode 
)

Construct a Minus node.

Parameters
dbgiA pointer to debug information.
irn_opop
modemode of the operations result

Definition at line 1525 of file gen_irnode.c.

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

Referenced by new_Minus().

ir_node* new_Minus ( ir_node irn_op,
ir_mode mode 
)

Construct a Minus node.

Parameters
irn_opop
modemode of the operations result

Definition at line 1532 of file gen_irnode.c.

References new_d_Minus().

ir_node* new_r_Minus ( ir_node block,
ir_node irn_op,
ir_mode mode 
)

Construct a Minus node.

Parameters
blockThe IR block the node belongs to.
irn_opop
modemode of the operations result

Definition at line 1520 of file gen_irnode.c.

References new_rd_Minus().

ir_node* new_rd_Minus ( dbg_info dbgi,
ir_node block,
ir_node irn_op,
ir_mode mode 
)

Construct a Minus node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_opop
modemode of the operations result

Definition at line 1505 of file gen_irnode.c.

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

Referenced by new_d_Minus(), and new_r_Minus().

void set_Minus_op ( ir_node node,
ir_node op 
)

Sets op input of a Minus node.

Definition at line 1542 of file gen_irnode.c.

Variable Documentation

ir_op* op_Minus

Minus opcode.

Definition at line 2340 of file nodes.h.

Referenced by get_op_Minus(), and new_rd_Minus().