LLVM 20.0.0git
|
#include "llvm/Analysis/DOTGraphTraitsPass.h"
Public Member Functions | |
DOTGraphTraitsViewer (StringRef GraphName) | |
virtual bool | processFunction (Function &F, const typename AnalysisT::Result &Result) |
Return true if this function should be processed. | |
PreservedAnalyses | run (Function &F, FunctionAnalysisManager &FAM) |
Public Member Functions inherited from llvm::PassInfoMixin< DerivedT > | |
void | printPipeline (raw_ostream &OS, function_ref< StringRef(StringRef)> MapClassName2PassName) |
Protected Member Functions | |
~DOTGraphTraitsViewer () | |
Avoid compiler warning "has virtual functions but non-virtual destructor
[-Wnon-virtual-dtor]" in derived classes. | |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::PassInfoMixin< DerivedT > | |
static StringRef | name () |
Gets the name of the pass we are mixed into. | |
Definition at line 46 of file DOTGraphTraitsPass.h.
|
inline |
Definition at line 49 of file DOTGraphTraitsPass.h.
|
inlineprotected |
Avoid compiler warning "has virtual functions but non-virtual destructor [-Wnon-virtual-dtor]" in derived classes.
DOTGraphTraitsViewer is also used as a mixin for avoiding repeated implementation of viewer passes, ie there should be no runtime-polymorphisms/downcasting involving this class and hence no virtual destructor needed. Making this dtor protected stops accidental invocation when the derived class destructor should have been called. Those derived classes sould be marked final to avoid the warning.
Definition at line 83 of file DOTGraphTraitsPass.h.
|
inlinevirtual |
Return true if this function should be processed.
An implementation of this class my override this function to indicate that only certain functions should be viewed.
Result | The current analysis result for this function. |
Definition at line 57 of file DOTGraphTraitsPass.h.
Referenced by llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::run().
|
inline |
Definition at line 62 of file DOTGraphTraitsPass.h.
References llvm::PreservedAnalyses::all(), F, FAM, llvm::DOTGraphTraitsViewer< AnalysisT, IsSimple, GraphT, AnalysisGraphTraitsT >::processFunction(), and llvm::viewGraphForFunction().