Here are some shell scripts for building llvm. For example: bash cmake-build-llvm-ykt.sh source dynamic-switch-llvm-ykt.sh ./opt/nvidia/cuda-7.5/nvvm/libdevice