libFirm
|
A struct type represents aggregate types that consist of a list of fields. More...
Functions | |
ir_type * | new_type_struct (ident *name) |
Creates a new type struct. More... | |
ident * | get_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_entity * | get_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... | |
A struct type represents aggregate types that consist of a list of fields.
The following attributes are private to this type kind:
Returns the member at position pos, pos < n_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.