LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::PredIteratorCache Class Reference

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

Detailed Description

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.

Member Function Documentation

◆ clear()

void llvm::PredIteratorCache::clear ( )
inline

◆ get()

ArrayRef<BasicBlock *> llvm::PredIteratorCache::get ( BasicBlock BB)
inline

◆ size()

size_t llvm::PredIteratorCache::size ( BasicBlock BB) const
inline

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