libFirm

Returns its first operands bits shifted right by the amount of the 2nd operand. More...

Enumerations

enum  n_Shr { n_Shr_left, n_Shr_right, n_Shr_max = n_Shr_right }
 Input numbers for Shr node. More...
 

Functions

ir_nodenew_rd_Shr (dbg_info *dbgi, ir_node *block, ir_node *irn_left, ir_node *irn_right)
 Construct a Shr node. More...
 
ir_nodenew_r_Shr (ir_node *block, ir_node *irn_left, ir_node *irn_right)
 Construct a Shr node. More...
 
ir_nodenew_d_Shr (dbg_info *dbgi, ir_node *irn_left, ir_node *irn_right)
 Construct a Shr node. More...
 
ir_nodenew_Shr (ir_node *irn_left, ir_node *irn_right)
 Construct a Shr node. More...
 
int is_Shr (const ir_node *node)
 Test if node is a Shr. More...
 
ir_nodeget_Shr_left (const ir_node *node)
 Returns left input of a Shr node. More...
 
void set_Shr_left (ir_node *node, ir_node *left)
 Sets left input of a Shr node. More...
 
ir_nodeget_Shr_right (const ir_node *node)
 Returns right input of a Shr node. More...
 
void set_Shr_right (ir_node *node, ir_node *right)
 Sets right input of a Shr node. More...
 
ir_opget_op_Shr (void)
 Returns opcode for Shr nodes. More...
 

Variables

ir_opop_Shr
 Shr opcode. More...
 

Detailed Description

Returns its first operands bits shifted right by the amount of the 2nd operand.

No special handling for the sign bit is performed (zero extension). The right input (shift amount) must be an unsigned integer value. If the result mode has modulo_shift!=0, then the effective shift amount is the right input modulo this modulo_shift amount.

Enumeration Type Documentation

enum n_Shr

Input numbers for Shr node.

Enumerator
n_Shr_left 

first operand

n_Shr_right 

second operand

n_Shr_max 

Definition at line 3485 of file nodes.h.

Function Documentation

ir_op* get_op_Shr ( void  )

Returns opcode for Shr nodes.

Definition at line 2437 of file gen_irnode.c.

References op_Shr.

ir_node* get_Shr_left ( const ir_node node)

Returns left input of a Shr node.

Definition at line 2417 of file gen_irnode.c.

ir_node* get_Shr_right ( const ir_node node)

Returns right input of a Shr node.

Definition at line 2427 of file gen_irnode.c.

int is_Shr ( const ir_node node)

Test if node is a Shr.

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

Definition at line 3415 of file gen_irnode.c.

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

Construct a Shr node.

Parameters
dbgiA pointer to debug information.
irn_leftleft
irn_rightright

Definition at line 2405 of file gen_irnode.c.

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

Referenced by new_Shr().

ir_node* new_r_Shr ( ir_node block,
ir_node irn_left,
ir_node irn_right 
)

Construct a Shr node.

Parameters
blockThe IR block the node belongs to.
irn_leftleft
irn_rightright

Definition at line 2400 of file gen_irnode.c.

References new_rd_Shr().

ir_node* new_rd_Shr ( dbg_info dbgi,
ir_node block,
ir_node irn_left,
ir_node irn_right 
)

Construct a Shr node.

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

Definition at line 2384 of file gen_irnode.c.

References get_irn_irg(), get_irn_mode(), new_ir_node(), op_Shr, optimize_node(), and verify_new_node().

Referenced by new_d_Shr(), and new_r_Shr().

ir_node* new_Shr ( ir_node irn_left,
ir_node irn_right 
)

Construct a Shr node.

Parameters
irn_leftleft
irn_rightright

Definition at line 2412 of file gen_irnode.c.

References new_d_Shr().

void set_Shr_left ( ir_node node,
ir_node left 
)

Sets left input of a Shr node.

Definition at line 2422 of file gen_irnode.c.

void set_Shr_right ( ir_node node,
ir_node right 
)

Sets right input of a Shr node.

Definition at line 2432 of file gen_irnode.c.

References op_Shr.

Variable Documentation

ir_op* op_Shr

Shr opcode.

Definition at line 3542 of file nodes.h.

Referenced by get_op_Shr(), new_rd_Shr(), set_Shr_right(), and set_typeconst_type().