libFirm
InstOf node

Tests whether an object is an instance of a class-type. More...

Enumerations

enum  n_InstOf { n_InstOf_store, n_InstOf_obj, n_InstOf_max = n_InstOf_obj }
 Input numbers for InstOf node. More...
enum  pn_InstOf {
  pn_InstOf_M, pn_InstOf_res, pn_InstOf_X_regular, pn_InstOf_X_except,
  pn_InstOf_max = pn_InstOf_X_except
}
 Projection numbers for result of InstOf node (use for Proj nodes) More...

Functions

ir_nodenew_rd_InstOf (dbg_info *dbgi, ir_node *block, ir_node *irn_store, ir_node *irn_obj, ir_type *type)
 Construct an InstOf node.
ir_nodenew_r_InstOf (ir_node *block, ir_node *irn_store, ir_node *irn_obj, ir_type *type)
 Construct an InstOf node.
ir_nodenew_d_InstOf (dbg_info *dbgi, ir_node *irn_store, ir_node *irn_obj, ir_type *type)
 Construct an InstOf node.
ir_nodenew_InstOf (ir_node *irn_store, ir_node *irn_obj, ir_type *type)
 Construct an InstOf node.
int is_InstOf (const ir_node *node)
 Test if node is a InstOf.
ir_nodeget_InstOf_store (const ir_node *node)
 Returns store input of an InstOf node.
void set_InstOf_store (ir_node *node, ir_node *store)
 Sets store input of an InstOf node.
ir_nodeget_InstOf_obj (const ir_node *node)
 Returns obj input of an InstOf node.
void set_InstOf_obj (ir_node *node, ir_node *obj)
 Sets obj input of an InstOf node.
ir_typeget_InstOf_type (const ir_node *node)
 Returns type attribute of an InstOf node.
void set_InstOf_type (ir_node *node, ir_type *type)
 Sets type attribute of an InstOf node.
ir_opget_op_InstOf (void)
 Returns opcode for InstOf nodes.

Variables

ir_opop_InstOf
 InstOf opcode.

Detailed Description

Tests whether an object is an instance of a class-type.

Enumeration Type Documentation

enum n_InstOf

Input numbers for InstOf node.

Definition at line 1931 of file nodeops.h.

enum pn_InstOf

Projection numbers for result of InstOf node (use for Proj nodes)

Enumerator:
pn_InstOf_M 

memory result

pn_InstOf_res 

checked object pointer

pn_InstOf_X_regular 

control flow when no exception occurs

pn_InstOf_X_except 

control flow when exception occured

Definition at line 1941 of file nodeops.h.

Function Documentation

ir_node* get_InstOf_obj ( const ir_node node)

Returns obj input of an InstOf node.

ir_node* get_InstOf_store ( const ir_node node)

Returns store input of an InstOf node.

ir_type* get_InstOf_type ( const ir_node node)

Returns type attribute of an InstOf node.

ir_op* get_op_InstOf ( void  )

Returns opcode for InstOf nodes.

int is_InstOf ( const ir_node node)

Test if node is a InstOf.

Returns
1 if the node is a InstOf node, 0 otherwise
ir_node* new_d_InstOf ( dbg_info dbgi,
ir_node irn_store,
ir_node irn_obj,
ir_type type 
)

Construct an InstOf node.

Parameters
dbgiA pointer to debug information.
irn_storememory dependency
irn_objpointer to object being queried
typetype to check ptr for
ir_node* new_InstOf ( ir_node irn_store,
ir_node irn_obj,
ir_type type 
)

Construct an InstOf node.

Parameters
irn_storememory dependency
irn_objpointer to object being queried
typetype to check ptr for
ir_node* new_r_InstOf ( ir_node block,
ir_node irn_store,
ir_node irn_obj,
ir_type type 
)

Construct an InstOf node.

Parameters
blockThe IR block the node belongs to.
irn_storememory dependency
irn_objpointer to object being queried
typetype to check ptr for
ir_node* new_rd_InstOf ( dbg_info dbgi,
ir_node block,
ir_node irn_store,
ir_node irn_obj,
ir_type type 
)

Construct an InstOf node.

Parameters
dbgiA pointer to debug information.
blockThe IR block the node belongs to.
irn_storememory dependency
irn_objpointer to object being queried
typetype to check ptr for
void set_InstOf_obj ( ir_node node,
ir_node obj 
)

Sets obj input of an InstOf node.

void set_InstOf_store ( ir_node node,
ir_node store 
)

Sets store input of an InstOf node.

void set_InstOf_type ( ir_node node,
ir_type type 
)

Sets type attribute of an InstOf node.

Variable Documentation

ir_op* op_InstOf

InstOf opcode.

Definition at line 228 of file opcodes.h.