14 #ifndef LLVM_IR_OPTBISECT_H 15 #define LLVM_IR_OPTBISECT_H 63 bool isEnabled()
const override {
return BisectEnabled; }
79 bool BisectEnabled =
false;
80 unsigned LastBisectNum = 0;
88 #endif // LLVM_IR_OPTBISECT_H Pass interface - Implemented by all 'passes'.
virtual ~OptPassGate()=default
This class represents lattice values for constants.
Extensions to this class implement mechanisms to disable passes and individual optimizations at compi...
virtual bool shouldRunPass(const Pass *P, StringRef IRDescription)
IRDescription is a textual description of the IR unit the pass is running over.
bool isEnabled() const override
isEnabled() should return true before calling shouldRunPass().
virtual bool isEnabled() const
isEnabled() should return true before calling shouldRunPass().
This class implements a mechanism to disable passes and individual optimizations at compile time base...
virtual ~OptBisect()=default
ManagedStatic< OptBisect > OptBisector
Singleton instance of the OptBisect class, so multiple pass managers don't need to coordinate their u...
OptBisect()
Default constructor, initializes the OptBisect state based on the -opt-bisect-limit command line argu...
static const char PassName[]
print lazy value Lazy Value Info Printer Pass
bool checkPass(const StringRef PassName, const StringRef TargetDesc)
Checks the bisect limit to determine if the specified pass should run.
bool shouldRunPass(const Pass *P, StringRef IRDescription) override
Checks the bisect limit to determine if the specified pass should run.
StringRef - Represent a constant reference to a string, i.e.