libclc with nvptx backend


I’m tring to use clang to comiple OpenCL source files into LLVM IR, and use LLVM NVPTX backend to generate PTX IR for nvidia gpus.

I tried the following command:

svn checkout []( libclc

built it with ``./ --with-llvm-config=$PWD/../install-trunk/bin/llvm-config make
```clang -Dcl_clang_storage_class_specifiers -isystem libclc/generic/include -include clc/clc.h -target nvptx -xcl -emit-llvm -S -o test.ll`

then it went wrong with this command :
```llvm-link libclc/nvptx–nvidiacl/lib/builtins.bc test.ll -o square.linked.bc`

I can't find builtins.bc. I can only find and builtins.opt.bc.

Can some one tell me how to fix this?

However, I can use