Displaying 5 results from an estimated 5 matches for "cc_x86_win32_c".
2013 Mar 21
3
[LLVMdev] [cfe-dev] Handling SRet on Windows x86
...BI", so
it's Cygwin and MinGW (that are similar more similar to Itanium ABI
than to MSVC ABI) that should be exceptions from the general Win32
handling code.
That is,
b) We should add a IsTargetWin32 which is true if the MSVC 32-bit ABI
is used and false for Cygwin+MinGW.
c) We should add CC_X86_Win32_C and CC_X86_Win32_ThisCall and use them
only for MSVC 32-bit ABI.
d) Cygwin and MinGW should use the CC_X86_32_C
This way, Clang takes care of setting the SRet attribute wherever appropriate
and LLVM takes care of putting such return values onto stack in the
Win32/MSVC32 ABI.
What do you think abo...
2012 Oct 02
4
[LLVMdev] Handling SRet on Windows x86
...on non-Windows platforms?
[I suppose no]
b) Should I be altering CC_X86_32_ThisCall
OR should I introduce CC_X86_Win32_ThisCall instead?
[Answer not clear to me - is there any platform besides Windows
that uses thiscall?]
Probably I need to create CC_X86_Win32_ThisCall (and maybe
CC_X86_Win32_C later) by copying CC_X86_32_ThisCall similar to how
CC_X86_Win64_C is done - does that sound right?
Hints and suggestions on fixing this are welcome!
--
Thanks,
Timur Iskhodzhanov,
Google Russia
2012 Oct 04
0
[LLVMdev] [cfe-dev] Handling SRet on Windows x86
How can a frontend tell LLVM to put a function argument on stack/register/etc?
On Thu, Oct 4, 2012 at 5:08 PM, Anton Korobeynikov <asl at math.spbu.ru> wrote:
>> Ah, got it.
>> Sounds like we might need to introduce CC_X86_Win32_MSVC_ThisCall then?..
> No, we should not. It should be properly expanded in frontend.
>
> --
> With best regards, Anton Korobeynikov
>
2012 Oct 04
3
[LLVMdev] [cfe-dev] Handling SRet on Windows x86
> Ah, got it.
> Sounds like we might need to introduce CC_X86_Win32_MSVC_ThisCall then?..
No, we should not. It should be properly expanded in frontend.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2013 Mar 21
0
[LLVMdev] [cfe-dev] Handling SRet on Windows x86
...ygwin+MinGW.
FTR, there's already such a method but it is (mis?)used only in
lib/Target/X86/X86FrameLowering.cpp for segmented stacks.
Are segmented stacks actually used with MSVC or is it just the
conditions there should use isTargetMingw() && !is64Bit() instead?
> c) We should add CC_X86_Win32_C and CC_X86_Win32_ThisCall and use them
> only for MSVC 32-bit ABI.
> d) Cygwin and MinGW should use the CC_X86_32_C
>
> This way, Clang takes care of setting the SRet attribute wherever appropriate
> and LLVM takes care of putting such return values onto stack in the
> Win32/MSVC3...