libFirm

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 3074 of file nodes.h.

Function Documentation

ir_op* get_op_Proj ( void  )

Returns opcode for Proj nodes.

Definition at line 2134 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 3375 of file gen_irnode.c.

ir_node* get_Proj_pred ( const ir_node node)

Returns pred input of a Proj node.

Definition at line 2124 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 3370 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 2112 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 2119 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 2107 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 2091 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 3380 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 2129 of file gen_irnode.c.

References op_Proj.

Variable Documentation

ir_op* op_Proj

Proj opcode.

Definition at line 3133 of file nodes.h.

Referenced by get_op_Proj(), new_rd_Proj(), set_Proj_pred(), and set_typeconst_type().