search for: classsifi

Displaying 3 results from an estimated 3 matches for "classsifi".

Did you mean: classsify
2018 Apr 22
0
Difference between "byval" and actually passing by value?
Hi, On 22 April 2018 at 06:34, edA-qa mort-ora-y via llvm-dev <llvm-dev at lists.llvm.org> wrote: > They are not compatible with each other yet logically do the same > thing. The second form is the one that appears to work with the ABI on > linux, and the first one not. > > What is the reason for the difference? If you pass a struct directly, the LLVM target will just see
2018 Apr 22
2
Difference between "byval" and actually passing by value?
There appears to be a difference between passing by value:     call void @foo(%some_struct %v) And using the `byval` attribute on a pointer:     call void @foo(%some_struct* byval %v) They are not compatible with each other yet logically do the same thing.  The second form is the one that appears to work with the ABI on linux, and the first one not. What is the reason for the difference? --
2018 Apr 22
1
Difference between "byval" and actually passing by value?
Super, that clarifies a lot what happens.  And yes, it's been a challenge calling C APIs with by-value structures, but I think I've got it working now, at least on x86_64 Linux. If I understood correctly, when llvm sees a struct like `foo = { i8, i64, float }` and then a function like `bar( %foo )` it is the same as the function `bar( i8, i64, float )`?  Is the call guaranteed to be byte