Displaying 3 results from an estimated 3 matches for "nubilosoft".
2016 Dec 21
0
Correct way to pass int128 from LLVM to C++ function (MSVC)
On Wed, Dec 21, 2016 at 11:18 AM, Stefan de Bruijn <stefan at nubilosoft.com>
wrote:
> Thanks for the quick reply. Yes, passing it as int128* is a workaround
> that obviously works. Still, that leaves me with the return values. Or are
> you suggesting that I rewrite
>
>
>
> int128 Modify(int128& tmp) { … }
>
>
>
> to
>
>
&g...
2016 Dec 21
2
Correct way to pass int128 from LLVM to C++ function (MSVC)
...roblems are pretty much the same. At a first glance, it seems to me like this problem is more general, namely: for all structures larger than 8 bytes.
Kind regards,
Stefan.
From: Reid Kleckner [mailto:rnk at google.com]
Sent: Wednesday, December 21, 2016 6:12 PM
To: Stefan de Bruijn <stefan at nubilosoft.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Correct way to pass int128 from LLVM to C++ function (MSVC)
The Windows x64 ABI rules say that anything larger than 8 bytes is passed by reference.[1] Because MSVC doesn't support the __int128 type on x64, nobody has made sure that...
2016 Dec 21
0
Correct way to pass int128 from LLVM to C++ function (MSVC)
The Windows x64 ABI rules say that anything larger than 8 bytes is passed
by reference.[1] Because MSVC doesn't support the __int128 type on x64,
nobody has made sure that the LLVM i128 type is passed in a way that
follows the local ABI rules. I think LLVM should probably pass i128 the
same way it passes <2 x i64> on Win64, which is indirectly in memory.
Until LLVM is fixed, you can