LLVM API Documentation
#include <PredIteratorCache.h>
Public Member Functions | |
| BasicBlock ** | GetPreds (BasicBlock *BB) |
| void | clear () |
| clear - Remove all information. | |
Definition at line 27 of file PredIteratorCache.h.
| BasicBlock** llvm::PredIteratorCache::GetPreds | ( | BasicBlock * | BB | ) | [inline] |
GetPreds - Get a cached list for the null-terminated predecessor list of the specified block. This can be used in a loop like this: for (BasicBlock **PI = PredCache->GetPreds(BB); *PI; ++PI) use(*PI); instead of: for (pred_iterator PI = pred_begin(BB), E = pred_end(BB); PI != E; ++PI)
Definition at line 41 of file PredIteratorCache.h.
References llvm::SmallVectorImpl< T >::begin(), llvm::SmallVectorImpl< T >::end(), Entry, llvm::pred_begin(), llvm::pred_end(), llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size().
| void llvm::PredIteratorCache::clear | ( | ) | [inline] |