upon a function call. It thus can be overwritten
in the called function. */
arch_register_type_ignore = 4, /**< Do not consider this register when allocating. */
+ arch_register_type_joker = 8, /**< The emitter can choose an arbitrary register */
} arch_register_type_t;
/**
return reg->index;
}
+static INLINE const char *_arch_register_get_name(const arch_register_t *reg)
+{
+ return reg->name;
+}
+
#define arch_register_get_class(reg) _arch_register_get_class(reg)
#define arch_register_get_index(reg) _arch_register_get_index(reg)
-#define arch_register_get_name(reg) ((reg)->name)
+#define arch_register_get_name(reg) _arch_register_get_name(reg)
/**
* A class of registers.
/** return the largest mode of this register class */
#define arch_register_class_mode(cls) ((cls)->mode)
+/** return the name of this register class */
+#define arch_register_class_name(cls) ((cls)->name)
+
/**
* Put all registers in a class into a bitset.
* @param cls The class.
int handlers_tos; /**< The stack pointer of the handler
stack. */
- pset *constructor_entities; /**< Set holding the entities of the constructor irgs */
};
/**
*/
extern const arch_irn_handler_t *arch_env_pop_irn_handler(arch_env_t *env);
-/**
- * Tells whether function represented by entity should be
- * called in the constructor section.
- * @param arch_env The architecture environment.
- * @param ent The entity representing a function
- * @return 1 if function is a constructor
- */
-extern int arch_ent_is_constructor(const arch_env_t *arch_env, const entity *ent);
-
#endif /* _FIRM_BEARCH_H */