[LLVMdev] Question on sret

John Criswell criswell at uiuc.edu
Wed Jul 14 08:49:32 PDT 2010

Dear All,

What is the purpose of the sret function parameter attribute?  Does it 
affect the calling convention used during code generation, is it a hint 
to optimizations, or is it used for something else?

I'm currently working on automatic pool allocation; this transform 
clones a function and adds extra parameters to the beginning of the 
function's parameter list.  This means that I have to remove the sret 
attribute from the original first parameter.  Is removing sret safe?

-- John T.

More information about the llvm-dev mailing list