14#ifndef LLVM_IR_OPTBISECT_H
15#define LLVM_IR_OPTBISECT_H
70 bool isEnabled()
const override {
return BisectLimit != Disabled; }
79 static constexpr int Disabled = std::numeric_limits<int>::max();
82 int BisectLimit = Disabled;
83 mutable int LastBisectNum = 0;
110 bool isEnabled()
const override {
return !DisabledPasses.empty(); }
StringSet - A set-like wrapper for the StringMap.
static const char PassName[]
This class implements a mechanism to disable passes and individual optimizations at compile time base...
void setLimit(int Limit)
Set the new optimization limit and reset the counter.
bool isEnabled() const override
isEnabled() should return true before calling shouldRunPass().
virtual ~OptBisect()=default
OptBisect()=default
Default constructor.
This class implements a mechanism to disable passes and individual optimizations at compile time base...
bool isEnabled() const override
isEnabled() should return true before calling shouldRunPass().
Extensions to this class implement mechanisms to disable passes and individual optimizations at compi...
virtual bool isEnabled() const
isEnabled() should return true before calling shouldRunPass().
virtual bool shouldRunPass(StringRef PassName, StringRef IRDescription) const
IRDescription is a textual description of the IR unit the pass is running over.
virtual ~OptPassGate()=default
Pass interface - Implemented by all 'passes'.
StringRef - Represent a constant reference to a string, i.e.
StringSet - A wrapper for StringMap that provides set-like functionality.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI OptPassGate & getGlobalPassGate()
Singleton instance of the OptPassGate class, so multiple pass managers don't need to coordinate their...