[LLVMdev] sret
Duncan Sands
baldrick at free.fr
Thu Jan 1 07:06:34 PST 2009
Hi,
> I'm returning structs from functions by passing a pointer to the pre-existing
> struct as the first argument. However, I am not setting "sret" because there
> are not yet any OCaml bindings for it. What am I missing out on?
sret exists to achieve ABI compliance, i.e. to achieve interoperability with
code compiled with other compilers. If you don't care about that, there's
not much point in setting sret attribute.
Ciao,
Duncan.
More information about the llvm-dev
mailing list