[llvm-dev] LLVM IR to C++

Erdem Derebaşoğlu via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 15 17:16:07 PST 2016

I want to convert LLVM bitcode files to cpp. I use these commands:
1. clang -c -emit-llvm -fopenmp=libiomp5 oh2.c -o oh2.bc2. llc -march=cpp oh2.bc -o oh2.cpp3. g++ -fno-rtti -O0 -g `$HOME/llvmbuild/bin/llvm-config --cxxflags` oh2.cpp `$HOME/llvmbuild/bin/llvm-config --ldflags --libs --system-libs` -o oh2c
After the 3rd command, I get a lot of compilation errors. Is it possible that llc -march=cpp generates incorrect code?
Erdem Derebasoglu 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160216/1fb4d142/attachment.html>

More information about the llvm-dev mailing list