X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2FTEMPLATE%2Fbearch_TEMPLATE_t.h;h=ed93f32faabe13fbc1231127f7a669aa79875937;hb=b59e22a229aa1227ef992c184c79fdafe34908cf;hp=59d8428208d713c69b1a99a8099bde051b63957d;hpb=72fca46dfebc45e1c8466d0b7035a68b9d1495fe;p=libfirm diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE_t.h b/ir/be/TEMPLATE/bearch_TEMPLATE_t.h index 59d842820..ed93f32fa 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE_t.h +++ b/ir/be/TEMPLATE/bearch_TEMPLATE_t.h @@ -20,7 +20,6 @@ /** * @file * @brief declarations for TEMPALTE backend -- private header - * @version $Id$ */ #ifndef FIRM_BE_TEMPLATE_BEARCH_TEMPLATE_T_H #define FIRM_BE_TEMPLATE_BEARCH_TEMPLATE_T_H @@ -28,33 +27,11 @@ #include "debug.h" #include "TEMPLATE_nodes_attr.h" #include "be.h" -#include "../beemitter.h" +#include "beemitter.h" #include "set.h" -typedef struct TEMPLATE_isa_t TEMPLATE_isa_t; -typedef struct TEMPLATE_code_gen_t TEMPLATE_code_gen_t; -typedef struct TEMPLATE_transform_env_t TEMPLATE_transform_env_t; - -struct TEMPLATE_code_gen_t { - const arch_code_generator_if_t *impl; /**< implementation */ - ir_graph *irg; /**< current irg */ - TEMPLATE_isa_t *isa; /**< the isa instance */ -}; - -struct TEMPLATE_isa_t { - arch_env_t arch_env; /**< must be derived from arch_isa */ -}; - -/** - * this is a struct to minimize the number of parameters - * for transformation walker - */ -struct TEMPLATE_transform_env_t { - dbg_info *dbg; /**< The node debug info */ - ir_graph *irg; /**< The irg, the node should be created in */ - ir_node *block; /**< The block, the node should belong to */ - ir_node *irn; /**< The irn, to be transformed */ - ir_mode *mode; /**< The mode of the irn */ -}; +typedef struct TEMPLATE_isa_t { + arch_env_t base; /**< must be derived from arch_isa */ +} TEMPLATE_isa_t; #endif