search for: ms235286

Displaying 5 results from an estimated 5 matches for "ms235286".

2016 Dec 21
0
Correct way to pass int128 from LLVM to C++ function (MSVC)
...tly in memory. Until LLVM is fixed, you can work around the problem by passing i128 by pointer, which you're probably already doing. Given that we will ultimately pass it by pointer in order to obey the ABI, it's a pretty reasonable workaround. [1] https://msdn.microsoft.com/en-us/library/ms235286.aspx On Wed, Dec 21, 2016 at 4:35 AM, Stefan de Bruijn via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Hi, > > > > I’ve been attempting to call a C++ function from LLVM code. The LLVM code > is JIT’ted and executed from C++. Basically my idea was as follows: > >...
2011 Feb 21
2
[LLVMdev] Passing structures as pointers, MSVC x64 style
The MS x64 ABI calling convention (http://msdn.microsoft.com/en-us/library/ms235286(VS.80).aspx) says: Any argument that doesn’t fit in 8 bytes, or is not 1, 2, 4, or 8 bytes, must be passed by reference. Clang isn't doing that for us when passing our triple, x86_64-pc-win32-macho. Here's a simple example program: struct Guid { unsigned int Data1;...
2016 Dec 21
2
Correct way to pass int128 from LLVM to C++ function (MSVC)
Hi, I've been attempting to call a C++ function from LLVM code. The LLVM code is JIT'ted and executed from C++. Basically my idea was as follows: -- LLVM IR code - ; ModuleID = 'native' define i32 @main(i32, i8**) { code: call void @"Helper::Test"(i128 128932) ret i32 0 -- C++ code - struct int128 { uint64_t v1; uint64_t v2; // ... code omitted... *1
2016 Dec 21
2
Correct way to pass int128 from LLVM to C++ function (MSVC)
...tly in memory. Until LLVM is fixed, you can work around the problem by passing i128 by pointer, which you're probably already doing. Given that we will ultimately pass it by pointer in order to obey the ABI, it's a pretty reasonable workaround. [1] https://msdn.microsoft.com/en-us/library/ms235286.aspx On Wed, Dec 21, 2016 at 4:35 AM, Stefan de Bruijn via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote: Hi, I’ve been attempting to call a C++ function from LLVM code. The LLVM code is JIT’ted and executed from C++. Basically my idea was as follows:...
2011 Feb 22
0
[LLVMdev] Passing structures as pointers, MSVC x64 style
...Size)); It was my workaround, sorry. Please check to tweak the clause (128 to 64) and lemme know. ...Takumi On Tue, Feb 22, 2011 at 7:58 AM, Carl Norum <carl.norum at apple.com> wrote: > > The MS x64 ABI calling convention (http://msdn.microsoft.com/en-us/library/ms235286(VS.80).aspx) says: > >    Any argument that doesn’t fit in 8 bytes, or is not 1, 2, 4, or 8 bytes, must be passed by reference. > > Clang isn't doing that for us when passing our triple, x86_64-pc-win32-macho. > > Here's a simple example program: > >    struct Guid {...