LLVM
8.0.1
|
PredIteratorCache - This class is an extremely trivial cache for predecessor iterator queries. More...
#include "llvm/IR/PredIteratorCache.h"
Public Member Functions | |
size_t | size (BasicBlock *BB) const |
ArrayRef< BasicBlock * > | get (BasicBlock *BB) |
void | clear () |
clear - Remove all information. More... | |
PredIteratorCache - This class is an extremely trivial cache for predecessor iterator queries.
This is useful for code that repeatedly wants the predecessor list for the same blocks.
Definition at line 28 of file PredIteratorCache.h.
|
inline |
clear - Remove all information.
Definition at line 72 of file PredIteratorCache.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::clear(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear(), and llvm::BumpPtrAllocatorImpl< AllocatorT, SlabSize, SizeThreshold >::Reset().
Referenced by llvm::MemoryDependenceResults::invalidateCachedPredecessors().
|
inline |
Definition at line 67 of file PredIteratorCache.h.
References llvm::makeArrayRef().
Referenced by ComputeLiveInBlocks(), llvm::formLCSSAForInstructions(), llvm::MemoryDependenceResults::getNonLocalCallDependency(), llvm::SSAUpdaterBulk::HasValueForBlock(), isSafeToExecuteUnconditionally(), llvm::SSAUpdaterBulk::RewriteAllUses(), and SortNonLocalDepInfoCache().
|
inline |
Definition at line 66 of file PredIteratorCache.h.
Referenced by llvm::formLCSSAForInstructions(), and isSafeToExecuteUnconditionally().