[cfe-dev] OpenCL parsing / type support

John McCall rjmccall at apple.com
Thu Mar 11 16:19:38 PST 2010


On Mar 11, 2010, at 7:04 AM, Arnaud Allard de Grandmaison wrote:
> This way, you can now have a memcpy-like function, transferring blocks from address space 0 to 1, with the following declaration in your clang/include/clang/Basic/BuiltinsZZZZ.def:
> 
> BUILTIN(__builtin_memxfer, "v*1v*1vC*z", "n")

Seems reasonable to me;  I'll go ahead and commit this when I get a chance.

> Clang/head is currently broken (building it fails with 'llvm::DIFile' has not been declared), so I have not been able to test it, but the patch applies and the patched files compile just fine.

DIFile was added to LLVM on Monday in r97994.  In general Clang/head is tightly coupled to LLVM/head, and you should assume that missing declarations (particularly in the llvm:: namespace) are due to such changes.

John.



More information about the cfe-dev mailing list