search for: 0f1282aa

Displaying 1 result from an estimated 1 matches for "0f1282aa".

2016 Mar 28
3
C returning struct by value
I'm new to using LLVM and I've started work on a compiler for a language that can interface with C. One thing that caught me off guard was returning a struct from a function by value. It seems that when calling a C function I need to emit llvm ir that, in the caller, emits an alloca for the returned structure, and the C function signature should return void and take a first argument with