[LLVMdev] Cross-module optimization

Andrii Vasyliev andrii.vasyliev at gmail.com
Sat Sep 5 07:40:09 PDT 2009


Hi!

I want to load several modules with BitcodeReader and build a module
with IRBuilder and then optimize them alltogether. Actually I want
functions from loaded modules to be inlined in functions that I've built.
Is it possible with LLVM? As I understood PassManager runs upon only
one module at once.

May be is there some workaround? Like joining all the modules in one
and then optimize it. Unfortunately I couldn't find a way to join modules.

Thanks,
Andrii



More information about the llvm-dev mailing list