[LLVMdev] Source code to LLVM C++ API
Blind Faith
person.of.book at gmail.com
Thu Feb 7 04:56:02 PST 2013
The Online LLVM demo page had an option to generate LLVM C++ API code as
backend from a source code. However, that demo page is now disabled. I was
wondering how we can do it ourselves using the available LLVM tools.
I tried the following
clang++ -c -emit-llvm input.cpp -o input.ll
llc -march=cpp -o input.ll.cpp input.ll
which gives the following error
llc: error: invalid target 'cpp'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130207/9ce0c7e4/attachment.html>
More information about the llvm-dev
mailing list