libFirm 1.20
Return node

Returns from the current function. More...

Enumerations

enum  n_Return { n_Return_mem, n_Return_max = n_Return_mem }
 Input numbers for Return node. More...

Functions

ir_node ** get_Return_res_arr (ir_node *node)
 Returns return value inputs of Return node node as array.
size_t get_Return_n_ress (const ir_node *node)
 Returns number of return value inputs of Return node node.
ir_nodeget_Return_res (const ir_node *node, int pos)
 Returns return value input pos of Return node node.
void set_Return_res (ir_node *node, int pos, ir_node *res)
 Sets return value input pos of Return node node to value res.
ir_nodenew_rd_Return (dbg_info *dbgi, ir_node *block, ir_node *irn_mem, int arity, ir_node *const *in)
 Construct a Return node.
ir_nodenew_r_Return (ir_node *block, ir_node *irn_mem, int arity, ir_node *const *in)
 Construct a Return node.
ir_nodenew_d_Return (dbg_info *dbgi, ir_node *irn_mem, int arity, ir_node *const *in)
 Construct a Return node.
ir_nodenew_Return (ir_node *irn_mem, int arity, ir_node *const *in)
 Construct a Return node.
int is_Return (const ir_node *node)
 Test if node is a Return.
ir_nodeget_Return_mem (const ir_node *node)
 Returns mem input of a Return node.
void set_Return_mem (ir_node *node, ir_node *mem)
 Sets mem input of a Return node.
ir_opget_op_Return (void)
 Returns opcode for Return nodes.

Variables

ir_opop_Return
 Return opcode.

Detailed Description

Returns from the current function.

Takes memory and return values as operands.


Enumeration Type Documentation

enum n_Return

Input numbers for Return node.

Definition at line 2981 of file nodeops.h.


Function Documentation

ir_op* get_op_Return ( void  )

Returns opcode for Return nodes.

ir_node* get_Return_mem ( const ir_node node)

Returns mem input of a Return node.

size_t get_Return_n_ress ( const ir_node node)

Returns number of return value inputs of Return node node.

ir_node* get_Return_res ( const ir_node node,
int  pos 
)

Returns return value input pos of Return node node.

ir_node** get_Return_res_arr ( ir_node node)

Returns return value inputs of Return node node as array.

int is_Return ( const ir_node node)

Test if node is a Return.

Returns:
1 if the node is a Return node, 0 otherwise
ir_node* new_d_Return ( dbg_info dbgi,
ir_node irn_mem,
int  arity,
ir_node *const *  in 
)

Construct a Return node.

Parameters:
dbgiA pointer to debug information.
irn_memmemory dependency
aritysize of additional inputs array
inadditional inputs
ir_node* new_r_Return ( ir_node block,
ir_node irn_mem,
int  arity,
ir_node *const *  in 
)

Construct a Return node.

Parameters:
blockThe IR block the node belongs to.
irn_memmemory dependency
aritysize of additional inputs array
inadditional inputs
ir_node* new_rd_Return ( dbg_info dbgi,
ir_node block,
ir_node irn_mem,
int  arity,
ir_node *const *  in 
)

Construct a Return node.

Parameters:
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_memmemory dependency
aritysize of additional inputs array
inadditional inputs
ir_node* new_Return ( ir_node irn_mem,
int  arity,
ir_node *const *  in 
)

Construct a Return node.

Parameters:
irn_memmemory dependency
aritysize of additional inputs array
inadditional inputs
void set_Return_mem ( ir_node node,
ir_node mem 
)

Sets mem input of a Return node.

void set_Return_res ( ir_node node,
int  pos,
ir_node res 
)

Sets return value input pos of Return node node to value res.


Variable Documentation

Return opcode.

Definition at line 304 of file opcodes.h.