X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Farm%2Farm_emitter.h;h=5da5aa9360b849c1dc451777d51ef0102c627974;hb=505d3662efed6efbca2c43eea2fe23b87816b285;hp=4810f15cdf20e86b089ae46853692eadc7d33e60;hpb=9ef2cb2ee8ff1600a2bf78d7dd1c69098c39da17;p=libfirm diff --git a/ir/be/arm/arm_emitter.h b/ir/be/arm/arm_emitter.h index 4810f15cd..5da5aa936 100644 --- a/ir/be/arm/arm_emitter.h +++ b/ir/be/arm/arm_emitter.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -27,6 +27,7 @@ #define FIRM_BE_ARM_ARM_EMITTER_H #include "firm_types.h" +#include "set.h" #include "irargs_t.h" #include "debug.h" @@ -34,50 +35,15 @@ #include "bearch_arm_t.h" -/** - * A SymConst entry. - */ -typedef struct _SymConstEntry { - unsigned label; /**< a label number for this label */ - const ir_node *symconst; /**< the node holding this label */ - struct _SymConstEntry *next; /**< links all entries */ -} SymConstEntry; - -/** - * The ARM emitter environment. - */ -typedef struct _arm_emit_env_t { - be_emit_env_t *emit; /**< environment for the generic GAS emitter. */ - const arch_env_t *arch_env; /**< the architecture environment */ - const arm_code_gen_t *cg; /**< the code generator object */ - struct obstack obst; /**< an temporary store for SymConstEntries */ - SymConstEntry *symbols; /**< list containing all SymConstEntries */ - DEBUG_ONLY(firm_dbg_module_t *mod;) -} arm_emit_env_t; - -const lc_arg_env_t *arm_get_arg_env(void); - -void equalize_dest_src(FILE *F, ir_node *n); - -int get_arm_reg_nr(ir_node *irn, int posi, int in_out); -const char *get_arm_in_reg_name(ir_node *irn, int pos); +void arm_emit_mode(const ir_node *node); +void arm_emit_source_register(const ir_node *node, int pos); +void arm_emit_dest_register(const ir_node *node, int pos); +void arm_emit_offset(const ir_node *node); +void arm_emit_immediate(const ir_node *node); +void arm_emit_shift(const ir_node *node); void arm_gen_routine(const arm_code_gen_t *cg, ir_graph *irg); -/** - * Sections. - */ -typedef enum sections { - NO_SECTION, /**< no section selected yet. */ - SECTION_TEXT, /**< text section */ - SECTION_DATA, /**< data section */ - SECTION_RODATA, /**< rodata section */ - SECTION_COMMON, /**< common section */ -} sections; - -/** - * Switch to a new section - */ -void arm_switch_section(FILE *f, sections sec); +void arm_init_emitter(void); #endif