X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Farm%2Fbearch_arm_t.h;h=4d16a8a84aa445adac3400eb99781dff27b34033;hb=505d3662efed6efbca2c43eea2fe23b87816b285;hp=0fd4bc27bdcf0a592946ab0c84b2789140ee0a01;hpb=83050d60a56aaabb183a7beafa940d0fd0c8fd25;p=libfirm diff --git a/ir/be/arm/bearch_arm_t.h b/ir/be/arm/bearch_arm_t.h index 0fd4bc27b..4d16a8a84 100644 --- a/ir/be/arm/bearch_arm_t.h +++ b/ir/be/arm/bearch_arm_t.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. * @@ -31,7 +31,7 @@ #include "debug.h" #include "bearch_arm.h" #include "arm_nodes_attr.h" -#include "../be.h" +#include "be.h" #include "../beemitter.h" #include "set.h" @@ -65,7 +65,7 @@ enum arm_cpu_extensions { * three more to cover cores prior to ARM6. Finally, there are cores which * implement further extensions in the co-processor space. */ -enum arm_architectiures { +enum arm_architectures { ARM_ARCH_V1 = ARM_EXT_V1, ARM_ARCH_V2 = ARM_ARCH_V1 | ARM_EXT_V2, ARM_ARCH_V2S = ARM_ARCH_V2 | ARM_EXT_V2S, @@ -116,16 +116,18 @@ enum arm_fp_architectures { }; /** Returns non-zero if FPA instructions should be issued. */ -#define USE_FPA(cg) ((cg)->fpu_arch & ARM_FPU_FPA_EXT_V1) +#define USE_FPA(isa) ((isa)->fpu_arch & ARM_FPU_FPA_EXT_V1) /** Returns non-zero if VFP instructions should be issued. */ -#define USE_VFP(cg) ((cg)->fpu_arch & ARM_FPU_VFP_EXT_V1xD) +#define USE_VFP(isa) ((isa)->fpu_arch & ARM_FPU_VFP_EXT_V1xD) /** Types of processor to generate code for. */ enum arm_processor_types { ARM_1 = ARM_ARCH_V1, ARM_2 = ARM_ARCH_V2, + ARM_2a = ARM_ARCH_V2, ARM_3 = ARM_ARCH_V2S, + ARM_3G = ARM_ARCH_V2S, ARM_250 = ARM_ARCH_V2S, ARM_6 = ARM_ARCH_V3, ARM_7 = ARM_ARCH_V3, @@ -142,24 +144,19 @@ typedef struct _arm_code_gen_t { arm_isa_t *isa; /**< the isa instance */ be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */ ir_type *int_tp; /**< the int type, needed for Call conversion */ - int have_fp; /**< non-zero, if fp hardware instructions are emitted */ + ir_node *unknown_gp; /**< unique Unknown_GP node */ + ir_node *unknown_fpa; /**< unique Unknown_FPA node */ + char have_fp_insn; /**< non-zero, if fp hardware instructions are emitted */ + char dump; /**< set to 1 if graphs should be dumped */ DEBUG_ONLY(firm_dbg_module_t *mod;) /**< debugging module */ } arm_code_gen_t; struct _arm_isa_t { - arch_isa_t arch_isa; /**< must be derived from arch_isa_t */ - int gen_reg_names; /**< use generic register names instead of SP, LR, PC */ - int fpu_arch; /**< FPU architecture */ - arm_code_gen_t *cg; /**< current code generator */ - be_emit_env_t emit; /**< An emitter environment for the GAS emitter. */ + arch_env_t arch_env; /**< must be derived from arch_env_t */ + int gen_reg_names; /**< use generic register names instead of SP, LR, PC */ + int fpu_arch; /**< FPU architecture */ + arm_code_gen_t *cg; /**< current code generator */ }; - -typedef struct _arm_irn_ops_t { - const arch_irn_ops_if_t *impl; - arm_code_gen_t *cg; -} arm_irn_ops_t; - - #endif