[LLVMdev] Call Graph Analysis

Bill Wendling isanbard at gmail.com
Wed Aug 20 10:59:44 PDT 2008

On Wed, Aug 20, 2008 at 9:47 AM, kapil anand <kapilanand2 at gmail.com> wrote:
> Hi,
> I have been working on implementing new analysis for a LLVM module. For
> that, I need that Call Graph of the module. Inside the CallGraph file, the
> constructor has been declared "protected" hence I can't define its instance
> and thus use the CallGraph for further analysis.
> So, what are the ways of building and using Call Graph of a module. Do I
> need to make my new analysis as another PASS?
Yes, you should make it a pass, and then say that that pass requires
call graph information like this:


The pass manager's responsible for providing that analysis information
for you. See how it's used in other passes for examples.


More information about the llvm-dev mailing list