[cfe-dev] Compile OpenCL host code using Clang and LLVM
Jorge Fernández Fabeiro
fabeirojorge at gmail.com
Thu Jan 12 04:44:30 PST 2012
Hi!
I'm working now in a program in C++ that analyses OpenCL kernel codes using
Clang (using Clang C++ functions, not Clang command-line instructions).
Moreover, my program also have to be able to compile a given C++ host code
for the kernel analysed, but now I'm doing the compilation with "system(g++
...)".
My question is: Is it possible to, given a C++ source code file (a simple
.cpp file), compile it from my program (without using command-line
instructions), just calling Clang and LLVM functions?
Thank you so much in advance.
Jorge.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120112/74f60cd2/attachment.html>
More information about the cfe-dev
mailing list