[LLVMdev] Writing pass for llc

Duncan Sands baldrick at free.fr
Wed Jul 15 02:10:38 PDT 2009

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.



More information about the llvm-dev mailing list