LLVM 20.0.0git
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 StringRef PassName, StringRef IRDescription)
 IRDescription is a textual description of the IR unit the pass is running over.
 
virtual bool isEnabled () const
 isEnabled() should return true before calling shouldRunPass().
 

Detailed Description

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

Definition at line 24 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 StringRef  PassName,
StringRef  IRDescription 
)
inlinevirtual

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

Reimplemented in llvm::OptBisect.

Definition at line 30 of file OptBisect.h.

Referenced by llvm::OptPassGateInstrumentation::shouldRun(), llvm::LoopPass::skipLoop(), llvm::RegionPass::skipRegion(), and llvm::CallGraphSCCPass::skipSCC().


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