[cfe-dev] use of 'restrict' pointer
Pekka Jääskeläinen
pekka.jaaskelainen at tut.fi
Mon May 24 11:27:38 PDT 2010
On 05/24/2010 09:12 PM, Arvind Sudarsanam wrote:
> The ‘restrict’ information seems to be lost in the generated IR code. Am
> I doing something wrong here?
I think 'restrict' works in LLVM only when the keyword is used with
function arguments. At least that was the case with LLVM 2.6.
In addition, Clang had some troubles with 'restrict' in LLVM 2.7,
but it seems to work again in Clang trunk, at least for me. See:
http://llvm.org/bugs/show_bug.cgi?id=5274
BR,
--
Pekka
More information about the cfe-dev
mailing list