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>
Hi> llc -march=cpp -o input.ll.cpp input.ll > > which gives the following error > > llc: error: invalid target 'cpp'.probably you built LLVM without support for the cpp target, eg you only built it for x86. Ciao, Duncan.