29 cl::desc(
"Maximum optimization to perform"));
38 errs() <<
"BISECT: " << Status <<
"running pass " 39 <<
"(" << PassNum <<
") " << Name <<
" on " << TargetDesc <<
"\n";
48 bool OptBisect::checkPass(
const StringRef PassName,
52 int CurBisectNum = ++LastBisectNum;
Pass interface - Implemented by all 'passes'.
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
This class represents lattice values for constants.
Extensions to this class implement mechanisms to disable passes and individual optimizations at compi...
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
static void printPassMessage(const StringRef &Name, int PassNum, StringRef TargetDesc, bool Running)
initializer< Ty > init(const Ty &Val)
OptBisect()
Default constructor, initializes the OptBisect state based on the -opt-bisect-limit command line argu...
Align max(MaybeAlign Lhs, Align Rhs)
static cl::opt< int > OptBisectLimit("opt-bisect-limit", cl::Hidden, cl::init(std::numeric_limits< int >::max()), cl::Optional, cl::desc("Maximum optimization to perform"))
This file declares the interface for bisecting optimizations.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
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.