LLVM API Documentation
#include "llvm/Analysis/LazyCallGraph.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "lcg" |
Functions | |
static void | findCallees (SmallVectorImpl< Constant * > &Worklist, SmallPtrSetImpl< Constant * > &Visited, SmallVectorImpl< PointerUnion< Function *, LazyCallGraph::Node * >> &Callees, DenseMap< Function *, size_t > &CalleeIndexMap) |
static void | printNodes (raw_ostream &OS, LazyCallGraph::Node &N, SmallPtrSetImpl< LazyCallGraph::Node * > &Printed) |
static void | printSCC (raw_ostream &OS, LazyCallGraph::SCC &SCC) |
#define DEBUG_TYPE "lcg" |
Definition at line 21 of file LazyCallGraph.cpp.
static void findCallees | ( | SmallVectorImpl< Constant * > & | Worklist, |
SmallPtrSetImpl< Constant * > & | Visited, | ||
SmallVectorImpl< PointerUnion< Function *, LazyCallGraph::Node * >> & | Callees, | ||
DenseMap< Function *, size_t > & | CalleeIndexMap | ||
) | [static] |
Definition at line 23 of file LazyCallGraph.cpp.
References llvm::CallingConv::C, llvm::dbgs(), DEBUG, llvm::SmallVectorBase::empty(), F(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT >::insert(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::User::operand_values(), llvm::SmallVectorImpl< T >::pop_back_val(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by llvm::LazyCallGraph::LazyCallGraph().
static void printNodes | ( | raw_ostream & | OS, |
LazyCallGraph::Node & | N, | ||
SmallPtrSetImpl< LazyCallGraph::Node * > & | Printed | ||
) | [static] |
Definition at line 687 of file LazyCallGraph.cpp.
References I, and llvm::SmallPtrSetImpl< PtrType >::insert().
Referenced by llvm::LazyCallGraphPrinterPass::run().
static void printSCC | ( | raw_ostream & | OS, |
LazyCallGraph::SCC & | SCC | ||
) | [static] |
Definition at line 701 of file LazyCallGraph.cpp.
References llvm::LazyCallGraph::SCC::begin(), and llvm::LazyCallGraph::SCC::end().
Referenced by llvm::LazyCallGraphPrinterPass::run().