libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Bitcast node

Converts a value between modes with different arithmetics but same number of bits by reinterpreting the bits in the new mode. More...

Enumerations

enum  n_Bitcast { n_Bitcast_op, n_Bitcast_max = n_Bitcast_op }
 Input numbers for Bitcast node. More...
 

Functions

ir_nodenew_rd_Bitcast (dbg_info *dbgi, ir_node *block, ir_node *irn_op, ir_mode *mode)
 Construct a Bitcast node. More...
 
ir_nodenew_r_Bitcast (ir_node *block, ir_node *irn_op, ir_mode *mode)
 Construct a Bitcast node. More...
 
ir_nodenew_d_Bitcast (dbg_info *dbgi, ir_node *irn_op, ir_mode *mode)
 Construct a Bitcast node. More...
 
ir_nodenew_Bitcast (ir_node *irn_op, ir_mode *mode)
 Construct a Bitcast node. More...
 
int is_Bitcast (const ir_node *node)
 Test if node is a Bitcast. More...
 
ir_nodeget_Bitcast_op (const ir_node *node)
 Returns op input of a Bitcast node. More...
 
void set_Bitcast_op (ir_node *node, ir_node *op)
 Sets op input of a Bitcast node. More...
 
ir_opget_op_Bitcast (void)
 Returns opcode for Bitcast nodes. More...
 

Variables

ir_opop_Bitcast
 Bitcast opcode. More...
 

Detailed Description

Converts a value between modes with different arithmetics but same number of bits by reinterpreting the bits in the new mode.

Enumeration Type Documentation

enum n_Bitcast

Input numbers for Bitcast node.

Enumerator
n_Bitcast_op 

operand

n_Bitcast_max 

Definition at line 690 of file nodes.h.

Function Documentation

ir_node* get_Bitcast_op ( const ir_node node)

Returns op input of a Bitcast node.

Definition at line 451 of file gen_irnode.c.

ir_op* get_op_Bitcast ( void  )

Returns opcode for Bitcast nodes.

Definition at line 461 of file gen_irnode.c.

References op_Bitcast.

int is_Bitcast ( const ir_node node)

Test if node is a Bitcast.

Returns
1 if the node is a Bitcast node, 0 otherwise

Definition at line 3009 of file gen_irnode.c.

ir_node* new_Bitcast ( ir_node irn_op,
ir_mode mode 
)

Construct a Bitcast node.

Parameters
irn_opop
modemode of the operations result

Definition at line 446 of file gen_irnode.c.

References new_d_Bitcast().

ir_node* new_d_Bitcast ( dbg_info dbgi,
ir_node irn_op,
ir_mode mode 
)

Construct a Bitcast node.

Parameters
dbgiA pointer to debug information.
irn_opop
modemode of the operations result

Definition at line 439 of file gen_irnode.c.

References current_ir_graph, get_cur_block(), IR_GRAPH_CONSTRAINT_CONSTRUCTION, irg_is_constrained(), and new_rd_Bitcast().

Referenced by new_Bitcast().

ir_node* new_r_Bitcast ( ir_node block,
ir_node irn_op,
ir_mode mode 
)

Construct a Bitcast node.

Parameters
blockThe IR block the node belongs to.
irn_opop
modemode of the operations result

Definition at line 434 of file gen_irnode.c.

References new_rd_Bitcast().

ir_node* new_rd_Bitcast ( dbg_info dbgi,
ir_node block,
ir_node irn_op,
ir_mode mode 
)

Construct a Bitcast node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_opop
modemode of the operations result

Definition at line 419 of file gen_irnode.c.

References get_irn_irg(), new_ir_node(), op_Bitcast, optimize_node(), and verify_new_node().

Referenced by new_d_Bitcast(), and new_r_Bitcast().

void set_Bitcast_op ( ir_node node,
ir_node op 
)

Sets op input of a Bitcast node.

Definition at line 456 of file gen_irnode.c.

Variable Documentation

ir_op* op_Bitcast

Bitcast opcode.

Definition at line 742 of file nodes.h.

Referenced by get_op_Bitcast(), and new_rd_Bitcast().