[llvm-dev] LLVM IR to C++

Jonathan Roelofs via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 15 17:33:50 PST 2016



On 2/15/16 6:16 PM, Erdem Derebaşoğlu via llvm-dev wrote:
> Hi,
>
> I want to convert LLVM bitcode files to cpp. I use these commands:
>
> 1. clang -c -emit-llvm -fopenmp=libiomp5 oh2.c -o oh2.bc
> 2. llc -march=cpp oh2.bc -o oh2.cpp
> 3. 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?

What kinds of compilation errors are you seeing?


Jon

>
> Thanks,
>
> Erdem Derebasoglu
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded


More information about the llvm-dev mailing list