[cfe-dev] no capture
Anton Korobeynikov
anton at korobeynikov.info
Thu Jul 15 06:00:55 PDT 2010
> I am wondering when does clang generate the no capture attribute
> for the arguments. One of its impacts seems to be that then the
> argument is passed directly without storing in the stack. Is that
> right?
>From http://llvm.org/docs/LangRef.html#paramattrs :
"nocapture
This indicates that the callee does not make any copies of the
pointer that outlive the callee itself. This is not a valid attribute
for return values."
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the cfe-dev
mailing list