libFirm
Pointer

Pointer types: More...

Functions

ir_typenew_type_pointer (ir_type *points_to)
 Creates a new type pointer.
ir_typenew_d_type_pointer (ir_type *points_to, type_dbg_info *db)
 Creates a new type pointer with debug information.
void set_pointer_points_to_type (ir_type *pointer, ir_type *tp)
 Sets the type to which a pointer points to.
ir_typeget_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_typefind_pointer_type_to_type (ir_type *tp)
 Returns the first pointer type that has as points_to tp.
const tp_opget_tpop_pointer (void)
 Returns type opcode for pointer type.

Variables

const tp_optype_pointer
 This type opcode marks that the corresponding type is a pointer type.

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.

const tp_op* get_tpop_pointer ( void  )

Returns type opcode for pointer type.

See Also
type_pointer
int is_Pointer_type ( const ir_type pointer)

Returns true if a type is a pointer type.

ir_type* new_d_type_pointer ( ir_type points_to,
type_dbg_info db 
)

Creates a new type pointer with debug information.

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.

Variable Documentation

const tp_op* type_pointer

This type opcode marks that the corresponding type is a pointer type.

It contains a reference to the type the pointer points to. This struct is dynamically allocated but constant for the lifetime of the library.

Definition at line 2010 of file typerep.h.