#include "be_dbgout.h"
#include "beirg.h"
#include "bestack.h"
+#include "beemitter.h"
#define NEW_ID(s) new_id_from_chars(s, sizeof(s) - 1)
set_irp_phase_state(phase_low);
}
+static void emit_global_asms(void)
+{
+ size_t n = get_irp_n_asms();
+ size_t i;
+ for (i = 0; i < n; ++i) {
+ be_emit_cstring("#APP\n");
+ be_emit_ident(get_irp_asm(i));
+ be_emit_cstring("\n#NO_APP\n");
+ }
+}
+
/**
* The Firm backend main loop.
* Do architecture specific lowering for all graphs
be_dbg_unit_begin(cup_name);
be_dbg_types();
+ emit_global_asms();
+
arch_env = env.arch_env;
/* backend may provide an ordered list of irgs where code should be