@@ -53,7 +53,14 @@ class OptBisect : public OptPassGate {
53
53
54
54
// / Checks the bisect limit to determine if the specified pass should run.
55
55
// /
56
- // / This forwards to checkPass().
56
+ // / The method prints the name of the pass, its assigned bisect number, and
57
+ // / whether or not the pass will be executed. It returns true if the pass
58
+ // / should run, i.e. if the bisect limit is set to -1 or has not yet been
59
+ // / exceeded.
60
+ // /
61
+ // / Most passes should not call this routine directly. Instead, it is called
62
+ // / through helper routines provided by the base classes of the pass. For
63
+ // / instance, function passes should call FunctionPass::skipFunction().
57
64
bool shouldRunPass (const StringRef PassName,
58
65
StringRef IRDescription) override ;
59
66
@@ -67,19 +74,6 @@ class OptBisect : public OptPassGate {
67
74
LastBisectNum = 0 ;
68
75
}
69
76
70
- // / Checks the bisect limit to determine if the specified pass should run.
71
- // /
72
- // / If the bisect limit is set to -1, the function prints a message describing
73
- // / the pass and the bisect number assigned to it and return true. Otherwise,
74
- // / the function prints a message with the bisect number assigned to the
75
- // / pass and indicating whether or not the pass will be run and return true if
76
- // / the bisect limit has not yet been exceeded or false if it has.
77
- // /
78
- // / Most passes should not call this routine directly. Instead, they are
79
- // / called through helper routines provided by the pass base classes. For
80
- // / instance, function passes should call FunctionPass::skipFunction().
81
- bool checkPass (const StringRef PassName, const StringRef TargetDesc);
82
-
83
77
static const int Disabled = std::numeric_limits<int >::max();
84
78
85
79
private:
0 commit comments