libFirm
Type Opcodes

This module specifies the kinds of types available in firm. More...

Typedefs

typedef struct tp_op tp_op
 A structure containing information about a kind of type.

Enumerations

enum  tp_opcode {
  tpo_uninitialized = 0, tpo_class, tpo_struct, tpo_method,
  tpo_union, tpo_array, tpo_enumeration, tpo_pointer,
  tpo_primitive, tpo_code, tpo_none, tpo_unknown,
  tpo_last = tpo_unknown
}
 An enum for the type kinds. More...

Functions

const char * get_tpop_name (const tp_op *op)
 Returns the string for the type opcode.
tp_opcode get_tpop_code (const tp_op *op)
 Returns an enum for the type opcode.

Detailed Description

This module specifies the kinds of types available in firm.

They are called type opcodes. These include classes, structs, methods, unions, arrays, enumerations, pointers and primitive types. Special types with own opcodes are the id type, a type representing an unknown type and a type used to specify that something has no type.

Typedef Documentation

typedef struct tp_op tp_op

A structure containing information about a kind of type.

A structure containing information about a kind of type. So far this is only the kind name, an enum for case-switching and some internal values.

See Also
get_tpop_name(), get_tpop_code()

Definition at line 813 of file typerep.h.

Enumeration Type Documentation

enum tp_opcode

An enum for the type kinds.

For each type kind exists a typecode to identify it.

Enumerator:
tpo_class 

A class type.

tpo_struct 

A struct type.

tpo_method 

A method type.

tpo_union 

An union type.

tpo_array 

An array type.

tpo_enumeration 

An enumeration type.

tpo_pointer 

A pointer type.

tpo_primitive 

A primitive type.

tpo_code 

a piece of code (a basic block)

tpo_none 

Special type for the None type.

tpo_unknown 

Special code for the Unknown type.

Definition at line 789 of file typerep.h.

Function Documentation

tp_opcode get_tpop_code ( const tp_op op)

Returns an enum for the type opcode.

Parameters
opThe type opcode to get the enum from.
Returns
the enum.
const char* get_tpop_name ( const tp_op op)

Returns the string for the type opcode.

Parameters
opThe type opcode to get the string from.
Returns
a string.