libFirm 1.20
Mux node

returns the false or true operand depending on the value of the sel operand More...

Enumerations

enum  n_Mux { n_Mux_sel, n_Mux_false, n_Mux_true, n_Mux_max = n_Mux_true }
 Input numbers for Mux node. More...

Functions

ir_nodenew_rd_Mux (dbg_info *dbgi, ir_node *block, ir_node *irn_sel, ir_node *irn_false, ir_node *irn_true, ir_mode *mode)
 Construct a Mux node.
ir_nodenew_r_Mux (ir_node *block, ir_node *irn_sel, ir_node *irn_false, ir_node *irn_true, ir_mode *mode)
 Construct a Mux node.
ir_nodenew_d_Mux (dbg_info *dbgi, ir_node *irn_sel, ir_node *irn_false, ir_node *irn_true, ir_mode *mode)
 Construct a Mux node.
ir_nodenew_Mux (ir_node *irn_sel, ir_node *irn_false, ir_node *irn_true, ir_mode *mode)
 Construct a Mux node.
int is_Mux (const ir_node *node)
 Test if node is a Mux.
ir_nodeget_Mux_sel (const ir_node *node)
 Returns sel input of a Mux node.
void set_Mux_sel (ir_node *node, ir_node *sel)
 Sets sel input of a Mux node.
ir_nodeget_Mux_false (const ir_node *node)
 Returns false input of a Mux node.
void set_Mux_false (ir_node *node, ir_node *false_)
 Sets false input of a Mux node.
ir_nodeget_Mux_true (const ir_node *node)
 Returns true input of a Mux node.
void set_Mux_true (ir_node *node, ir_node *true_)
 Sets true input of a Mux node.
ir_opget_op_Mux (void)
 Returns opcode for Mux nodes.

Variables

ir_opop_Mux
 Mux opcode.

Detailed Description

returns the false or true operand depending on the value of the sel operand


Enumeration Type Documentation

enum n_Mux

Input numbers for Mux node.

Definition at line 2455 of file nodeops.h.


Function Documentation

ir_node* get_Mux_false ( const ir_node node)

Returns false input of a Mux node.

ir_node* get_Mux_sel ( const ir_node node)

Returns sel input of a Mux node.

ir_node* get_Mux_true ( const ir_node node)

Returns true input of a Mux node.

ir_op* get_op_Mux ( void  )

Returns opcode for Mux nodes.

int is_Mux ( const ir_node node)

Test if node is a Mux.

Returns:
1 if the node is a Mux node, 0 otherwise
ir_node* new_d_Mux ( dbg_info dbgi,
ir_node irn_sel,
ir_node irn_false,
ir_node irn_true,
ir_mode mode 
)

Construct a Mux node.

Parameters:
dbgiA pointer to debug information.
irn_selvalue making the output selection
irn_falseselected if sel input is false
irn_trueselected if sel input is true
modemode of the operations result
ir_node* new_Mux ( ir_node irn_sel,
ir_node irn_false,
ir_node irn_true,
ir_mode mode 
)

Construct a Mux node.

Parameters:
irn_selvalue making the output selection
irn_falseselected if sel input is false
irn_trueselected if sel input is true
modemode of the operations result
ir_node* new_r_Mux ( ir_node block,
ir_node irn_sel,
ir_node irn_false,
ir_node irn_true,
ir_mode mode 
)

Construct a Mux node.

Parameters:
blockThe IR block the node belongs to.
irn_selvalue making the output selection
irn_falseselected if sel input is false
irn_trueselected if sel input is true
modemode of the operations result
ir_node* new_rd_Mux ( dbg_info dbgi,
ir_node block,
ir_node irn_sel,
ir_node irn_false,
ir_node irn_true,
ir_mode mode 
)

Construct a Mux node.

Parameters:
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_selvalue making the output selection
irn_falseselected if sel input is false
irn_trueselected if sel input is true
modemode of the operations result
void set_Mux_false ( ir_node node,
ir_node false_ 
)

Sets false input of a Mux node.

void set_Mux_sel ( ir_node node,
ir_node sel 
)

Sets sel input of a Mux node.

void set_Mux_true ( ir_node node,
ir_node true_ 
)

Sets true input of a Mux node.


Variable Documentation

Mux opcode.

Definition at line 264 of file opcodes.h.