<div dir="ltr"><div>How to use llvm to compile CUDA to IR?<br><br></div>I have got as far as llvm to ptx, ie/eg:<br><br>clang++-3.8 -I/usr/local/cuda-7.5/include <a href="http://llvm-sample.cu">llvm-sample.cu</a>  -S -o llvm-sample.ll<br><div><br></div><div>(except the ".ll" is actually ptx...)<br></div><br></div>