libFirm
Loading...
Searching...
No Matches

Enumerations

enum  n_Sel { n_Sel_ptr , n_Sel_index , n_Sel_max = n_Sel_index }
 Input numbers for Sel node. More...
 

Functions

ir_nodenew_rd_Sel (dbg_info *dbgi, ir_node *block, ir_node *irn_ptr, ir_node *irn_index, ir_type *type)
 Construct a Sel node.
 
ir_nodenew_r_Sel (ir_node *block, ir_node *irn_ptr, ir_node *irn_index, ir_type *type)
 Construct a Sel node.
 
ir_nodenew_d_Sel (dbg_info *dbgi, ir_node *irn_ptr, ir_node *irn_index, ir_type *type)
 Construct a Sel node.
 
ir_nodenew_Sel (ir_node *irn_ptr, ir_node *irn_index, ir_type *type)
 Construct a Sel node.
 
int is_Sel (const ir_node *node)
 Test if node is a Sel.
 
ir_nodeget_Sel_ptr (const ir_node *node)
 Returns ptr input of a Sel node.
 
void set_Sel_ptr (ir_node *node, ir_node *ptr)
 Sets ptr input of a Sel node.
 
ir_nodeget_Sel_index (const ir_node *node)
 Returns index input of a Sel node.
 
void set_Sel_index (ir_node *node, ir_node *index)
 Sets index input of a Sel node.
 
ir_typeget_Sel_type (const ir_node *node)
 Returns type attribute of a Sel node.
 
void set_Sel_type (ir_node *node, ir_type *type)
 Sets type attribute of a Sel node.
 
ir_opget_op_Sel (void)
 Returns opcode for Sel nodes.
 

Variables

ir_opop_Sel
 Sel opcode.
 

Detailed Description

Computes the address of an array element from the array base pointer and an index.

A Sel node must only produce a NULL pointer if the ptr input is NULL.

Enumeration Type Documentation

◆ n_Sel

enum n_Sel

Input numbers for Sel node.

Enumerator
n_Sel_ptr 

pointer to array to select from

n_Sel_index 

index to select

n_Sel_max 

Definition at line 3391 of file nodes.h.

Function Documentation

◆ get_op_Sel()

ir_op * get_op_Sel ( void )

Returns opcode for Sel nodes.

◆ get_Sel_index()

ir_node * get_Sel_index ( const ir_node * node)

Returns index input of a Sel node.

◆ get_Sel_ptr()

ir_node * get_Sel_ptr ( const ir_node * node)

Returns ptr input of a Sel node.

◆ get_Sel_type()

ir_type * get_Sel_type ( const ir_node * node)

Returns type attribute of a Sel node.

◆ is_Sel()

int is_Sel ( const ir_node * node)

Test if node is a Sel.

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

◆ new_d_Sel()

ir_node * new_d_Sel ( dbg_info * dbgi,
ir_node * irn_ptr,
ir_node * irn_index,
ir_type * type )

Construct a Sel node.

Parameters
dbgiA pointer to debug information.
irn_ptrptr
irn_indexindex
typearray type

◆ new_r_Sel()

ir_node * new_r_Sel ( ir_node * block,
ir_node * irn_ptr,
ir_node * irn_index,
ir_type * type )

Construct a Sel node.

Parameters
blockThe IR block the node belongs to.
irn_ptrptr
irn_indexindex
typearray type

◆ new_rd_Sel()

ir_node * new_rd_Sel ( dbg_info * dbgi,
ir_node * block,
ir_node * irn_ptr,
ir_node * irn_index,
ir_type * type )

Construct a Sel node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_ptrptr
irn_indexindex
typearray type

◆ new_Sel()

ir_node * new_Sel ( ir_node * irn_ptr,
ir_node * irn_index,
ir_type * type )

Construct a Sel node.

Parameters
irn_ptrptr
irn_indexindex
typearray type

◆ set_Sel_index()

void set_Sel_index ( ir_node * node,
ir_node * index )

Sets index input of a Sel node.

◆ set_Sel_ptr()

void set_Sel_ptr ( ir_node * node,
ir_node * ptr )

Sets ptr input of a Sel node.

◆ set_Sel_type()

void set_Sel_type ( ir_node * node,
ir_type * type )

Sets type attribute of a Sel node.

Variable Documentation

◆ op_Sel

ir_op* op_Sel

Sel opcode.

Definition at line 3457 of file nodes.h.