LLVM 24.0.0git
AssumptionCache.cpp File Reference

Go to the source code of this file.

Functions

static void findAffectedValues (CallBase *CI, TargetTransformInfo *TTI, SmallVectorImpl< AssumptionCache::ResultElem > &Affected)
static const charfindCacheViolation (const Function &F, ArrayRef< WeakVH > Assumptions, SmallPtrSetImpl< const CallInst * > &Cached)
 Check the assumptions cached for F, collecting them in Cached.

Variables

static cl::opt< boolVerifyAssumptionCache ("verify-assumption-cache", cl::Hidden, cl::desc("Enable verification of assumption cache"), cl::init(false))
static cl::opt< unsigned, true > MaxAssumesPerValueOpt ("max-assumes-per-value", cl::Hidden, cl::location(MaxAssumesPerValue), cl::init(1024), cl::desc("Maximum number of assumptions affecting a single value that " "analyses will inspect"))

Function Documentation

◆ findAffectedValues()

◆ findCacheViolation()

const char * findCacheViolation ( const Function & F,
ArrayRef< WeakVH > Assumptions,
SmallPtrSetImpl< const CallInst * > & Cached )
static

Check the assumptions cached for F, collecting them in Cached.

Returns a description of the first invariant violated, or nullptr if there is none.

Definition at line 224 of file AssumptionCache.cpp.

References llvm::cast(), F, llvm::Instruction::getFunction(), llvm::SmallPtrSetImpl< PtrType >::insert(), llvm::PatternMatch::m_Intrinsic(), and llvm::PatternMatch::match().

Referenced by llvm::AssumptionCache::registerAssumption(), and llvm::AssumptionCacheTracker::verifyAnalysis().

Variable Documentation

◆ MaxAssumesPerValueOpt

cl::opt< unsigned, true > MaxAssumesPerValueOpt("max-assumes-per-value", cl::Hidden, cl::location(MaxAssumesPerValue), cl::init(1024), cl::desc("Maximum number of assumptions affecting a single value that " "analyses will inspect")) ( "max-assumes-per-value" ,
cl::Hidden ,
cl::location(MaxAssumesPerValue) ,
cl::init(1024) ,
cl::desc("Maximum number of assumptions affecting a single value that " "analyses will inspect")  )
static

◆ VerifyAssumptionCache

cl::opt< bool > VerifyAssumptionCache("verify-assumption-cache", cl::Hidden, cl::desc("Enable verification of assumption cache"), cl::init(false)) ( "verify-assumption-cache" ,
cl::Hidden ,
cl::desc("Enable verification of assumption cache") ,
cl::init(false)  )
static