Displaying 2 results from an estimated 2 matches for "call_clobbered_reg".
2007 Aug 09
1
[LLVMdev] Tail call optimization thoughts
...ementing tail call opt could look like the following:
0.)a fast calling convention (maybe use the current
CallingConv::Fast, or create a CallingConv::TailCall)
1.) lowering of formal arguments
like for example x86_LowerCCCArguments in stdcall mode
we need to make sure that later mentioned CALL_CLOBBERED_REG is
not used (remove it from available
registers in callingconvention for argument passing?)
2.)lowering of the call:
*if it can be shown that call really is tail call (next
instruction is a return):
-move the arguments to the correct position on the stack
-create a REALTAILCAL...
2007 Aug 09
4
[LLVMdev] Tail call optimization thoughts
...view a little bit later.
> 0.)a fast calling convention (maybe use the current
> CallingConv::Fast, or create a CallingConv::TailCall)
> 1.) lowering of formal arguments
> like for example x86_LowerCCCArguments in stdcall mode
> we need to make sure that later mentioned CALL_CLOBBERED_REG is
> not used (remove it from availableregisters in callingconv
> for argument passing?)
This can be acceptable, only if function has internal linkage.
Otherwise, we cannot change calling convention of the function. So
extension if this problem:
Let us have the following sequence of c...