sparc: implement float->unsigned conversions
[libfirm] / ir / be / TEMPLATE / bearch_TEMPLATE_t.h
index cde5333..ed93f32 100644 (file)
@@ -1,34 +1,37 @@
-#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
+ */
+#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 "beemitter.h"
+#include "set.h"
 
-
-typedef struct _TEMPLATE_code_gen_t {
-       const arch_code_generator_if_t *impl;           /* implementation */
-       ir_graph                       *irg;            /* current irg */
-       FILE                           *out;            /* output file */
-       const arch_env_t               *arch_env;       /* the arch env */
-       set                            *reg_set;        /* set to memorize registers for FIRM nodes (e.g. phi) */
-       firm_dbg_module_t              *mod;            /* debugging module */
-       int                             emit_decls;     /* flag indicating if decls were already emitted */
-       int                             has_alloca;     /* indicates whether the irg contains an alloca or not */
-       const TEMPLATE_register_req_t **reg_param_req;  /* hold the requirements for the reg param nodes */
-} TEMPLATE_code_gen_t;
-
-
-typedef struct _TEMPLATE_isa_t {
-       const arch_isa_if_t *impl;
-       int                  num_codegens;
+typedef struct TEMPLATE_isa_t {
+       arch_env_t  base;      /**< must be derived from arch_isa */
 } TEMPLATE_isa_t;
 
-
-typedef struct _TEMPLATE_irn_ops_t {
-       const arch_irn_ops_if_t *impl;
-       TEMPLATE_code_gen_t         *cg;
-} TEMPLATE_irn_ops_t;
-
-
-#endif /* _BEARCH_TEMPLATE_T_H_ */
+#endif