I\'ve been trying for three days to compile a CUDA kernel into llvm IR and I couldn\'t do it. I\'ve changed langoptions.cpp and added CUDA=1; in t
langoptions.cpp
CUDA=1;
clang –x=CUDA in the public LLVM trunk is something experimental done outside of NVIDIA; you should contact the llvm-dev alias with questions.
clang –x=CUDA
NVCC doesn't support emitting LLVM IR.