* ISA base class.
*/
struct _arch_isa_t {
- const arch_isa_if_t *impl;
+ const arch_isa_if_t *impl;
const arch_register_t *sp; /** The stack pointer register. */
const arch_register_t *bp; /** The base pointer register. */
const int stack_dir; /** -1 for decreasing, 1 for increasing. */
+ const be_main_env_t *main_env; /** the be main environment */
};
#define arch_isa_stack_dir(isa) ((isa)->stack_dir)
/**
* Initialize the isa interface.
- * @param file_handle the file handle to write the output to
- * @return a new isa instance
+ * @param file_handle the file handle to write the output to
+ * @param main_env the be main environment
+ * @return a new isa instance
*/
void *(*init)(FILE *file_handle);
int handlers_tos; /**< The stack pointer of the handler
stack. */
- pset *constructor_entities; /**< Set holding the entities of the constructor irgs */
};
/**
* @param file_handle The file handle
* @return The environment.
*/
-extern arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa, FILE *file_handle);
+extern arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa, FILE *file_handle, be_main_env_t *main_env);
/**
* Add a node handler to the environment.
*/
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 */