libFirm
Loading...
Searching...
No Matches

Functions

ir_typenew_type_array (ir_type *element_type, unsigned n_elements)
 Create a new array type with n_elements of type element_type.
 
unsigned get_array_size (const ir_type *array)
 Returns the size (number of elements) of an array.
 
ir_typeget_array_element_type (const ir_type *array)
 Returns the array element type.
 
int is_Array_type (const ir_type *array)
 Returns true if a type is an array type.
 

Detailed Description

The array type represents linear arrangement of objects of the same type.

Function Documentation

◆ get_array_element_type()

ir_type * get_array_element_type ( const ir_type * array)

Returns the array element type.

◆ get_array_size()

unsigned get_array_size ( const ir_type * array)

Returns the size (number of elements) of an array.

◆ is_Array_type()

int is_Array_type ( const ir_type * array)

Returns true if a type is an array type.

◆ new_type_array()

ir_type * new_type_array ( ir_type * element_type,
unsigned n_elements )

Create a new array type with n_elements of type element_type.

0 elements designates an array of unknown length.