@@ -174,9 +174,6 @@ static cl::opt<bool>
174
174
cl::desc(" Process functions in a top-down order "
175
175
" defined by the profiled call graph when "
176
176
" -sample-profile-top-down-load is on." ));
177
- cl::opt<bool >
178
- SortProfiledSCC (" sort-profiled-scc-member" , cl::init(true ), cl::Hidden,
179
- cl::desc(" Sort profiled recursion by edge weights." ));
180
177
181
178
static cl::opt<bool > ProfileSizeInline (
182
179
" sample-profile-inline-size" , cl::Hidden, cl::init(false ),
@@ -192,6 +189,11 @@ static cl::opt<bool> DisableSampleLoaderInlining(
192
189
" pass, and merge (or scale) profiles (as configured by "
193
190
" --sample-profile-merge-inlinee)." ));
194
191
192
+ namespace llvm {
193
+ cl::opt<bool >
194
+ SortProfiledSCC (" sort-profiled-scc-member" , cl::init(true ), cl::Hidden,
195
+ cl::desc (" Sort profiled recursion by edge weights." ));
196
+
195
197
cl::opt<int > ProfileInlineGrowthLimit (
196
198
" sample-profile-inline-growth-limit" , cl::Hidden, cl::init(12 ),
197
199
cl::desc(" The size growth ratio limit for proirity-based sample profile "
@@ -215,6 +217,7 @@ cl::opt<int> SampleHotCallSiteThreshold(
215
217
cl::opt<int > SampleColdCallSiteThreshold (
216
218
" sample-profile-cold-inline-threshold" , cl::Hidden, cl::init(45 ),
217
219
cl::desc(" Threshold for inlining cold callsites" ));
220
+ } // namespace llvm
218
221
219
222
static cl::opt<unsigned > ProfileICPRelativeHotness (
220
223
" sample-profile-icp-relative-hotness" , cl::Hidden, cl::init(25 ),
@@ -308,7 +311,9 @@ static cl::opt<bool> AnnotateSampleProfileInlinePhase(
308
311
cl::desc(" Annotate LTO phase (prelink / postlink), or main (no LTO) for "
309
312
" sample-profile inline pass name." ));
310
313
314
+ namespace llvm {
311
315
extern cl::opt<bool > EnableExtTspBlockPlacement;
316
+ }
312
317
313
318
namespace {
314
319
0 commit comments