benchmarking - Modifying the compilation process with SPEC to use LLVM -
i working on running llvm passes , benchmark usefulness using spec 2006 cpu benchmark suite. however, i've not figured out how modify spec setup other use llvm-gcc output llvm bitcode. here i'd modify workflow of spec do:
compile .o files llvm llvm-bytecode
llvm-gcc -emit-llvm *.c for each .o file, run opt (llvm's optimization pass):
opt -adce -mem2reg cfline.o link llvm-link:
llvm-link *.o -o out.o.linked turn llvm bytecode assembly
llc out.o.linked and turn executable code:
gcc out.o.linked -o out.executable is there way can this? know can edit .cfg files emit llvm, don't know how choose different linking/pre-linking procedure.
thanks!
llvm has test-suite subproject knows how build , run spec. see docs more info.
Comments
Post a Comment