Now with added patch!<br><br><div class="gmail_quote">2009/5/30 Nick Lewycky <span dir="ltr"><<a href="mailto:nlewycky@google.com">nlewycky@google.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I tried to implement a novel attribute, "__attribute__((nocapture))" which would apply LLVM's "nocapture" attribute to pointer-typed parameters or arguments in a function declaration or call. There don't seem to be any attributes like this to copy the technique.<br>


<br>The attribute goes onto the ParamVarDecl just fine but those don't seem to line up with the CGFunctionInfo's args due to things like implicit "this" and such. Also, it doesn't seem like ArgInfo is a good place to put an attribute like nocapture.<br>


<br>Does anyone have a suggestion for how this should work in Clang? I've attached my attempt at an implementation.<br><br>Thanks,<br><font color="#888888">Nick<br><br>
</font></blockquote></div><br>