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

returns the bitwise complement of a value. More...

Enumerations

enum  n_Not { n_Not_op, n_Not_max = n_Not_op }
 Input numbers for Not node. More...
 

Functions

ir_nodenew_rd_Not (dbg_info *dbgi, ir_node *block, ir_node *irn_op, ir_mode *mode)
 Construct a Not node. More...
 
ir_nodenew_r_Not (ir_node *block, ir_node *irn_op, ir_mode *mode)
 Construct a Not node. More...
 
ir_nodenew_d_Not (dbg_info *dbgi, ir_node *irn_op, ir_mode *mode)
 Construct a Not node. More...
 
ir_nodenew_Not (ir_node *irn_op, ir_mode *mode)
 Construct a Not node. More...
 
int is_Not (const ir_node *node)
 Test if node is a Not. More...
 
ir_nodeget_Not_op (const ir_node *node)
 Returns op input of a Not node. More...
 
void set_Not_op (ir_node *node, ir_node *op)
 Sets op input of a Not node. More...
 
ir_opget_op_Not (void)
 Returns opcode for Not nodes. More...
 

Variables

ir_opop_Not
 Not opcode. More...
 

Detailed Description

returns the bitwise complement of a value.

Works for boolean values, too.

Enumeration Type Documentation

enum n_Not

Input numbers for Not node.

Enumerator
n_Not_op 

operand

n_Not_max 

Definition at line 2765 of file nodes.h.

Function Documentation

ir_node* get_Not_op ( const ir_node node)

Returns op input of a Not node.

Definition at line 1876 of file gen_irnode.c.

ir_op* get_op_Not ( void  )

Returns opcode for Not nodes.

Definition at line 1886 of file gen_irnode.c.

References op_Not.

int is_Not ( const ir_node node)

Test if node is a Not.

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

Definition at line 3324 of file gen_irnode.c.

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

Construct a Not node.

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

Definition at line 1864 of file gen_irnode.c.

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

Referenced by new_Not().

ir_node* new_Not ( ir_node irn_op,
ir_mode mode 
)

Construct a Not node.

Parameters
irn_opop
modemode of the operations result

Definition at line 1871 of file gen_irnode.c.

References new_d_Not().

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

Construct a Not node.

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

Definition at line 1859 of file gen_irnode.c.

References new_rd_Not().

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

Construct a Not node.

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

Definition at line 1844 of file gen_irnode.c.

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

Referenced by new_d_Not(), and new_r_Not().

void set_Not_op ( ir_node node,
ir_node op 
)

Sets op input of a Not node.

Definition at line 1881 of file gen_irnode.c.

Variable Documentation

ir_op* op_Not

Not opcode.

Definition at line 2817 of file nodes.h.

Referenced by get_op_Not(), and new_rd_Not().