movfuscator icon indicating copy to clipboard operation
movfuscator copied to clipboard

LLC not able to compile C++ code into C

Open JL2210 opened this issue 5 years ago • 1 comments

Extra info: https://stackoverflow.com/questions/31960290/using-the-llvm-linker-to-produce-c-code

$ clang++ -S -emit-llvm -o bytecode.ll tiny.cpp
--- snip ---
$ llc -march=c -o code.c bytecode.ll
llc: error: error: invalid target 'c'.

The C backend for LLVM was removed in 3.1.

JL2210 avatar May 20 '19 17:05 JL2210

https://github.com/JuliaComputing/llvm-cbe

aviallon avatar Apr 15 '20 16:04 aviallon