Is there any way to convert the llvm IR to c code and keep its semantics? For example, can we compile the c code first to llvm IR and then compile it back to another piece of c code. I don't expect that these two files will be the same. But they need to have the same functionality. Thanks
1 Answer
You can use the C backend, with llc -march=c
2 Comments
Arunprasad Rajkumar
It is no longer available in llc-3.4.Is there any alternates?
SK-logic
@ArunprasadRajkumar, you may be interested in this one: lists.cs.uiuc.edu/pipermail/llvmdev/2014-August/075875.html