Problems of source to source transformation of LLVM


I did experiments of the source transformation of LLVM on SPEC2000 C programs. But I found most benchmarks can’t be

transformed from source to source successfully.

The steps are as follows.

  1. I write a script to transform every .c file into .bc file, and then use llc to transform .bc file to .c files.

I don’t know if there are any method to transform many .c files into one .bc file and then transform the .bc file into one .c file.

If there are any good method, pls tell meJ. The scripts are as follows.