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