@@ -174,9 +174,6 @@ static cl::opt<bool>
174174 cl::desc(" Process functions in a top-down order "
175175 " defined by the profiled call graph when "
176176 " -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." ));
180177
181178static cl::opt<bool > ProfileSizeInline (
182179 " sample-profile-inline-size" , cl::Hidden, cl::init(false ),
@@ -192,6 +189,11 @@ static cl::opt<bool> DisableSampleLoaderInlining(
192189 " pass, and merge (or scale) profiles (as configured by "
193190 " --sample-profile-merge-inlinee)." ));
194191
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+
195197cl::opt<int > ProfileInlineGrowthLimit (
196198 " sample-profile-inline-growth-limit" , cl::Hidden, cl::init(12 ),
197199 cl::desc(" The size growth ratio limit for proirity-based sample profile "
@@ -215,6 +217,7 @@ cl::opt<int> SampleHotCallSiteThreshold(
215217cl::opt<int > SampleColdCallSiteThreshold (
216218 " sample-profile-cold-inline-threshold" , cl::Hidden, cl::init(45 ),
217219 cl::desc(" Threshold for inlining cold callsites" ));
220+ } // namespace llvm
218221
219222static cl::opt<unsigned > ProfileICPRelativeHotness (
220223 " sample-profile-icp-relative-hotness" , cl::Hidden, cl::init(25 ),
@@ -308,7 +311,9 @@ static cl::opt<bool> AnnotateSampleProfileInlinePhase(
308311 cl::desc(" Annotate LTO phase (prelink / postlink), or main (no LTO) for "
309312 " sample-profile inline pass name." ));
310313
314+ namespace llvm {
311315extern cl::opt<bool > EnableExtTspBlockPlacement;
316+ }
312317
313318namespace {
314319
0 commit comments