[LLVMdev] sret on scalars
clattner at apple.com
Mon Aug 23 12:42:51 PDT 2010
On Aug 19, 2010, at 1:38 PM, Andrew Lenharth wrote:
> I am needing to return i128 as a shadow return due to abi issues on
> alpha. The problem I am running into is the code for doing that with
> scalars (currently only used for vectors, as far as I can tell) sets
> the sret on the parameter. If I just go this path, then I am setting
> sret on an integer pointer, which verify objects too. LangRef doesn't
> say scalars are allowed to have sret set, but sret is used for
> So my question is: should I, when updating the llvm-gcc, not set sret
> on my i128 shadow returns (also on f128), or should Verify accept sret
> on scalar pointers, not just struct or vector pointers?
sret doesn't make sense on scalars or vectors. Where are you seeing it work with vectors?
More information about the llvm-dev