removed ia32_register_from_name() callback
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 6 Jun 2007 09:32:58 +0000 (09:32 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 6 Jun 2007 09:32:58 +0000 (09:32 +0000)
add prefer_fastcall

[r14342]

ir/be/ia32/bearch_ia32.c

index 599ac14..5f5bbd5 100644 (file)
@@ -1927,14 +1927,6 @@ static int ia32_is_psi_allowed(ir_node *sel, ir_node *phi_list, int i, int j)
        return 1;
 }
 
-/**
- * Called by the frontend to encode a register name into a backend specific way
- */
-static unsigned ia32_register_from_name(const char *regname) {
-       /* NYI */
-       return 0;
-}
-
 static ia32_intrinsic_env_t intrinsic_env = {
        NULL,    /**< the irg, these entities belong to */
        NULL,    /**< entity for first div operand (move into FPU) */
@@ -1963,12 +1955,12 @@ static const backend_params *ia32_get_libfirm_params(void) {
        static backend_params p = {
                1,     /* need dword lowering */
                1,     /* support inline assembly */
+               1,     /* prefer fastcall calling convention */
                NULL,  /* no additional opcodes */
                NULL,  /* will be set later */
                ia32_create_intrinsic_fkt,
                &intrinsic_env,  /* context for ia32_create_intrinsic_fkt */
                NULL,  /* will be set later */
-               ia32_register_from_name, /* register names */
        };
 
        p.dep_param    = &ad;