[LLVMdev] Multi-scan passes under LLVM (2.7)
criswell at uiuc.edu
Thu Jul 22 10:39:20 PDT 2010
Chuck Zhao wrote:
> For current FunctionPass passes, each function in the current module
> will be visited _once_ under some order.
> If I have an algorithm that needs to visit each function more than once
> in order to generate the final result, how could it be arranged under
> the current LLVM Pass framework?
> Could somebody point me a pass that currently doing this?
You may want to use a ModulePass if you need to examine/transform a
function multiple times.
-- John T.
> Thank you
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev