LLVM 22.0.0git
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:
[legend]

Public Member Functions

virtual ~OptPassGate ()=default
virtual bool shouldRunPass (StringRef PassName, StringRef IRDescription) const
 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 26 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 ( StringRef PassName,
StringRef IRDescription ) const
inlinevirtual

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

Reimplemented in llvm::OptBisect, and llvm::OptDisable.

Definition at line 32 of file OptBisect.h.

References PassName.

Referenced by llvm::LoopPass::skipLoop(), and llvm::RegionPass::skipRegion().


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