[cfe-dev] How to visit an OpenCL kernel source code using Clang library

eya eya.get at gmail.com
Wed Nov 16 21:43:33 PST 2011


 
Actually -x cl option can't really make it compatible to clang, rather it
informs for the compiler as the source is cl file. What you want to do by
using clang? If you want to generate llvm IR or AST, it really works. 
clang -S -emit-llvm -o file  -x cl file.cl this can generate LLVM IR for any
.cl file.

--
View this message in context: http://clang-developers.42468.n3.nabble.com/How-to-visit-an-OpenCL-kernel-source-code-using-Clang-library-tp3512146p3514858.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list