[LLVMdev] running a module pass via opt on multiple bitcode files

Jinwook Shin (HOTWING) Jinwook.Shin at microsoft.com
Tue Jul 12 14:11:06 PDT 2011


Hi,

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?

Thanks.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110712/c5b2bd6f/attachment.html>


More information about the llvm-dev mailing list