libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Pointer types: More...

Functions

ir_typenew_type_pointer (ir_type *points_to)
 Creates a new type pointer. More...
 
void set_pointer_points_to_type (ir_type *pointer, ir_type *tp)
 Sets the type to which a pointer points to. More...
 
ir_typeget_pointer_points_to_type (const ir_type *pointer)
 Returns the type to which a pointer points to. More...
 
int is_Pointer_type (const ir_type *pointer)
 Returns true if a type is a pointer type. More...
 
ir_typefind_pointer_type_to_type (ir_type *tp)
 Returns the first pointer type that has as points_to tp. More...
 

Detailed Description

Pointer types:

Function Documentation

ir_type* find_pointer_type_to_type ( ir_type tp)

Returns the first pointer type that has as points_to tp.

Not efficient: O(#types). If not found returns firm_unknown_type.

ir_type* get_pointer_points_to_type ( const ir_type pointer)

Returns the type to which a pointer points to.

int is_Pointer_type ( const ir_type pointer)

Returns true if a type is a pointer type.

ir_type* new_type_pointer ( ir_type points_to)

Creates a new type pointer.

void set_pointer_points_to_type ( ir_type pointer,
ir_type tp 
)

Sets the type to which a pointer points to.