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 char * findCacheViolation (const Function &F, ArrayRef< WeakVH > Assumptions, SmallPtrSetImpl< const CallInst * > &Cached)
 Check the assumptions cached for F, collecting them in Cached.

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