LLVM  4.0.0
Public Member Functions | Friends | List of all members
llvm::PreservedAnalyses::PreservedAnalysisChecker Class Reference

A checker object that makes it easy to query for whether an analysis or some set covering it is preserved. More...

#include <PassManager.h>

Public Member Functions

bool preserved ()
 Returns true if the checker's analysis was not abandoned and either. More...
 
template<typename AnalysisSetT >
bool preservedSet ()
 Returns true if the checker's analysis was not abandoned and either. More...
 

Friends

class PreservedAnalyses
 

Detailed Description

A checker object that makes it easy to query for whether an analysis or some set covering it is preserved.

Definition at line 213 of file PassManager.h.

Member Function Documentation

bool llvm::PreservedAnalyses::PreservedAnalysisChecker::preserved ( )
inline

Returns true if the checker's analysis was not abandoned and either.

  • the analysis is explicitly preserved or
  • all analyses are preserved.

Definition at line 230 of file PassManager.h.

References llvm::SmallPtrSetImpl< PtrType >::count().

template<typename AnalysisSetT >
bool llvm::PreservedAnalyses::PreservedAnalysisChecker::preservedSet ( )
inline

Returns true if the checker's analysis was not abandoned and either.

  • AnalysisSetT is explicitly preserved or
  • all analyses are preserved.

Definition at line 238 of file PassManager.h.

References llvm::SmallPtrSetImpl< PtrType >::count().

Friends And Related Function Documentation

friend class PreservedAnalyses
friend

Definition at line 214 of file PassManager.h.


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