#include "bearch.h"
#include "ircons_t.h"
+#include "irnode_t.h"
#include "bitset.h"
#include "pset.h"
#include "entity.h"
-arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if)
+#include "irprintf.h"
+
+/* Initialize the architecture environment struct. */
+arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if, FILE *file_handle)
{
memset(env, 0, sizeof(*env));
- env->isa = isa_if->init();
+ env->isa = isa_if->init(file_handle);
return env;
}
}
if(arch_register_req_is(req, should_be_same)) {
- snprintf(tmp, sizeof(tmp), " same to: %+F", req->other_different);
+ ir_snprintf(tmp, sizeof(tmp), " same to: %+F", req->other_different);
strncat(buf, tmp, len);
}
if(arch_register_req_is(req, should_be_different)) {
- snprintf(tmp, sizeof(tmp), " different to: %+F", req->other_different);
+ ir_snprintf(tmp, sizeof(tmp), " different to: %+F", req->other_different);
strncat(buf, tmp, len);
}