X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fia32_map_regs.h;h=aef159f73b56466f8ac043a4111fbcc1778e5749;hb=3a17d433225f46418db86ab1edbfea1cc25b9d22;hp=828b1e0df7521b91317cc9f675d12463bac175bb;hpb=97c79556e25a27333a20f9f8d1094e7b7b3792ec;p=libfirm diff --git a/ir/be/ia32/ia32_map_regs.h b/ir/be/ia32/ia32_map_regs.h index 828b1e0df..aef159f73 100644 --- a/ir/be/ia32/ia32_map_regs.h +++ b/ir/be/ia32/ia32_map_regs.h @@ -31,6 +31,7 @@ #include "set.h" #include "../bearch_t.h" +#include "bearch_ia32_t.h" /** * Convenience macro to check if register out @@ -73,27 +74,10 @@ void ia32_build_8bit_reg_map_high(pmap *reg_map); */ 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 /* FIRM_BE_IA32_IA32_MAP_REGS_H */