libFirm
|
Functions | |
ir_node * | new_rd_Tuple (dbg_info *dbgi, ir_node *block, int arity, ir_node *const *in) |
Construct a Tuple node. | |
ir_node * | new_r_Tuple (ir_node *block, int arity, ir_node *const *in) |
Construct a Tuple node. | |
ir_node * | new_d_Tuple (dbg_info *dbgi, int arity, ir_node *const *in) |
Construct a Tuple node. | |
ir_node * | new_Tuple (int arity, ir_node *const *in) |
Construct a Tuple node. | |
int | is_Tuple (const ir_node *node) |
Test if node is a Tuple. | |
int | get_Tuple_n_preds (ir_node const *node) |
Get the number of Tuple preds. | |
ir_node * | get_Tuple_pred (ir_node const *node, int pos) |
Get the Tuple pred with index pos . | |
void | set_Tuple_pred (ir_node *node, int pos, ir_node *pred) |
Set the Tuple pred with index pos . | |
ir_node ** | get_Tuple_pred_arr (ir_node *node) |
Get an array of all Tuple preds. | |
ir_op * | get_op_Tuple (void) |
Returns opcode for Tuple nodes. | |
Variables | |
ir_op * | op_Tuple |
Tuple opcode. | |
Builds a Tuple from single values.
This is needed to implement optimizations that remove a node that produced a tuple. The node can be replaced by the Tuple operation so that the following Proj nodes have not to be changed. (They are hard to find due to the implementation with pointers in only one direction.) The Tuple node is smaller than any other node, so that a node can be changed into a Tuple by just changing its opcode and giving it a new in array.
ir_op * get_op_Tuple | ( | void | ) |
Returns opcode for Tuple nodes.
int get_Tuple_n_preds | ( | ir_node const * | node | ) |
Get the number of Tuple preds.
int is_Tuple | ( | const ir_node * | node | ) |
Test if node is a Tuple.
Construct a Tuple node.
dbgi | A pointer to debug information. |
arity | size of additional inputs array |
in | additional inputs |
Construct a Tuple node.
block | The IR block the node belongs to. |
arity | size of additional inputs array |
in | additional inputs |
Construct a Tuple node.
dbgi | A pointer to debug information. |
block | The IR block the node belongs to. |
arity | size of additional inputs array |
in | additional inputs |
Construct a Tuple node.
arity | size of additional inputs array |
in | additional inputs |