LLVM 22.0.0git
llvm::DomConditionCache Class Reference

#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.

Detailed Description

Definition at line 29 of file DomConditionCache.h.

Member Function Documentation

◆ conditionsFor()

ArrayRef< BranchInst * > llvm::DomConditionCache::conditionsFor ( const Value * V) const
inline

Access the list of branches which affect this value.

Definition at line 43 of file DomConditionCache.h.

References llvm::ArrayRef().

Referenced by llvm::computeKnownBitsFromContext(), computeKnownFPClassFromContext(), isKnownNonEqualFromContext(), and llvm::isKnownToBeAPowerOfTwo().

◆ registerBranch()

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

◆ removeValue()

void llvm::DomConditionCache::removeValue ( Value * V)
inline

Remove a value from the cache, e.g. because it will be erased.

Definition at line 40 of file DomConditionCache.h.


The documentation for this class was generated from the following files: