be: remove unused reg_class_for_mode callback
[libfirm] / ir / be / amd64 / bearch_amd64_t.h
index 6880d83..0eadedc 100644 (file)
@@ -20,7 +20,6 @@
 /**
  * @file
  * @brief   declarations for TEMPALTE backend -- private header
- * @version $Id: bearch_amd64_t.h 26542 2009-09-18 09:18:32Z matze $
  */
 #ifndef FIRM_BE_amd64_BEARCH_amd64_T_H
 #define FIRM_BE_amd64_BEARCH_amd64_T_H
 #include "debug.h"
 #include "amd64_nodes_attr.h"
 #include "be.h"
-#include "../beemitter.h"
+#include "beemitter.h"
 #include "set.h"
 
 typedef struct amd64_isa_t            amd64_isa_t;
-typedef struct amd64_code_gen_t       amd64_code_gen_t;
-typedef struct amd64_transform_env_t  amd64_transform_env_t;
-
-struct amd64_code_gen_t {
-       const arch_code_generator_if_t *impl;           /**< implementation */
-       ir_graph                       *irg;            /**< current irg */
-       amd64_isa_t                    *isa;            /**< the isa instance */
-       be_irg_t                       *birg;           /**< The be-irg (contains additional information about the irg) */
-       char                            dump;           /**< set to 1 if graphs should be dumped */
-};
+
+typedef struct amd64_irg_data_t {
+       ir_graph    *irg;            /**< current irg */
+       amd64_isa_t *isa;            /**< the isa instance */
+       char         dump;           /**< set to 1 if graphs should be dumped */
+       ir_node     *noreg_gp;       /**< unique NoReg_GP node */
+} amd64_irg_data_t;
 
 struct amd64_isa_t {
-       arch_env_t  arch_env;      /**< must be derived from arch_isa */
+       arch_env_t  base;      /**< must be derived from arch_isa */
 };
 
-/**
- * this is a struct to minimize the number of parameters
- * for transformation walker
- */
-struct amd64_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 */
-};
+static inline amd64_irg_data_t *amd64_get_irg_data(const ir_graph *irg)
+{
+       return (amd64_irg_data_t*) be_birg_from_irg(irg)->isa_link;
+}
+
+ir_node *amd64_new_NoReg_gp(ir_graph *irg);
 
 #endif