LLVM  9.0.0svn
Public Member Functions | List of all members
llvm::OptPassGate Class Reference

Extensions to this class implement mechanisms to disable passes and individual optimizations at compile time. More...

#include "llvm/IR/OptBisect.h"

Inheritance diagram for llvm::OptPassGate:
Inheritance graph
[legend]

Public Member Functions

virtual ~OptPassGate ()=default
 
virtual bool shouldRunPass (const Pass *P, StringRef IRDescription)
 IRDescription is a textual description of the IR unit the pass is running over. More...
 
virtual bool isEnabled () const
 isEnabled should return true before calling shouldRunPass More...
 

Detailed Description

Extensions to this class implement mechanisms to disable passes and individual optimizations at compile time.

Definition at line 25 of file OptBisect.h.

Constructor & Destructor Documentation

◆ ~OptPassGate()

virtual llvm::OptPassGate::~OptPassGate ( )
virtualdefault

Member Function Documentation

◆ isEnabled()

virtual bool llvm::OptPassGate::isEnabled ( ) const
inlinevirtual

◆ shouldRunPass()

virtual bool llvm::OptPassGate::shouldRunPass ( const Pass P,
StringRef  IRDescription 
)
inlinevirtual

IRDescription is a textual description of the IR unit the pass is running over.

Reimplemented in llvm::OptBisect.

Definition at line 31 of file OptBisect.h.

Referenced by llvm::BasicBlockPass::skipBasicBlock(), llvm::FunctionPass::skipFunction(), llvm::LoopPass::skipLoop(), llvm::ModulePass::skipModule(), llvm::RegionPass::skipRegion(), and llvm::CallGraphSCCPass::skipSCC().


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