+/**
+ * An initializer containing an ir_node,
+ */
+typedef struct ir_initializer_const_t {
+ ir_initializer_base_t base;
+ ir_node *value;
+} ir_initializer_const_t ;
+
+/**
+ * An initializer containing a tarval.
+ */
+typedef struct ir_initializer_tarval_t {
+ ir_initializer_base_t base;
+ ir_tarval *value;
+} ir_initializer_tarval_t ;
+
+union ir_initializer_t {
+ ir_initializer_kind_t kind;
+ ir_initializer_base_t base;
+ ir_initializer_compound_t compound;
+ ir_initializer_const_t consti;
+ ir_initializer_tarval_t tarval;
+};
+
+/** The attributes for compound entities. */
+typedef struct compound_ent_attr {
+ ir_node **values; /**< constant values of compound entities. */
+ compound_graph_path **val_paths;
+ /**< paths corresponding to constant values. */
+} compound_ent_attr;
+
+/** The attributes for methods. */
+typedef struct method_ent_attr {
+ ir_graph *irg; /**< The corresponding irg if known.
+ The ir_graph constructor automatically sets this field. */
+ mtp_additional_properties irg_add_properties; /**< Additional graph properties can be
+ stored in a entity if no irg is available. */
+
+ unsigned vtable_number; /**< For a dynamically called method, the number assigned
+ in the virtual function table. */
+
+ ptr_access_kind *param_access; /**< the parameter access */
+ unsigned *param_weight; /**< The weight of method's parameters. Parameters
+ with a high weight are good candidates for procedure cloning. */
+} method_ent_attr;
+
+/** additional attributes for code entities */
+typedef struct code_ent_attr {
+ ir_label_t label; /** label of the basic block */
+} code_ent_attr;
+
+typedef struct parameter_ent_attr {
+ /**< parameters might be compounds too */
+ compound_ent_attr cmpd_attr;
+
+ size_t number; /**< corresponding parameter number */
+ ir_mode *doubleword_low_mode;/**< entity is a lowered doubleword parameter,
+ so additional stores because of calling
+ convention are correctly performed.
+ Matze: This is a hack. In an ideal
+ wor^H^H^Hlibfirm we would first establish
+ calling conventions and then perform doubleword
+ lowering...) */
+} parameter_ent_attr;
+
+typedef enum ir_entity_kind {
+ IR_ENTITY_NORMAL,
+ IR_ENTITY_METHOD,
+ IR_ENTITY_COMPOUND_MEMBER,
+ IR_ENTITY_PARAMETER,
+ IR_ENTITY_LABEL,
+ IR_ENTITY_UNKNOWN,
+} ir_entity_kind;
+
+/**
+ * An abstract data type to represent program entities.
+ */
+struct ir_entity {
+ firm_kind kind; /**< The dynamic type tag for entity. */
+ ident *name; /**< The name of this entity. */
+ ident *ld_name; /**< Unique name of this entity, i.e., the mangled
+ name. May be NULL to indicate that a default
+ mangling based on the name should happen */
+ ir_type *type; /**< The type of this entity */
+ ir_type *owner; /**< The compound type (e.g. class type) this
+ entity belongs to. */
+ unsigned entity_kind:3; /**< entity kind */
+ unsigned linkage:10; /**< Specifies linkage type */
+ unsigned volatility:1; /**< Specifies volatility of entities content.*/
+ unsigned aligned:1; /**< Specifies alignment of entities content. */
+ unsigned usage:4; /**< flag indicating usage types of this entity,
+ see ir_entity_usage. */
+ unsigned compiler_gen:1; /**< If set, this entity was compiler generated.
+ */
+ unsigned visibility:3; /**< @deprecated */
+ unsigned allocation:3; /**< @deprecated */
+ unsigned peculiarity:3; /**< @deprecated */
+ unsigned final:1; /**< @deprecated */
+ unsigned offset_bit_remainder:8;
+ /**< If the entity is a bit field, this is the
+ offset of the start of the bit field
+ within the byte specified by offset. */
+ int offset; /**< Offset in bytes for this entity. Fixed
+ when layout of owner is determined. */
+ unsigned alignment; /**< entity alignment in bytes */
+ ir_visited_t visit; /**< visited counter for walks of the type
+ information. */
+ struct dbg_info *dbi; /**< A pointer to information for debug support. */
+ void *link; /**< To store some intermediate information. */
+ ir_type *repr_class; /**< If this entity represents a class info, the
+ associated class. */
+
+ ir_entity **overwrites; /**< A list of entities this entity overwrites. */
+ ir_entity **overwrittenby; /**< A list of entities that overwrite this
+ entity. */
+
+ ir_initializer_t *initializer; /**< entity initializer */