LLVM 22.0.0git
CFG.cpp File Reference

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)
static bool instructionDoesNotReturn (const Instruction &I)
static bool basicBlockCanReturn (const BasicBlock &BB)

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

◆ basicBlockCanReturn()

bool basicBlockCanReturn ( const BasicBlock & BB)
static

◆ getOutermostLoop()

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

Definition at line 129 of file CFG.cpp.

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

Referenced by isReachableImpl().

◆ instructionDoesNotReturn()

bool instructionDoesNotReturn ( const Instruction & I)
static

Definition at line 327 of file CFG.cpp.

References llvm::dyn_cast(), and I.

Referenced by basicBlockCanReturn().

◆ isReachableImpl()

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().