OpenMPI and llvm-gcc

Yes I think I can.

The original compile line was:
llvm-g++ -DHAVE_CONFIG_H -I. -I../.. -I../../extlib/otf/otflib -I../../extlib/otf/otflib -I../../vtlib/ -I../../vtlib -D_REENTRANT -fopenmp -DVT_OMP -O2 -MT vtfilter-vt_tracefilter.o -MD -MP -MF .deps/vtfilter-vt_tracefilter.Tpo -c -o vtfilter-vt_tracefilter.o `test -f '' || echo './'`

I preprocessed the file using the llvm-cpp as follows:
llvm-cpp -DHAVE_CONFIG_H -I. -I../.. -I../../extlib/otf/otflib -I../../extlib/otf/otflib -I../../vtlib/ -I../../vtlib -D_REENTRANT -fopenmp -DVT_OMP -O2 -MT vtfilter-vt_tracefilter.o -MD -MP -MF .deps/vtfilter-vt_tracefilter.Tpo > vtfilter-vt_tracefilter.cpp

Than I checked whether or not the .o file compiled as:
llvm-gcc -fopenmp -DVT_OMP -O2 -MT vtfilter-vt_tracefilter_.o -MD -MP -MF .deps/vtfilter-vt_tracefilter_.Tpo -c -o vtfilter-vt_tracefilter_.o vtfilter-vt_tracefilter.cpp

matched the original .o file (it did ... lucky me)
Finally I compiled for llvm byte-code (.bc) with the above command plus the -emit-llvm flag.

I hope that is what you were asking for!

  FF (193 KB)