Displaying 9 results from an estimated 9 matches for "ghccall".
Did you mean:
ccall
2011 Oct 14
2
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hi Duncan,
> const unsigned*
> ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF)
const {
> + bool ghcCall = false;
> +
> + if (MF) {
> + const Function *F = MF->getFunction();
> + ghcCall = (F ? F->getCallingConv() == CallingConv::GHC : false);
> + }
> This bit looks dubious. Why do you need to do it?
What exactly? We need to test if this is GHC calling conventi...
2011 Oct 14
3
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hi Duncan,
On 10/14/11 03:56 PM, Duncan Sands wrote:
> Hi Karel,
>
>> > const unsigned*
>> > ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF)
>> const {
>> > + bool ghcCall = false;
>> > +
>> > + if (MF) {
>> > + const Function *F = MF->getFunction();
>> > + ghcCall = (F ? F->getCallingConv() == CallingConv::GHC : false);
>> > + }
>>
>> > This bit looks dubious. Why do you need to do it?
>>
>&g...
2011 Oct 14
0
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hi Karel,
>>> > const unsigned*
>>> > ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF)
>>> const {
>>> > + bool ghcCall = false;
>>> > +
>>> > + if (MF) {
>>> > + const Function *F = MF->getFunction();
>>> > + ghcCall = (F ? F->getCallingConv() == CallingConv::GHC : false);
>>> > + }
>>>
>>> > This bit looks dubious. Why do you ne...
2011 Oct 14
0
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hi Karel,
> > const unsigned*
> > ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
> > + bool ghcCall = false;
> > +
> > + if (MF) {
> > + const Function *F = MF->getFunction();
> > + ghcCall = (F ? F->getCallingConv() == CallingConv::GHC : false);
> > + }
>
> > This bit looks dubious. Why do you need to do it?
>
> What exactly? We need to te...
2010 Mar 03
0
[LLVMdev] [PATCH] New calling convention for use by GHC
...should get an X86 prefix. If not, it should move up to be #10 after Cold.
2) In either 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 (call...
2010 Mar 07
1
[LLVMdev] [PATCH] New calling convention for use by GHC
...ng it implemented on SPARC next.
> 2) In either case, please document the new calling convention 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);
> +...
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
2011 Oct 14
1
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hello,
today is the last day[1] when someone might ask for feature merge into
the LLVM 3.0 release. I'd like to ask you to merge attached patch. This
is implementation of GHC calling convention on ARM platform which is
made by Stephen Blackheath with few additions by me. I hope that
although the patch does not contain any test case, it still will be
merged. The reason for this is that
2011 Oct 14
2
[LLVMdev] Request for merge: GHC/ARM calling convention.
Hi Duncan, Karel,
On 14 October 2011 08:22, Duncan Sands <baldrick at free.fr> wrote:
> Hi Karel,
>
>>>> > const unsigned*
>>>> > ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF)
>>>> const {
>>>> > + bool ghcCall = false;
>>>> > +
>>>> > + if (MF) {
>>>> > + const Function *F = MF->getFunction();
>>>> > + ghcCall = (F ? F->getCallingConv() == CallingConv::GHC : false);
>>>> > + }
>>>>
>>>> > This bit...