libFirm
And node

returns the result of a bitwise and operation of its operands More...

Enumerations

enum  n_And { n_And_left, n_And_right, n_And_max = n_And_right }
 Input numbers for And node. More...

Functions

ir_nodenew_rd_And (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct an And node.
ir_nodenew_r_And (ir_node *block, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct an And node.
ir_nodenew_d_And (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct an And node.
ir_nodenew_And (ir_node *irn_left, ir_node *irn_right, ir_mode *mode)
 Construct an And node.
int is_And (const ir_node *node)
 Test if node is a And.
ir_nodeget_And_left (const ir_node *node)
 Returns left input of an And node.
void set_And_left (ir_node *node, ir_node *left)
 Sets left input of an And node.
ir_nodeget_And_right (const ir_node *node)
 Returns right input of an And node.
void set_And_right (ir_node *node, ir_node *right)
 Sets right input of an And node.
ir_opget_op_And (void)
 Returns opcode for And nodes.

Variables

ir_opop_And
 And opcode.

Detailed Description

returns the result of a bitwise and operation of its operands

Enumeration Type Documentation

enum n_And

Input numbers for And node.

Definition at line 284 of file nodeops.h.

Function Documentation

ir_node* get_And_left ( const ir_node node)

Returns left input of an And node.

ir_node* get_And_right ( const ir_node node)

Returns right input of an And node.

ir_op* get_op_And ( void  )

Returns opcode for And nodes.

int is_And ( const ir_node node)

Test if node is a And.

Returns
1 if the node is a And node, 0 otherwise
ir_node* new_And ( ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct an And node.

Parameters
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_d_And ( dbg_info dbgi,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct an And node.

Parameters
dbgiA pointer to debug information.
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_r_And ( ir_node block,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct an And node.

Parameters
blockThe IR block the node belongs to.
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
ir_node* new_rd_And ( dbg_info dbgi,
ir_node block,
ir_node irn_left,
ir_node irn_right,
ir_mode mode 
)

Construct an And node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_leftfirst operand
irn_rightsecond operand
modemode of the operations result
void set_And_left ( ir_node node,
ir_node left 
)

Sets left input of an And node.

void set_And_right ( ir_node node,
ir_node right 
)

Sets right input of an And node.

Variable Documentation

ir_op* op_And

And opcode.

Definition at line 113 of file opcodes.h.