search for: mrv6

Displaying 2 results from an estimated 2 matches for "mrv6".

Did you mean: mrv
2010 Jan 27
0
[LLVMdev] Returning a structure
..., long b) { struct R A; A.a = a; A.b = b; return A; } -> %"struct R" = type { i64, i64 } define %"struct R" @f(i64 %a, i64 %b) nounwind readnone { entry: %mrv5 = insertvalue %"struct R" undef, i64 %a, 0 ; <%"struct R"> [#uses=1] %mrv6 = insertvalue %"struct R" %mrv5, i64 %b, 1 ; <%"struct R"> [#uses=1] ret %"struct R" %mrv6 }
2010 Jan 27
2
[LLVMdev] Returning a structure
Hi Duncan, Thanks for the response! > that's because clang is doing something more complicated than you are: it is > producing a function that conforms to the platform ABI for passing parameters. > The platform ABI specifies in this case that the valued should be returned via > a special in-memory mechanism (thus the "sret" extra function parameter) rather > than in