[LLVMdev] Writing pass for llc

sanjiv gupta sanjiv.gupta at microchip.com
Wed Jul 15 03:13:08 PDT 2009

On Wed, 2009-07-15 at 11:10 +0200, Duncan Sands wrote:
> Hi Sanjiv,
> > Can we write CallGraphSCCPass in llc?
> not really.  The code generator should do everything one function
> at a time.  This allows you to materialize and codegen functions on
> demand, or codegen functions one at a time, deleting function bodies
> after they are codegened.  So while you probably could calculate and
> make use of the callgraph, it is against the codegen philosophy and
> may not work properly in all cases.
> Ciao,
> Duncan.
Thanks Duncan for explaining this.

The basic problem that I was trying to solve is to find all the
functions called from a top-level interrupt routine in the whole
Looks like llvm-ld is the best place to get this kind of info.

- Sanjiv

> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list