@@ -187,15 +187,15 @@ static cl::opt<bool>
187
187
cl::desc (" Use selective instrumentation" ),
188
188
cl::Hidden, cl::init(false ));
189
189
190
- static cl::opt<int > HotPercentileCutoff (
190
+ static cl::opt<int > ClHotPercentileCutoff (
191
191
" hwasan-percentile-cutoff-hot" , cl::init(0 ),
192
192
cl::desc(" Alternative hot percentile cuttoff."
193
193
" By default `-profile-summary-cutoff-hot` is used." ));
194
194
195
195
static cl::opt<float >
196
- RandomSkipRate (" hwasan-random-skip-rate" , cl::init(0 ),
197
- cl::desc(" Probability value in the range [0.0, 1.0] "
198
- " to skip instrumentation of a function." ));
196
+ ClRandomSkipRate (" hwasan-random-skip-rate" , cl::init(0 ),
197
+ cl::desc(" Probability value in the range [0.0, 1.0] "
198
+ " to skip instrumentation of a function." ));
199
199
200
200
STATISTIC (NumTotalFuncs, " Number of total funcs" );
201
201
STATISTIC (NumInstrumentedFuncs, " Number of instrumented funcs" );
@@ -301,7 +301,7 @@ class HWAddressSanitizer {
301
301
? ClEnableKhwasan
302
302
: CompileKernel;
303
303
this ->Rng =
304
- RandomSkipRate .getNumOccurrences () ? M.createRNG (" hwasan" ) : nullptr ;
304
+ ClRandomSkipRate .getNumOccurrences () ? M.createRNG (" hwasan" ) : nullptr ;
305
305
306
306
initializeModule ();
307
307
}
@@ -1537,8 +1537,8 @@ void HWAddressSanitizer::sanitizeFunction(Function &F,
1537
1537
1538
1538
NumTotalFuncs++;
1539
1539
if (CSelectiveInstrumentation) {
1540
- if (RandomSkipRate .getNumOccurrences ()) {
1541
- std::bernoulli_distribution D (RandomSkipRate );
1540
+ if (ClRandomSkipRate .getNumOccurrences ()) {
1541
+ std::bernoulli_distribution D (ClRandomSkipRate );
1542
1542
if (D (*Rng))
1543
1543
return ;
1544
1544
} else {
@@ -1547,10 +1547,10 @@ void HWAddressSanitizer::sanitizeFunction(Function &F,
1547
1547
MAMProxy.getCachedResult <ProfileSummaryAnalysis>(*F.getParent ());
1548
1548
if (PSI && PSI->hasProfileSummary ()) {
1549
1549
auto &BFI = FAM.getResult <BlockFrequencyAnalysis>(F);
1550
- if ((HotPercentileCutoff .getNumOccurrences () &&
1551
- HotPercentileCutoff >= 0 )
1550
+ if ((ClHotPercentileCutoff .getNumOccurrences () &&
1551
+ ClHotPercentileCutoff >= 0 )
1552
1552
? PSI->isFunctionHotInCallGraphNthPercentile (
1553
- HotPercentileCutoff , &F, BFI)
1553
+ ClHotPercentileCutoff , &F, BFI)
1554
1554
: PSI->isFunctionHotInCallGraph (&F, BFI))
1555
1555
return ;
1556
1556
} else {
0 commit comments