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

Returns an unknown (at compile- and runtime) value. More...

Functions

ir_nodenew_rd_Unknown (dbg_info *dbgi, ir_graph *irg, ir_mode *mode)
 Construct an Unknown node. More...
 
ir_nodenew_r_Unknown (ir_graph *irg, ir_mode *mode)
 Construct an Unknown node. More...
 
ir_nodenew_d_Unknown (dbg_info *dbgi, ir_mode *mode)
 Construct an Unknown node. More...
 
ir_nodenew_Unknown (ir_mode *mode)
 Construct an Unknown node. More...
 
int is_Unknown (const ir_node *node)
 Test if node is a Unknown. More...
 
ir_opget_op_Unknown (void)
 Returns opcode for Unknown nodes. More...
 

Variables

ir_opop_Unknown
 Unknown opcode. More...
 

Detailed Description

Returns an unknown (at compile- and runtime) value.

It is a valid optimization to replace an Unknown by any other constant value.

Be careful when optimising Unknown values, you cannot simply replace Unknown+x or Unknown<x with a new Unknown node if there are multiple users of the original unknown node!

Function Documentation

ir_op* get_op_Unknown ( void  )

Returns opcode for Unknown nodes.

Definition at line 2893 of file gen_irnode.c.

References op_Unknown.

int is_Unknown ( const ir_node node)

Test if node is a Unknown.

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

Definition at line 3519 of file gen_irnode.c.

ir_node* new_d_Unknown ( dbg_info dbgi,
ir_mode mode 
)

Construct an Unknown node.

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

Definition at line 2881 of file gen_irnode.c.

References current_ir_graph, IR_GRAPH_CONSTRAINT_CONSTRUCTION, irg_is_constrained(), and new_rd_Unknown().

Referenced by new_Unknown().

ir_node* new_r_Unknown ( ir_graph irg,
ir_mode mode 
)

Construct an Unknown node.

Parameters
irgThe IR graph the node belongs to.
modemode of the operations result

Definition at line 2876 of file gen_irnode.c.

References new_rd_Unknown().

ir_node* new_rd_Unknown ( dbg_info dbgi,
ir_graph irg,
ir_mode mode 
)

Construct an Unknown node.

Parameters
dbgiA pointer to debug information.
irgThe IR graph the node belongs to.
modemode of the operations result

Definition at line 2863 of file gen_irnode.c.

References get_irg_start_block(), new_ir_node(), op_Unknown, optimize_node(), and verify_new_node().

Referenced by new_d_Unknown(), and new_r_Unknown().

ir_node* new_Unknown ( ir_mode mode)

Construct an Unknown node.

Parameters
modemode of the operations result

Definition at line 2888 of file gen_irnode.c.

References new_d_Unknown().

Variable Documentation

ir_op* op_Unknown

Unknown opcode.

Definition at line 4283 of file nodes.h.

Referenced by get_op_Unknown(), and new_rd_Unknown().