libFirm
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)
 Construct a Minus node. More...
 
ir_nodenew_r_Minus (ir_node *block, ir_node *irn_op)
 Construct a Minus node. More...
 
ir_nodenew_d_Minus (dbg_info *dbgi, ir_node *irn_op)
 Construct a Minus node. More...
 
ir_nodenew_Minus (ir_node *irn_op)
 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 2273 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 1538 of file gen_irnode.c.

ir_op* get_op_Minus ( void  )

Returns opcode for Minus nodes.

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

ir_node* new_d_Minus ( dbg_info dbgi,
ir_node irn_op 
)

Construct a Minus node.

Parameters
dbgiA pointer to debug information.
irn_opop

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

Construct a Minus node.

Parameters
irn_opop

Definition at line 1533 of file gen_irnode.c.

References new_d_Minus().

ir_node* new_r_Minus ( ir_node block,
ir_node irn_op 
)

Construct a Minus node.

Parameters
blockThe IR block the node belongs to.
irn_opop

Definition at line 1521 of file gen_irnode.c.

References new_rd_Minus().

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

Construct a Minus node.

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

Definition at line 1506 of file gen_irnode.c.

References get_irn_irg(), get_irn_mode(), 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 1543 of file gen_irnode.c.

References op_Minus.

Variable Documentation

ir_op* op_Minus

Minus opcode.

Definition at line 2321 of file nodes.h.

Referenced by get_op_Minus(), new_rd_Minus(), set_Minus_op(), and set_typeconst_type().