X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeabi.h;h=b307fe91773700c164d9c4929cf44eac56e33172;hb=1bc218edf7404a09c1e095b63dcc56facc107294;hp=fb12d3f932eba4880459460c4bc7a754462adeb8;hpb=11b7b651234355a0298e1075d57703c554e0ef4d;p=libfirm diff --git a/ir/be/beabi.h b/ir/be/beabi.h index fb12d3f93..b307fe917 100644 --- a/ir/be/beabi.h +++ b/ir/be/beabi.h @@ -35,7 +35,7 @@ #include "be.h" #include "beirg.h" #include "bearch.h" -#include "beabi_t.h" +#include "beabi.h" struct _be_abi_call_flags_bits_t { unsigned left_to_right : 1; /**< Arguments are from left to right. */ @@ -121,7 +121,7 @@ void be_abi_call_set_pop(be_abi_call_t *call, int pop); void be_abi_call_set_call_address_reg_class(be_abi_call_t *call, const arch_register_class_t *cls); /** - * Describe the stack layout for a call parameter. Modifies the abi object. + * Record the that ABI transmits call argument pos on the stack. Modifies the abi object. * * @param call the abi call object * @param pos the parameter position @@ -131,7 +131,23 @@ void be_abi_call_set_call_address_reg_class(be_abi_call_t *call, const arch_regi * @param space_after size of allocated additional space after the parameter */ void be_abi_call_param_stack(be_abi_call_t *call, int pos, ir_mode *load_mode, unsigned alignment, unsigned space_before, unsigned space_after); + +/** + * Record the that ABI transmits call argument pos in the given register. + * + * @param call the abi call object + * @param pos the parameter position + * @param reg the register used + */ void be_abi_call_param_reg(be_abi_call_t *call, int pos, const arch_register_t *reg); + +/** + * Record the that ABI transmits return value pos in the given register. + * + * @param call the abi call object + * @param pos the return value position + * @param reg the register used + */ void be_abi_call_res_reg(be_abi_call_t *call, int pos, const arch_register_t *reg); /**