fixed function param types to const
[libfirm] / ir / be / beabi.h
index 6d0c07c..c8ae453 100644 (file)
@@ -6,6 +6,8 @@
 #ifndef _BEABI_H
 #define _BEABI_H
 
+#include "type.h"
+
 #include "be.h"
 #include "bearch.h"
 #include "beabi_t.h"
@@ -15,12 +17,13 @@ typedef enum {
        BE_ABI_LEFT_TO_RIGHT           = 1, /**< Arguments are from left to right. */
        BE_ABI_USE_PUSH                = 2, /**< Use sequential stores for arguments. */
        BE_ABI_TRY_OMIT_FRAME_POINTER  = 4, /**< Try to omit the frame pointer. */
-       BE_ABI_FRAME_POINTER_DEDICATED = 8  /**< If the function wants a frame pointer,
+       BE_ABI_FRAME_POINTER_DEDICATED = 8, /**< If the function wants a frame pointer,
                                                                                  use the one of the architecture, else
                                                                                  an arbitrary register is used. */
+       BE_ABI_SAVE_OLD_FRAME_POINTER  = 16 /**< Always save the old frame pointer on the stack. */
 } be_abi_call_flags_t;
 
-void be_abi_call_set_flags(be_abi_call_t *call, be_abi_call_flags_t flags, unsigned arg_gap);
+void be_abi_call_set_flags(be_abi_call_t *call, be_abi_call_flags_t flags, ir_type *add_frame);
 void be_abi_call_param_stack(be_abi_call_t *call, int pos);
 void be_abi_call_param_reg(be_abi_call_t *call, int pos, const arch_register_t *reg);
 void be_abi_call_res_reg(be_abi_call_t *call, int pos, const arch_register_t *reg);
@@ -30,4 +33,6 @@ void be_abi_fix_stack_bias(be_abi_irg_t *env);
 void be_abi_fix_stack_nodes(be_abi_irg_t *env);
 void be_abi_free(be_abi_irg_t *abi);
 
+ir_node *be_abi_get_callee_save_irn(be_abi_irg_t *abi, const arch_register_t *reg);
+
 #endif