[cfe-dev] use of 'restrict' pointer
Arvind Sudarsanam
A.Sudarsanam at cputech.com
Mon May 24 11:12:29 PDT 2010
Hi,
I have C source code which qualifies some of the pointers using the
'restrict' keyword and used clang to generate the llvm IR code.
Here is the C source code:
int restrict1(void)
{
int* restrict a;
int* restrict b;
int x[10];
int y[10];
*a = x[2];
*b = x[3];
return(x[4]);
}
The 'restrict' information seems to be lost in the generated IR code. Am
I doing something wrong here?
Thanks
Arvind
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100524/e967b928/attachment.html>
More information about the cfe-dev
mailing list