search for: f95478da5_ffi_fn

Displaying 4 results from an estimated 4 matches for "f95478da5_ffi_fn".

2008 Mar 26
2
[LLVMdev] Wrong calling convention?
...h just a `double' data member: class Foo { double data; }; My compiler abstracts this as a [8 x i8] array. This is the llvm code: define internal i1 @Addr_045442A0() { alloca [8 x i8], align 4 ; <[8 x i8]*>:1 [#uses=2] alloca i1, align 4 ; <i1*>:2 [#uses=2] tail call void @F95478DA5_FFI_FN( [8 x i8]* %1 sret ) bitcast [8 x i8]* %1 to i8* ; <i8*>:3 [#uses=1] tail call void @Addr_004DDA18( i8* inttoptr (i32 14545104 to i8*), i8* %3 ) store i1 true, i1* %2 load i1* %2 ; <i1>:4 [#uses=1] ret i1 %4 } It is a function that just calls the above mentioned C++ static meth...
2008 Mar 26
0
[LLVMdev] Wrong calling convention?
Hi, > define internal i1 @Addr_045442A0() { > alloca [8 x i8], align 4 ; <[8 x i8]*>:1 [#uses=2] > alloca i1, align 4 ; <i1*>:2 [#uses=2] > tail call void @F95478DA5_FFI_FN( [8 x i8]* %1 sret ) this call uses the "struct-return" convention (due to the sret attribute). On x86 this means that the caller is responsible for adjusting the stack pointer after the call for the sret parameter. If the callee is not following the sret convention then the stack poin...
2008 Mar 26
4
[LLVMdev] Wrong calling convention?
Hi Duncan. Duncan Sands <baldrick at free.fr> writes: >> define internal i1 @Addr_045442A0() { >> alloca [8 x i8], align 4 ; <[8 x i8]*>:1 [#uses=2] >> alloca i1, align 4 ; <i1*>:2 [#uses=2] >> tail call void @F95478DA5_FFI_FN( [8 x i8]* %1 sret ) > > this call uses the "struct-return" convention (due to the sret attribute). > On x86 this means that the caller is responsible for adjusting the stack > pointer after the call for the sret parameter. If the callee is not following > the sret conven...
2008 Mar 26
0
[LLVMdev] Wrong calling convention?
Hi Óscar, > >> define internal i1 @Addr_045442A0() { > >> alloca [8 x i8], align 4 ; <[8 x i8]*>:1 [#uses=2] > >> alloca i1, align 4 ; <i1*>:2 [#uses=2] > >> tail call void @F95478DA5_FFI_FN( [8 x i8]* %1 sret ) > > > > this call uses the "struct-return" convention (due to the sret attribute). > > On x86 this means that the caller is responsible for adjusting the stack > > pointer after the call for the sret parameter. If the callee is not following...