Remove stale code.
[libfirm] / ir / be / ia32 / ia32_map_regs.h
index 2b53bef..aef159f 100644 (file)
  */
 
 /**
- * General reqister mapping stuff.
- * @author Christian Wuerdig
- * $Id$
+ * @file
+ * @brief       Register param constraints and some other register handling tools.
+ * @author      Christian Wuerdig
+ * @version     $Id$
  */
-
-#ifndef _IA32_MAP_REGS_H_
-#define _IA32_MAP_REGS_H_
+#ifndef FIRM_BE_IA32_IA32_MAP_REGS_H
+#define FIRM_BE_IA32_IA32_MAP_REGS_H
 
 #include "irnode.h"
+#include "irmode.h"
 #include "set.h"
 
 #include "../bearch_t.h"
-#include "ia32_nodes_attr.h"
+#include "bearch_ia32_t.h"
 
 /**
- * Convenience macro to check if register <code>out<\code>
- * and register <code>in<\code> are equal.
+ * Convenience macro to check if register <code>out</code>
+ * and register <code>in</code> are equal.
  */
 #define REGS_ARE_EQUAL(out, in) \
        ((arch_register_get_class(out) == arch_register_get_class(in)) && \
@@ -66,33 +67,17 @@ void ia32_build_16bit_reg_map(pmap *reg_map);
  * name into a pmap.
  */
 void ia32_build_8bit_reg_map(pmap *reg_map);
+void ia32_build_8bit_reg_map_high(pmap *reg_map);
 
 /**
  * Returns the corresponding mapped name for a register.
  */
 const char *ia32_get_mapped_reg_name(pmap *reg_map, const arch_register_t *reg);
 
-/**
- * Check all parameters and determine the maximum number of parameters
- * to pass in gp regs resp. in fp regs.
- *
- * @param n       The number of parameters
- * @param modes   The list of the parameter modes
- * @param n_int   Holds the number of int parameters to be passed in regs after the call
- * @param n_float Holds the number of float parameters to be passed in regs after the call
- * @return        The number of the last parameter to be passed in register
- */
-int ia32_get_n_regparam_class(int n, ir_mode **modes, int *n_int, int *n_float);
-
 /**
  * Returns the register for parameter nr.
- *
- * @param n     The number of parameters
- * @param modes The list of the parameter modes
- * @param nr    The number of the parameter to return the requirements for
- * @param cc    The calling convention
- * @return      The register
  */
-const arch_register_t *ia32_get_RegParam_reg(int n, ir_mode **modes, long nr, unsigned cc);
+const arch_register_t *ia32_get_RegParam_reg(ia32_code_gen_t *cg, unsigned cc,
+                                             size_t nr, const ir_mode *mode);
 
-#endif /* _IA32_MAP_REGS_H_ */
+#endif /* FIRM_BE_IA32_IA32_MAP_REGS_H */