-static INLINE unsigned
-_get_entity_additional_properties(const entity *ent) {
- ir_graph *irg;
- assert(ent && ent->kind == k_entity);
- assert(ent == unknown_entity || is_Method_type(ent->type));
- irg = _get_entity_irg(ent);
- return irg ?
- get_irg_additional_properties(irg) :
- ent->irg_add_properties;
-}
-
-static INLINE void
-_set_entity_additional_properties(entity *ent, unsigned mask) {
- ir_graph *irg;
- assert(ent && ent->kind == k_entity);
- assert(ent == unknown_entity || is_Method_type(ent->type));
- irg = _get_entity_irg(ent);
- if (irg)
- set_irg_additional_properties(irg, mask);
- else
- ent->irg_add_properties = mask;
-}
-
-static INLINE void
-_set_entity_additional_property(entity *ent, irg_additional_property flag) {
- ir_graph *irg;
- assert(ent && ent->kind == k_entity);
- assert(ent == unknown_entity || is_Method_type(ent->type));
- irg = _get_entity_irg(ent);
- if (irg)
- set_irg_additional_property(irg, flag);
- else
- ent->irg_add_properties |= flag;
-}
-
-static INLINE unsigned
-_get_entity_calling_convention(const entity *ent) {
- ir_graph *irg;
- assert(ent && ent->kind == k_entity);
- assert(ent == unknown_entity || is_Method_type(ent->type));
- irg = _get_entity_irg(ent);
- if (irg)
- return get_irg_calling_convention(irg);
- else
- return ent->irg_calling_conv;
-}
-
-static INLINE void
-_set_entity_calling_convention(entity *ent, unsigned cc_mask) {
- ir_graph *irg;
- assert(ent && ent->kind == k_entity);
- assert(ent == unknown_entity || is_Method_type(ent->type));
- irg = _get_entity_irg(ent);
- if (irg)
- set_irg_calling_convention(irg, cc_mask);
- else
- ent->irg_calling_conv = cc_mask;
-}
-