X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2FTEMPLATE%2Fbearch_TEMPLATE_t.h;h=8ae81ecd81003c1b83e150a6fbf0ccd437785733;hb=223381b39ed8606f5dbf94a7c1f59fd9e0b6d249;hp=39ce98123c1d75abda1ef3f2b8b1e1c1f8201cd7;hpb=8535fe8732b0acf822be252812a7158ce5b8134a;p=libfirm diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE_t.h b/ir/be/TEMPLATE/bearch_TEMPLATE_t.h index 39ce98123..8ae81ecd8 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE_t.h +++ b/ir/be/TEMPLATE/bearch_TEMPLATE_t.h @@ -1,47 +1,61 @@ -#ifndef _BEARCH_TEMPLATE_T_H_ -#define _BEARCH_TEMPLATE_T_H_ +/* + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @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 #include "debug.h" -#include "bearch_TEMPLATE.h" #include "TEMPLATE_nodes_attr.h" -#include "../be.h" +#include "be.h" #include "../beemitter.h" #include "set.h" -typedef struct _TEMPLATE_isa_t TEMPLATE_isa_t; +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; -typedef struct _TEMPLATE_code_gen_t { +struct TEMPLATE_code_gen_t { const arch_code_generator_if_t *impl; /**< implementation */ ir_graph *irg; /**< current irg */ - const arch_env_t *arch_env; /**< the arch env */ - set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */ TEMPLATE_isa_t *isa; /**< the isa instance */ const be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */ - DEBUG_ONLY(firm_dbg_module_t *mod;) /**< debugging module */ -} TEMPLATE_code_gen_t; - -struct _TEMPLATE_isa_t { - arch_isa_t arch_isa; /**< must be derived from arch_isa */ - be_emit_env_t emit; /**< emit datastructure */ }; +struct TEMPLATE_isa_t { + arch_env_t arch_env; /**< must be derived from arch_isa */ +}; -typedef struct _TEMPLATE_irn_ops_t { - const arch_irn_ops_if_t *impl; - TEMPLATE_code_gen_t *cg; -} TEMPLATE_irn_ops_t; - - -/* this is a struct to minimize the number of parameters - for transformation walker */ -typedef 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 */ - DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */ -} TEMPLATE_transform_env_t; - +/** + * 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 */ +}; -#endif /* _BEARCH_TEMPLATE_T_H_ */ +#endif