@@ -33,12 +33,12 @@ namespace llvm {
33
33
// / counts as capturing it or not. The boolean StoreCaptures specified
34
34
// / whether storing the value (or part of it) into memory anywhere
35
35
// / automatically counts as capturing it or not.
36
- // / MaxUsesToExplore specifies how many uses should the analysis explore for
37
- // / one value before giving up due too "too many uses".
36
+ // / MaxUsesToExplore specifies how many uses the analysis should explore for
37
+ // / one value before giving up due too "too many uses". If MaxUsesToExplore
38
+ // / is zero, a default value is assumed.
38
39
bool PointerMayBeCaptured (const Value *V, bool ReturnCaptures,
39
40
bool StoreCaptures,
40
- unsigned MaxUsesToExplore =
41
- getDefaultMaxUsesToExploreForCaptureTracking ());
41
+ unsigned MaxUsesToExplore = 0 );
42
42
43
43
// / PointerMayBeCapturedBefore - Return true if this pointer value may be
44
44
// / captured by the enclosing function (which is required to exist). If a
@@ -50,13 +50,13 @@ namespace llvm {
50
50
// / (or part of it) into memory anywhere automatically counts as capturing it
51
51
// / or not. Captures by the provided instruction are considered if the
52
52
// / final parameter is true.
53
- // / MaxUsesToExplore specifies how many uses should the analysis explore for
54
- // / one value before giving up due too "too many uses".
53
+ // / MaxUsesToExplore specifies how many uses the analysis should explore for
54
+ // / one value before giving up due too "too many uses". If MaxUsesToExplore
55
+ // / is zero, a default value is assumed.
55
56
bool PointerMayBeCapturedBefore (
56
57
const Value *V, bool ReturnCaptures, bool StoreCaptures,
57
58
const Instruction *I, const DominatorTree *DT, bool IncludeI = false ,
58
- unsigned MaxUsesToExplore =
59
- getDefaultMaxUsesToExploreForCaptureTracking ());
59
+ unsigned MaxUsesToExplore = 0 );
60
60
61
61
// / This callback is used in conjunction with PointerMayBeCaptured. In
62
62
// / addition to the interface here, you'll need to provide your own getters
@@ -89,11 +89,11 @@ namespace llvm {
89
89
// / PointerMayBeCaptured - Visit the value and the values derived from it and
90
90
// / find values which appear to be capturing the pointer value. This feeds
91
91
// / results into and is controlled by the CaptureTracker object.
92
- // / MaxUsesToExplore specifies how many uses should the analysis explore for
93
- // / one value before giving up due too "too many uses".
92
+ // / MaxUsesToExplore specifies how many uses the analysis should explore for
93
+ // / one value before giving up due too "too many uses". If MaxUsesToExplore
94
+ // / is zero, a default value is assumed.
94
95
void PointerMayBeCaptured (const Value *V, CaptureTracker *Tracker,
95
- unsigned MaxUsesToExplore =
96
- getDefaultMaxUsesToExploreForCaptureTracking ());
96
+ unsigned MaxUsesToExplore = 0 );
97
97
} // end namespace llvm
98
98
99
99
#endif
0 commit comments