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

returns an entry of a tuple value More...

Enumerations

enum  n_Proj { n_Proj_pred, n_Proj_max = n_Proj_pred }
 Input numbers for Proj node. More...
 

Functions

ir_nodenew_rd_Proj (dbg_info *dbgi, ir_node *irn_pred, ir_mode *mode, unsigned num)
 Construct a Proj node. More...
 
ir_nodenew_r_Proj (ir_node *irn_pred, ir_mode *mode, unsigned num)
 Construct a Proj node. More...
 
ir_nodenew_d_Proj (dbg_info *dbgi, ir_node *irn_pred, ir_mode *mode, unsigned num)
 Construct a Proj node. More...
 
ir_nodenew_Proj (ir_node *irn_pred, ir_mode *mode, unsigned num)
 Construct a Proj node. More...
 
int is_Proj (const ir_node *node)
 Test if node is a Proj. More...
 
ir_nodeget_Proj_pred (const ir_node *node)
 Returns pred input of a Proj node. More...
 
void set_Proj_pred (ir_node *node, ir_node *pred)
 Sets pred input of a Proj node. More...
 
unsigned get_Proj_num (const ir_node *node)
 Returns num attribute of a Proj node. More...
 
void set_Proj_num (ir_node *node, unsigned num)
 Sets num attribute of a Proj node. More...
 
ir_opget_op_Proj (void)
 Returns opcode for Proj nodes. More...
 

Variables

ir_opop_Proj
 Proj opcode. More...
 

Detailed Description

returns an entry of a tuple value

Enumeration Type Documentation

enum n_Proj

Input numbers for Proj node.

Enumerator
n_Proj_pred 

the tuple value from which a part is extracted

n_Proj_max 

Definition at line 3117 of file nodes.h.

Function Documentation

ir_op* get_op_Proj ( void  )

Returns opcode for Proj nodes.

Definition at line 2133 of file gen_irnode.c.

References op_Proj.

unsigned get_Proj_num ( const ir_node node)

Returns num attribute of a Proj node.

Definition at line 3374 of file gen_irnode.c.

ir_node* get_Proj_pred ( const ir_node node)

Returns pred input of a Proj node.

Definition at line 2123 of file gen_irnode.c.

int is_Proj ( const ir_node node)

Test if node is a Proj.

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

Definition at line 3369 of file gen_irnode.c.

ir_node* new_d_Proj ( dbg_info dbgi,
ir_node irn_pred,
ir_mode mode,
unsigned  num 
)

Construct a Proj node.

Parameters
dbgiA pointer to debug information.
irn_predpred
modemode of the operations result
numnumber of tuple component to be extracted

Definition at line 2111 of file gen_irnode.c.

References current_ir_graph, IR_GRAPH_CONSTRAINT_CONSTRUCTION, irg_is_constrained(), and new_rd_Proj().

Referenced by new_Proj().

ir_node* new_Proj ( ir_node irn_pred,
ir_mode mode,
unsigned  num 
)

Construct a Proj node.

Parameters
irn_predpred
modemode of the operations result
numnumber of tuple component to be extracted

Definition at line 2118 of file gen_irnode.c.

References new_d_Proj().

ir_node* new_r_Proj ( ir_node irn_pred,
ir_mode mode,
unsigned  num 
)

Construct a Proj node.

Parameters
irn_predpred
modemode of the operations result
numnumber of tuple component to be extracted

Definition at line 2106 of file gen_irnode.c.

References new_rd_Proj().

ir_node* new_rd_Proj ( dbg_info dbgi,
ir_node irn_pred,
ir_mode mode,
unsigned  num 
)

Construct a Proj node.

Parameters
dbgiA pointer to debug information.
irn_predpred
modemode of the operations result
numnumber of tuple component to be extracted

Definition at line 2090 of file gen_irnode.c.

References get_irn_irg(), get_nodes_block(), new_ir_node(), op_Proj, optimize_node(), and verify_new_node().

Referenced by new_d_Proj(), and new_r_Proj().

void set_Proj_num ( ir_node node,
unsigned  num 
)

Sets num attribute of a Proj node.

Definition at line 3379 of file gen_irnode.c.

void set_Proj_pred ( ir_node node,
ir_node pred 
)

Sets pred input of a Proj node.

Definition at line 2128 of file gen_irnode.c.

Variable Documentation

ir_op* op_Proj

Proj opcode.

Definition at line 3176 of file nodes.h.

Referenced by get_op_Proj(), and new_rd_Proj().