libFirm

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

Functions

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

Detailed Description

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

Function Documentation

ir_type* get_array_element_type ( const ir_type array)

Returns the array element type.

unsigned get_array_size ( const ir_type array)

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

int is_Array_type ( const ir_type array)

Returns true if a type is an array type.

ir_type* new_type_array ( ir_type element_type,
unsigned  n_elements 
)

Create a new type array with the given number of elements.

0 elements designates an array of unknown length.