![]() |
libFirm
|
Allocates a block of memory on the stack. More...
Enumerations | |
| enum | n_Alloc { n_Alloc_mem, n_Alloc_size, n_Alloc_max = n_Alloc_size } |
| Input numbers for Alloc node. More... | |
| enum | pn_Alloc { pn_Alloc_M, pn_Alloc_res, pn_Alloc_max = pn_Alloc_res } |
| Projection numbers for result of Alloc node (use for Proj nodes) More... | |
Functions | |
| ir_node * | new_rd_Alloc (dbg_info *dbgi, ir_node *block, ir_node *irn_mem, ir_node *irn_size, unsigned alignment) |
| Construct an Alloc node. More... | |
| ir_node * | new_r_Alloc (ir_node *block, ir_node *irn_mem, ir_node *irn_size, unsigned alignment) |
| Construct an Alloc node. More... | |
| ir_node * | new_d_Alloc (dbg_info *dbgi, ir_node *irn_mem, ir_node *irn_size, unsigned alignment) |
| Construct an Alloc node. More... | |
| ir_node * | new_Alloc (ir_node *irn_mem, ir_node *irn_size, unsigned alignment) |
| Construct an Alloc node. More... | |
| int | is_Alloc (const ir_node *node) |
| Test if node is a Alloc. More... | |
| ir_node * | get_Alloc_mem (const ir_node *node) |
| Returns mem input of an Alloc node. More... | |
| void | set_Alloc_mem (ir_node *node, ir_node *mem) |
| Sets mem input of an Alloc node. More... | |
| ir_node * | get_Alloc_size (const ir_node *node) |
| Returns size input of an Alloc node. More... | |
| void | set_Alloc_size (ir_node *node, ir_node *size) |
| Sets size input of an Alloc node. More... | |
| unsigned | get_Alloc_alignment (const ir_node *node) |
| Returns alignment attribute of an Alloc node. More... | |
| void | set_Alloc_alignment (ir_node *node, unsigned alignment) |
| Sets alignment attribute of an Alloc node. More... | |
| ir_op * | get_op_Alloc (void) |
| Returns opcode for Alloc nodes. More... | |
Variables | |
| ir_op * | op_Alloc |
| Alloc opcode. More... | |
Allocates a block of memory on the stack.
| enum n_Alloc |
| enum pn_Alloc |
| unsigned get_Alloc_alignment | ( | const ir_node * | node | ) |
Returns alignment attribute of an Alloc node.
Definition at line 2975 of file gen_irnode.c.
Returns mem input of an Alloc node.
Definition at line 217 of file gen_irnode.c.
Returns size input of an Alloc node.
Definition at line 227 of file gen_irnode.c.
| ir_op* get_op_Alloc | ( | void | ) |
| int is_Alloc | ( | const ir_node * | node | ) |
Test if node is a Alloc.
Definition at line 2970 of file gen_irnode.c.
Construct an Alloc node.
| irn_mem | mem |
| irn_size | size |
| alignment | alignment of the memory block (must be a power of 2) |
Definition at line 212 of file gen_irnode.c.
References new_d_Alloc().
Construct an Alloc node.
| dbgi | A pointer to debug information. |
| irn_mem | mem |
| irn_size | size |
| alignment | alignment of the memory block (must be a power of 2) |
Definition at line 205 of file gen_irnode.c.
References current_ir_graph, get_cur_block(), IR_GRAPH_CONSTRAINT_CONSTRUCTION, irg_is_constrained(), and new_rd_Alloc().
Referenced by new_Alloc().
Construct an Alloc node.
| block | The IR block the node belongs to. |
| irn_mem | mem |
| irn_size | size |
| alignment | alignment of the memory block (must be a power of 2) |
Definition at line 200 of file gen_irnode.c.
References new_rd_Alloc().
| ir_node* new_rd_Alloc | ( | dbg_info * | dbgi, |
| ir_node * | block, | ||
| ir_node * | irn_mem, | ||
| ir_node * | irn_size, | ||
| unsigned | alignment | ||
| ) |
Construct an Alloc node.
| dbgi | A pointer to debug information. |
| block | The IR block the node belongs to. |
| irn_mem | mem |
| irn_size | size |
| alignment | alignment of the memory block (must be a power of 2) |
Definition at line 183 of file gen_irnode.c.
References get_irn_irg(), mode_T, new_ir_node(), op_Alloc, optimize_node(), and verify_new_node().
Referenced by new_d_Alloc(), and new_r_Alloc().
| void set_Alloc_alignment | ( | ir_node * | node, |
| unsigned | alignment | ||
| ) |
Sets alignment attribute of an Alloc node.
Definition at line 2980 of file gen_irnode.c.
Sets mem input of an Alloc node.
Definition at line 222 of file gen_irnode.c.
Sets size input of an Alloc node.
Definition at line 232 of file gen_irnode.c.
| ir_op* op_Alloc |
Alloc opcode.
Definition at line 449 of file nodes.h.
Referenced by get_op_Alloc(), and new_rd_Alloc().