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

Frees a block of memory previously allocated by an Alloc node. More...

Enumerations

enum  n_Free { n_Free_mem, n_Free_ptr, n_Free_max = n_Free_ptr }
 Input numbers for Free node. More...
 

Functions

ir_nodenew_rd_Free (dbg_info *dbgi, ir_node *block, ir_node *irn_mem, ir_node *irn_ptr)
 Construct a Free node. More...
 
ir_nodenew_r_Free (ir_node *block, ir_node *irn_mem, ir_node *irn_ptr)
 Construct a Free node. More...
 
ir_nodenew_d_Free (dbg_info *dbgi, ir_node *irn_mem, ir_node *irn_ptr)
 Construct a Free node. More...
 
ir_nodenew_Free (ir_node *irn_mem, ir_node *irn_ptr)
 Construct a Free node. More...
 
int is_Free (const ir_node *node)
 Test if node is a Free. More...
 
ir_nodeget_Free_mem (const ir_node *node)
 Returns mem input of a Free node. More...
 
void set_Free_mem (ir_node *node, ir_node *mem)
 Sets mem input of a Free node. More...
 
ir_nodeget_Free_ptr (const ir_node *node)
 Returns ptr input of a Free node. More...
 
void set_Free_ptr (ir_node *node, ir_node *ptr)
 Sets ptr input of a Free node. More...
 
ir_opget_op_Free (void)
 Returns opcode for Free nodes. More...
 

Variables

ir_opop_Free
 Free opcode. More...
 

Detailed Description

Frees a block of memory previously allocated by an Alloc node.

Enumeration Type Documentation

enum n_Free

Input numbers for Free node.

Enumerator
n_Free_mem 

memory dependency

n_Free_ptr 

pointer to the object to free

n_Free_max 

Definition at line 1867 of file nodes.h.

Function Documentation

ir_node* get_Free_mem ( const ir_node node)

Returns mem input of a Free node.

Definition at line 1270 of file gen_irnode.c.

ir_node* get_Free_ptr ( const ir_node node)

Returns ptr input of a Free node.

Definition at line 1280 of file gen_irnode.c.

ir_op* get_op_Free ( void  )

Returns opcode for Free nodes.

Definition at line 1290 of file gen_irnode.c.

References op_Free.

int is_Free ( const ir_node node)

Test if node is a Free.

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

Definition at line 3204 of file gen_irnode.c.

ir_node* new_d_Free ( dbg_info dbgi,
ir_node irn_mem,
ir_node irn_ptr 
)

Construct a Free node.

Parameters
dbgiA pointer to debug information.
irn_memmem
irn_ptrptr

Definition at line 1258 of file gen_irnode.c.

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

Referenced by new_Free().

ir_node* new_Free ( ir_node irn_mem,
ir_node irn_ptr 
)

Construct a Free node.

Parameters
irn_memmem
irn_ptrptr

Definition at line 1265 of file gen_irnode.c.

References new_d_Free().

ir_node* new_r_Free ( ir_node block,
ir_node irn_mem,
ir_node irn_ptr 
)

Construct a Free node.

Parameters
blockThe IR block the node belongs to.
irn_memmem
irn_ptrptr

Definition at line 1253 of file gen_irnode.c.

References new_rd_Free().

ir_node* new_rd_Free ( dbg_info dbgi,
ir_node block,
ir_node irn_mem,
ir_node irn_ptr 
)

Construct a Free node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_memmem
irn_ptrptr

Definition at line 1237 of file gen_irnode.c.

References get_irn_irg(), mode_M, new_ir_node(), op_Free, optimize_node(), and verify_new_node().

Referenced by new_d_Free(), and new_r_Free().

void set_Free_mem ( ir_node node,
ir_node mem 
)

Sets mem input of a Free node.

Definition at line 1275 of file gen_irnode.c.

void set_Free_ptr ( ir_node node,
ir_node ptr 
)

Sets ptr input of a Free node.

Definition at line 1285 of file gen_irnode.c.

Variable Documentation

ir_op* op_Free

Free opcode.

Definition at line 1924 of file nodes.h.

Referenced by get_op_Free(), and new_rd_Free().