14#ifndef LLVM_IR_OPTBISECT_H
15#define LLVM_IR_OPTBISECT_H
77 static const int Disabled = std::numeric_limits<int>::max();
81 int LastBisectNum = 0;
static const char PassName[]
This class implements a mechanism to disable passes and individual optimizations at compile time base...
bool shouldRunPass(const StringRef PassName, StringRef IRDescription) override
Checks the bisect limit to determine if the specified pass should run.
static const int Disabled
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.
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(const StringRef PassName, StringRef IRDescription)
IRDescription is a textual description of the IR unit the pass is running over.
virtual ~OptPassGate()=default
StringRef - Represent a constant reference to a string, i.e.
This is an optimization pass for GlobalISel generic memory operations.
OptPassGate & getGlobalPassGate()
Singleton instance of the OptBisect class, so multiple pass managers don't need to coordinate their u...