libFirm
Primitive

Primitive types are types that represent atomic data values that map directly to modes. More...

Functions

ir_typenew_type_primitive (ir_mode *mode)
 Creates a new primitive type.
ir_typenew_d_type_primitive (ir_mode *mode, type_dbg_info *db)
 Creates a new primitive type with debug information.
int is_Primitive_type (const ir_type *primitive)
 Returns true if a type is a primitive type.
ir_typeget_primitive_base_type (const ir_type *tp)
 Returns the base type of a primitive (bitfield) type or NULL if none.
void set_primitive_base_type (ir_type *tp, ir_type *base_tp)
 Sets the base type of a primitive (bitfield) type.
const tp_opget_tpop_primitive (void)
 Returns type opcode for primitive type.

Variables

const tp_optype_primitive
 This type opcode marks that the corresponding type is a primitive type.

Detailed Description

Primitive types are types that represent atomic data values that map directly to modes.

They don't have private attributes. The important information they carry is held in the common mode field.

Function Documentation

ir_type* get_primitive_base_type ( const ir_type tp)

Returns the base type of a primitive (bitfield) type or NULL if none.

const tp_op* get_tpop_primitive ( void  )

Returns type opcode for primitive type.

See Also
type_primitive
int is_Primitive_type ( const ir_type primitive)

Returns true if a type is a primitive type.

ir_type* new_d_type_primitive ( ir_mode mode,
type_dbg_info db 
)

Creates a new primitive type with debug information.

ir_type* new_type_primitive ( ir_mode mode)

Creates a new primitive type.

void set_primitive_base_type ( ir_type tp,
ir_type base_tp 
)

Sets the base type of a primitive (bitfield) type.

Variable Documentation

const tp_op* type_primitive

This type opcode marks that the corresponding type is a primitive type.

Primitive types are types that are directly mapped to target machine modes. This struct is dynamically allocated but constant for the lifetime of the library.

Definition at line 2047 of file typerep.h.