libFirm 1.20
|
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_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. | |
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. | |
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. | |
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. | |
int | is_Free (const ir_node *node) |
Test if node is a Free. | |
ir_node * | get_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_node * | get_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_node * | get_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_type * | get_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_op * | get_op_Free (void) |
Returns opcode for Free nodes. | |
Variables | |
ir_op * | op_Free |
Free opcode. |
Frees a block of memory previously allocated by an Alloc 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.
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.
dbgi | A pointer to debug information. |
irn_mem | memory dependency |
irn_ptr | pointer to the object to free |
irn_count | number of objects to allocate |
type | type of the allocated variable |
where | whether 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.
irn_mem | memory dependency |
irn_ptr | pointer to the object to free |
irn_count | number of objects to allocate |
type | type of the allocated variable |
where | whether 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.
block | The IR block the node belongs to. |
irn_mem | memory dependency |
irn_ptr | pointer to the object to free |
irn_count | number of objects to allocate |
type | type of the allocated variable |
where | whether 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.
dbgi | A pointer to debug information. |
block | The IR block the node belongs to. |
irn_mem | memory dependency |
irn_ptr | pointer to the object to free |
irn_count | number of objects to allocate |
type | type of the allocated variable |
where | whether allocation was on the stack or heap |
void set_Free_where | ( | ir_node * | node, |
ir_where_alloc | where | ||
) |
Sets where attribute of a Free node.