[patch][rfc] Don't mangle fastcall and stdcall at the llvm level.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Oct 29 13:21:50 PDT 2013


On 29 October 2013 16:13, Anton Korobeynikov <anton at korobeynikov.info> wrote:
> This would require the users (think about JIT on Windows as a typical
> example) to mangle stuff by themselves, that is - calculate the sizes
> of all the arguments, add rounding, etc.
>
> I'm strongly opposed to this patch.

Can you expand the objection a bit? If interfacing with C, and
specially C++, there is already quiet a bit of lowering that has to
happen. That is true even for arguments, where more intricate issues
like a value being in register or not need to be computed by the tool
producing LLVM IR, so they already need to compute  the sizes.

Cheers,
Rafael



More information about the llvm-commits mailing list