LLVM 19.0.0git
Classes | Functions | Variables
CFG.cpp File Reference
#include "llvm/Analysis/CFG.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/Support/CommandLine.h"

Go to the source code of this file.

Classes

class  SingleEntrySet< T >
 

Functions

static const LoopgetOutermostLoop (const LoopInfo *LI, const BasicBlock *BB)
 
template<class StopSetT >
static bool isReachableImpl (SmallVectorImpl< BasicBlock * > &Worklist, const StopSetT &StopSet, const SmallPtrSetImpl< BasicBlock * > *ExclusionSet, const DominatorTree *DT, const LoopInfo *LI)
 

Variables

static cl::opt< unsignedDefaultMaxBBsToExplore ("dom-tree-reachability-max-bbs-to-explore", cl::Hidden, cl::desc("Max number of BBs to explore for reachability analysis"), cl::init(32))
 

Function Documentation

◆ getOutermostLoop()

static const Loop * getOutermostLoop ( const LoopInfo LI,
const BasicBlock BB 
)
static

Definition at line 128 of file CFG.cpp.

References llvm::LoopInfoBase< BlockT, LoopT >::getLoopFor().

Referenced by isReachableImpl().

◆ isReachableImpl()

template<class StopSetT >
static bool isReachableImpl ( SmallVectorImpl< BasicBlock * > &  Worklist,
const StopSetT &  StopSet,
const SmallPtrSetImpl< BasicBlock * > *  ExclusionSet,
const DominatorTree DT,
const LoopInfo LI 
)
static

Variable Documentation

◆ DefaultMaxBBsToExplore

cl::opt< unsigned > DefaultMaxBBsToExplore("dom-tree-reachability-max-bbs-to-explore", cl::Hidden, cl::desc("Max number of BBs to explore for reachability analysis"), cl::init(32)) ( "dom-tree-reachability-max-bbs-to-explore"  ,
cl::Hidden  ,
cl::desc("Max number of BBs to explore for reachability analysis")  ,
cl::init(32)   
)
static

Referenced by isReachableImpl().