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 [http://llvm.org/svn/llvm-project/libclc/trunk](http://llvm.org/svn/llvm-project/libclc/trunk) libclc
built it with ``./configure.py --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 test.cl -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 builtins.link.bc and builtins.opt.bc.
Can some one tell me how to fix this?
However, I can use