[llvm-commits] [PATCH] Support for the thiscall calling convention

Steven Watanabe watanabesj at gmail.com
Sat May 15 20:22:23 PDT 2010


AMDG

Charles Davis wrote:
> On 5/15/10 1:29 PM, Anton Korobeynikov wrote:
>   
>>> The attached patch adds support for Microsoft's __thiscall
>>> keyword.
>>>       
>> Patch itself looks ok, but before it can be committed, thiscall CC
>> should be implemented in LLVM.
>> Otherwise the code will be silently miscompiled (and no error will be
>> produced as now).
>>     
> Ask and ye shall receive.
>
> Attached is a patch to add this support to LLVM--complete with full
> Target, AsmWriter, and AsmParser support.
>   

Here's a slightly more complete patch.  I added support
for CBackend and MSIL, and some extra error handling
to match fastcall.

In Christ,
Steven Watanabe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: thiscall-support.llvm.patch
Type: text/x-patch
Size: 10754 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100515/5e919172/attachment.bin>


More information about the llvm-commits mailing list