libFirm

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...
 
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

◆ get_struct_member()

ir_entity* get_struct_member ( const ir_type strct,
size_t  pos 
)

Returns the member at position pos, pos < n_member.

◆ get_struct_member_index()

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

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

◆ get_struct_n_members()

size_t get_struct_n_members ( const ir_type strct)

Returns the number of members of this struct.

◆ is_Struct_type()

int is_Struct_type ( const ir_type strct)

Returns true if a type is a struct type.

◆ new_type_struct()

ir_type* new_type_struct ( ident name)

Creates a new type struct.