LLVM 20.0.0git
|
#include "llvm/Analysis/DomConditionCache.h"
Public Member Functions | |
void | registerBranch (BranchInst *BI) |
Add a branch condition to the cache. | |
void | removeValue (Value *V) |
Remove a value from the cache, e.g. because it will be erased. | |
ArrayRef< BranchInst * > | conditionsFor (const Value *V) const |
Access the list of branches which affect this value. | |
Definition at line 29 of file DomConditionCache.h.
|
inline |
Access the list of branches which affect this value.
Definition at line 43 of file DomConditionCache.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), and llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find_as().
Referenced by llvm::computeKnownBitsFromContext(), computeKnownFPClassFromContext(), and llvm::InstCombinerImpl::foldICmpWithDominatingICmp().
void DomConditionCache::registerBranch | ( | BranchInst * | BI | ) |
Add a branch condition to the cache.
Definition at line 19 of file DomConditionCache.cpp.
References assert(), findAffectedValues(), llvm::BranchInst::getCondition(), llvm::is_contained(), and llvm::BranchInst::isConditional().
Referenced by llvm::InstCombinerImpl::visitBranchInst().
|
inline |
Remove a value from the cache, e.g. because it will be erased.
Definition at line 40 of file DomConditionCache.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase().