[NFC] Add LazyValueInfo::clear method

This method just calls LazyValueInfoImpl::clear
This commit is contained in:
Dmitry Makogon 2022-03-15 17:10:41 +07:00
parent 126b37a713
commit 361034ba78
2 changed files with 8 additions and 0 deletions

View File

@ -114,6 +114,9 @@ public:
/// Inform the analysis cache that we have erased a block.
void eraseBlock(BasicBlock *BB);
/// Complete flush all previously computed values
void clear(const Module *M);
/// Print the \LazyValueInfo Analysis.
/// We pass in the DTree that is required for identifying which basic blocks
/// we can solve/print for, in the LVIPrinter.

View File

@ -1885,6 +1885,11 @@ void LazyValueInfo::eraseBlock(BasicBlock *BB) {
}
}
void LazyValueInfo::clear(const Module *M) {
if (PImpl) {
getImpl(PImpl, AC, M).clear();
}
}
void LazyValueInfo::printLVI(Function &F, DominatorTree &DTree, raw_ostream &OS) {
if (PImpl) {