[LLVMdev] running a module pass via opt on multiple bitcode files
criswell at illinois.edu
Tue Jul 12 14:19:06 PDT 2011
On 7/12/11 4:11 PM, Jinwook Shin (HOTWING) wrote:
> I'm trying to implement a module pass as a share object to process an
> entire program as a unit. The target program is built from multiple
> object files, hence multiple bitcode files. However, it seems that opt
> does not take the whole program, but just one bitcode file, "test.bc"
> in the example run shown below.
> $ opt -load mypass.dylib -mymodulepass < test.bc > /dev/null
> How do I run my module pass in a library on a whole program?
Link the bitcode files together into a single bitcode file with
llvm-ld. You can then run the single bitcode file through opt.
-- John T.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev