[LLVMdev] c const
Christopher Lamb
christopher.lamb at gmail.com
Fri Aug 17 10:42:31 PDT 2007
On Aug 16, 2007, at 9:09 AM, Chris Lattner wrote:
> On Thu, 16 Aug 2007, Holger Schurig wrote:
>>> if the programmer is going to tell you that the memory pointed
>>> to by a pointer argument is never written.
If you use a const * __restrict pointer then you should get the
benefit of this as the alias analysis will assume that the pointed to
object is neither aliased nor written.
--
Christopher Lamb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20070817/ffc66f95/attachment.html>
More information about the llvm-dev
mailing list