libFirm
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

A struct type represents aggregate types that consist of a list of fields. More...

Functions

ir_typenew_type_struct (ident *name)
 Creates a new type struct. More...
 
identget_struct_ident (const ir_type *strct)
 Returns struct identifier. More...
 
const char * get_struct_name (const ir_type *strct)
 Returns struct identifier as c-string. More...
 
size_t get_struct_n_members (const ir_type *strct)
 Returns the number of members of this struct. More...
 
ir_entityget_struct_member (const ir_type *strct, size_t pos)
 Returns the member at position pos, pos < n_member. More...
 
size_t get_struct_member_index (ir_type const *strct, ir_entity const *member)
 Returns index of member in strct, -1 if not contained. More...
 
int is_Struct_type (const ir_type *strct)
 Returns true if a type is a struct type. More...
 

Detailed Description

A struct type represents aggregate types that consist of a list of fields.

The following attributes are private to this type kind:

Function Documentation

ident* get_struct_ident ( const ir_type strct)

Returns struct identifier.

ir_entity* get_struct_member ( const ir_type strct,
size_t  pos 
)

Returns the member at position pos, pos < n_member.

size_t get_struct_member_index ( ir_type const *  strct,
ir_entity const *  member 
)

Returns index of member in strct, -1 if not contained.

size_t get_struct_n_members ( const ir_type strct)

Returns the number of members of this struct.

const char* get_struct_name ( const ir_type strct)

Returns struct identifier as c-string.

int is_Struct_type ( const ir_type strct)

Returns true if a type is a struct type.

ir_type* new_type_struct ( ident name)

Creates a new type struct.