libFirm 1.20
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_count, n_Free_max = n_Free_count }
 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, ir_node *irn_count, ir_type *type, ir_where_alloc where)
 Construct a Free node.
ir_nodenew_r_Free (ir_node *block, ir_node *irn_mem, ir_node *irn_ptr, ir_node *irn_count, ir_type *type, ir_where_alloc where)
 Construct a Free node.
ir_nodenew_d_Free (dbg_info *dbgi, ir_node *irn_mem, ir_node *irn_ptr, ir_node *irn_count, ir_type *type, ir_where_alloc where)
 Construct a Free node.
ir_nodenew_Free (ir_node *irn_mem, ir_node *irn_ptr, ir_node *irn_count, ir_type *type, ir_where_alloc where)
 Construct a Free node.
int is_Free (const ir_node *node)
 Test if node is a Free.
ir_nodeget_Free_mem (const ir_node *node)
 Returns mem input of a Free node.
void set_Free_mem (ir_node *node, ir_node *mem)
 Sets mem input of a Free node.
ir_nodeget_Free_ptr (const ir_node *node)
 Returns ptr input of a Free node.
void set_Free_ptr (ir_node *node, ir_node *ptr)
 Sets ptr input of a Free node.
ir_nodeget_Free_count (const ir_node *node)
 Returns count input of a Free node.
void set_Free_count (ir_node *node, ir_node *count)
 Sets count input of a Free node.
ir_typeget_Free_type (const ir_node *node)
 Returns type attribute of a Free node.
void set_Free_type (ir_node *node, ir_type *type)
 Sets type attribute of a Free node.
ir_where_alloc get_Free_where (const ir_node *node)
 Returns where attribute of a Free node.
void set_Free_where (ir_node *node, ir_where_alloc where)
 Sets where attribute of a Free node.
ir_opget_op_Free (void)
 Returns opcode for Free nodes.

Variables

ir_opop_Free
 Free opcode.

Detailed Description

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


Enumeration Type Documentation

enum n_Free

Input numbers for Free node.

Definition at line 1690 of file nodeops.h.


Function Documentation

ir_node* get_Free_count ( const ir_node node)

Returns count input of a Free node.

ir_node* get_Free_mem ( const ir_node node)

Returns mem input of a Free node.

ir_node* get_Free_ptr ( const ir_node node)

Returns ptr input of a Free node.

ir_type* get_Free_type ( const ir_node node)

Returns type attribute of a Free node.

ir_where_alloc get_Free_where ( const ir_node node)

Returns where attribute of a Free node.

ir_op* get_op_Free ( void  )

Returns opcode for Free nodes.

int is_Free ( const ir_node node)

Test if node is a Free.

Returns:
1 if the node is a Free node, 0 otherwise
ir_node* new_d_Free ( dbg_info dbgi,
ir_node irn_mem,
ir_node irn_ptr,
ir_node irn_count,
ir_type type,
ir_where_alloc  where 
)

Construct a Free node.

Parameters:
dbgiA pointer to debug information.
irn_memmemory dependency
irn_ptrpointer to the object to free
irn_countnumber of objects to allocate
typetype of the allocated variable
wherewhether allocation was on the stack or heap
ir_node* new_Free ( ir_node irn_mem,
ir_node irn_ptr,
ir_node irn_count,
ir_type type,
ir_where_alloc  where 
)

Construct a Free node.

Parameters:
irn_memmemory dependency
irn_ptrpointer to the object to free
irn_countnumber of objects to allocate
typetype of the allocated variable
wherewhether allocation was on the stack or heap
ir_node* new_r_Free ( ir_node block,
ir_node irn_mem,
ir_node irn_ptr,
ir_node irn_count,
ir_type type,
ir_where_alloc  where 
)

Construct a Free node.

Parameters:
blockThe IR block the node belongs to.
irn_memmemory dependency
irn_ptrpointer to the object to free
irn_countnumber of objects to allocate
typetype of the allocated variable
wherewhether allocation was on the stack or heap
ir_node* new_rd_Free ( dbg_info dbgi,
ir_node block,
ir_node irn_mem,
ir_node irn_ptr,
ir_node irn_count,
ir_type type,
ir_where_alloc  where 
)

Construct a Free node.

Parameters:
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_memmemory dependency
irn_ptrpointer to the object to free
irn_countnumber of objects to allocate
typetype of the allocated variable
wherewhether allocation was on the stack or heap
void set_Free_count ( ir_node node,
ir_node count 
)

Sets count input of a Free node.

void set_Free_mem ( ir_node node,
ir_node mem 
)

Sets mem input of a Free node.

void set_Free_ptr ( ir_node node,
ir_node ptr 
)

Sets ptr input of a Free node.

void set_Free_type ( ir_node node,
ir_type type 
)

Sets type attribute of a Free node.

void set_Free_where ( ir_node node,
ir_where_alloc  where 
)

Sets where attribute of a Free node.


Variable Documentation

Free opcode.

Definition at line 214 of file opcodes.h.