[LLVMdev] Whole program alias analysis in backend

Jonas Wagner jonas.wagner at epfl.ch
Mon Jun 10 00:13:39 PDT 2013


Hi,

  I know that backend processes one function at a time,
> is it somehow possible to do there a whole program analysis,
> or could you give me some guidelines?
>

There are different kinds of LLVM passes: Those that process a function at
a time (FunctionPass), but also those that work on the call graph
(CallGraphSCCPass) or on an entire module (ModulePass). These are described
in the Writing an LLVM Pass
<http://llvm.org/docs/WritingAnLLVMPass.html>documentation. For your
purposes, a ModulePass would probably be the best
choice, as it gives you complete freedom. You could also split your
analysis into multiple passes that depend on each other.

Best,
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130610/ff8c034c/attachment.html>


More information about the llvm-dev mailing list