libFirm

The Sync operation unifies several partial memory blocks. More...

Functions

void add_Sync_pred (ir_node *node, ir_node *pred)
 Adds pred to predecessor list of Sync node node. More...
 
void remove_Sync_n (ir_node *n, int i)
 Removes predecessor i from Sync n. More...
 
ir_nodenew_rd_Sync (dbg_info *dbgi, ir_node *block, int arity, ir_node *const *in)
 Construct a Sync node. More...
 
ir_nodenew_r_Sync (ir_node *block, int arity, ir_node *const *in)
 Construct a Sync node. More...
 
ir_nodenew_d_Sync (dbg_info *dbgi, int arity, ir_node *const *in)
 Construct a Sync node. More...
 
ir_nodenew_Sync (int arity, ir_node *const *in)
 Construct a Sync node. More...
 
int is_Sync (const ir_node *node)
 Test if node is a Sync. More...
 
int get_Sync_n_preds (ir_node const *node)
 Get the number of Sync preds. More...
 
ir_nodeget_Sync_pred (ir_node const *node, int pos)
 Get the Sync pred with index pos. More...
 
void set_Sync_pred (ir_node *node, int pos, ir_node *pred)
 Set the Sync pred with index pos. More...
 
ir_node ** get_Sync_pred_arr (ir_node *node)
 Get an array of all Sync preds. More...
 
ir_opget_op_Sync (void)
 Returns opcode for Sync nodes. More...
 

Variables

ir_opop_Sync
 Sync opcode. More...
 

Detailed Description

The Sync operation unifies several partial memory blocks.

These blocks have to be pairwise disjunct or the values in common locations have to be identical. This operation allows to specify all operations that eventually need several partial memory blocks as input with a single entrance by unifying the memories with a preceding Sync operation.

Function Documentation

void add_Sync_pred ( ir_node node,
ir_node pred 
)

Adds pred to predecessor list of Sync node node.

ir_op* get_op_Sync ( void  )

Returns opcode for Sync nodes.

int get_Sync_n_preds ( ir_node const *  node)

Get the number of Sync preds.

ir_node* get_Sync_pred ( ir_node const *  node,
int  pos 
)

Get the Sync pred with index pos.

ir_node** get_Sync_pred_arr ( ir_node node)

Get an array of all Sync preds.

int is_Sync ( const ir_node node)

Test if node is a Sync.

Returns
1 if the node is a Sync node, 0 otherwise
ir_node* new_d_Sync ( dbg_info dbgi,
int  arity,
ir_node *const *  in 
)

Construct a Sync node.

Parameters
dbgiA pointer to debug information.
aritysize of additional inputs array
inadditional inputs
ir_node* new_r_Sync ( ir_node block,
int  arity,
ir_node *const *  in 
)

Construct a Sync node.

Parameters
blockThe IR block the node belongs to.
aritysize of additional inputs array
inadditional inputs
ir_node* new_rd_Sync ( dbg_info dbgi,
ir_node block,
int  arity,
ir_node *const *  in 
)

Construct a Sync node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
aritysize of additional inputs array
inadditional inputs
ir_node* new_Sync ( int  arity,
ir_node *const *  in 
)

Construct a Sync node.

Parameters
aritysize of additional inputs array
inadditional inputs
void remove_Sync_n ( ir_node n,
int  i 
)

Removes predecessor i from Sync n.

void set_Sync_pred ( ir_node node,
int  pos,
ir_node pred 
)

Set the Sync pred with index pos.

Variable Documentation

ir_op* op_Sync

Sync opcode.

Definition at line 4099 of file nodes.h.