Displaying 3 results from an estimated 3 matches for "callsehreturn".
2010 Mar 03
0
[LLVMdev] [PATCH] New calling convention for use by GHC
...ither case, please document the new calling convention in docs/LangRef.html#callingconv
3) IN X86RegisterInfo.cpp, this patch:
if (Is64Bit) {
if (IsWin64)
- return CalleeSavedRegsWin64;
+ return (ghcCall ? GhcCalleeSavedRegsWin64 : CalleeSavedRegsWin64);
else
- return (callsEHReturn ? CalleeSavedRegs64EHRet : CalleeSavedRegs64Bit);
+ if (ghcCall)
+ return (callsEHReturn ?
+ GhcCalleeSavedRegs64EHRet : GhcCalleeSavedRegs64Bit);
+ else
+ return (callsEHReturn ? CalleeSavedRegs64EHRet : CalleeSavedRegs64Bit);
Seems like it could be simpli...
2010 Mar 07
1
[LLVMdev] [PATCH] New calling convention for use by GHC
...ntion in docs/LangRef.html#callingconv
Done.
> 3) IN X86RegisterInfo.cpp, this patch:
>
> if (Is64Bit) {
> if (IsWin64)
> - return CalleeSavedRegsWin64;
> + return (ghcCall ? GhcCalleeSavedRegsWin64 : CalleeSavedRegsWin64);
> else
> - return (callsEHReturn ? CalleeSavedRegs64EHRet : CalleeSavedRegs64Bit);
> + if (ghcCall)
> + return (callsEHReturn ?
> + GhcCalleeSavedRegs64EHRet : GhcCalleeSavedRegs64Bit);
> + else
> + return (callsEHReturn ? CalleeSavedRegs64EHRet : CalleeSavedRegs64Bit);
>...
2010 Mar 03
2
[LLVMdev] [PATCH] New calling convention for use by GHC
Hi all,
As previously mentioned on this list the Haskell compiler GHC has a new
LLVM based back-end. The back-end needs a new calling convention to
efficiently use LLVM and that is what this patch does, just for X86 at
the moment.
Breakdown:
1) Need actual calling convention
Touches:
- include/llvm/CallingConv.h
- lib/Target/X86/X86CallingConv.td
2) Handling new calling