- 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. If the field is read before written a default
- mangling is applies. The name of the owner is prepended
- to the name of the entity, separated by a underscore.
- E.g., for a class `A' with field `a' this
- is the ident for `A_a'. */
- ir_type *type; /**< The type of this entity, e.g., a method type, a
- basic type of the language or a class itself. */
- ir_type *owner; /**< The compound type (e.g. class type) this entity belongs to. */
- unsigned allocation:3; /**< Distinguishes static and dynamically allocated
- entities and some further cases. */
- unsigned visibility:3; /**< Specifies visibility to external program fragments. */
- unsigned variability:3; /**< Specifies variability of entities content. */
- unsigned volatility:1; /**< Specifies volatility of entities content. */
- unsigned aligned:1; /**< Specifies alignment of entities content. */
- unsigned stickyness:2; /**< Specifies whether this entity is sticky. */
- unsigned peculiarity:3; /**< The peculiarity of this entity. */
- unsigned usage:4; /**< flag indicating usage types of this entity, see ir_entity_usage. */
- unsigned final:1; /**< If set, this entity cannot be overridden. */
- unsigned compiler_gen:1; /**< If set, this entity was compiler generated. */
- unsigned backend_marked:1; /**< If set, this entity was marked by the backend for emission. */
- unsigned has_initializer:1; /**< if set, this entity is initialized by new style initializers. */
- int offset; /**< Offset in bytes for this entity. Fixed when layout
- of owner is determined. */
- unsigned alignment; /**< entity alignment in bytes */
- unsigned char offset_bit_remainder;
- /**< If the entity is a bit field, this is the offset of
- the start of the bit field within the byte specified
- by offset. */
- 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. */
-
- /* ------------- fields for entities owned by a class type ---------------*/
-
- ir_entity **overwrites; /**< A list of entities this entity overwrites. */
- ir_entity **overwrittenby; /**< A list of entities that overwrite this entity. */
-
- /* ------------- fields for atomic entities --------------- */
- ir_node *value; /**< value if entity is not of variability uninitialized.
- Only for atomic entities. */
+ 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 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. */
+ unsigned is_parameter:1; /**< 1 if this represents a function parameter */
+ 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 */
+#ifdef DEBUG_libfirm
+ long nr; /**< A unique node number for each node to make output
+ readable. */
+#endif
+