LLVM 20.0.0git
|
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) |
ArrayRef< BasicBlock * > | get (BasicBlock *BB) |
void | clear () |
clear - Remove all information. | |
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 27 of file PredIteratorCache.h.
|
inline |
clear - Remove all information.
Definition at line 49 of file PredIteratorCache.h.
References llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::clear().
Referenced by llvm::MemoryDependenceResults::invalidateCachedPredecessors().
|
inline |
Definition at line 36 of file PredIteratorCache.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::Data, llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::predecessors(), and llvm::SmallVectorBase< Size_T >::size().
Referenced by ComputeLiveInBlocks(), formLCSSAForInstructionsImpl(), llvm::MemoryDependenceResults::getNonLocalCallDependency(), llvm::SSAUpdaterBulk::RewriteAllUses(), and size().
|
inline |
Definition at line 35 of file PredIteratorCache.h.
References get().
Referenced by formLCSSAForInstructionsImpl().