llvm.org GIT mirror llvm / 4a3f6c8
Make several variable declarations static. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50696 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
17 changed file(s) with 39 addition(s) and 37 deletion(s). Raw diff Collapse all Expand all
2121 using namespace llvm;
2222
2323 namespace {
24 cl::opt
24 static cl::opt
2525 PrintAll("count-aa-print-all-queries", cl::ReallyHidden);
26 cl::opt
26 static cl::opt
2727 PrintAllFailures("count-aa-print-all-failed-queries", cl::ReallyHidden);
2828
2929 class VISIBILITY_HIDDEN AliasAnalysisCounter
3434 using namespace llvm;
3535
3636 namespace {
37 cl::opt PrintAll("print-all-alias-modref-info", cl::ReallyHidden);
38
39 cl::opt PrintNoAlias("print-no-aliases", cl::ReallyHidden);
40 cl::opt PrintMayAlias("print-may-aliases", cl::ReallyHidden);
41 cl::opt PrintMustAlias("print-must-aliases", cl::ReallyHidden);
42
43 cl::opt PrintNoModRef("print-no-modref", cl::ReallyHidden);
44 cl::opt PrintMod("print-mod", cl::ReallyHidden);
45 cl::opt PrintRef("print-ref", cl::ReallyHidden);
46 cl::opt PrintModRef("print-modref", cl::ReallyHidden);
37 static cl::opt
38 PrintAll("print-all-alias-modref-info", cl::ReallyHidden);
39
40 static cl::opt PrintNoAlias("print-no-aliases", cl::ReallyHidden);
41 static cl::opt PrintMayAlias("print-may-aliases", cl::ReallyHidden);
42 static cl::opt PrintMustAlias("print-must-aliases", cl::ReallyHidden);
43
44 static cl::opt PrintNoModRef("print-no-modref", cl::ReallyHidden);
45 static cl::opt PrintMod("print-mod", cl::ReallyHidden);
46 static cl::opt PrintRef("print-ref", cl::ReallyHidden);
47 static cl::opt PrintModRef("print-modref", cl::ReallyHidden);
4748
4849 class VISIBILITY_HIDDEN AAEval : public FunctionPass {
4950 unsigned NoAlias, MayAlias, MustAlias;
7475 };
7576
7677 char AAEval::ID = 0;
77 RegisterPass
78 static RegisterPass
7879 X("aa-eval", "Exhaustive Alias Analysis Precision Evaluator", false, true);
7980 }
8081
3030 namespace {
3131 // Control the calculation of non-local dependencies by only examining the
3232 // predecessors if the basic block has less than X amount (50 by default).
33 cl::opt
33 static cl::opt
3434 PredLimit("nonlocaldep-threshold", cl::Hidden, cl::init(50),
3535 cl::desc("Control the calculation of non-local"
3636 "dependencies (default = 50)"));
2323 using namespace llvm;
2424
2525 namespace {
26 cl::opt
26 static cl::opt
2727 ProfileInfoFilename("profile-info-file", cl::init("llvmprof.out"),
2828 cl::value_desc("filename"),
2929 cl::desc("Profile file loaded by -profile-loader"));
3939 cl::init(cl::BOU_UNSET), cl::Hidden);
4040 namespace {
4141 // Throttle for huge numbers of predecessors (compile speed problems)
42 cl::opt
42 static cl::opt
4343 TailMergeThreshold("tail-merge-threshold",
4444 cl::desc("Max number of predecessors to consider tail merging"),
4545 cl::init(100), cl::Hidden);
3737
3838 namespace {
3939 // Hidden options for help debugging.
40 cl::opt DisableReMat("disable-rematerialization",
41 cl::init(false), cl::Hidden);
42
43 cl::opt SplitAtBB("split-intervals-at-bb",
44 cl::init(true), cl::Hidden);
45 cl::opt SplitLimit("split-limit",
46 cl::init(-1), cl::Hidden);
40 static cl::opt DisableReMat("disable-rematerialization",
41 cl::init(false), cl::Hidden);
42
43 static cl::opt SplitAtBB("split-intervals-at-bb",
44 cl::init(true), cl::Hidden);
45 static cl::opt SplitLimit("split-limit",
46 cl::init(-1), cl::Hidden);
4747 }
4848
4949 STATISTIC(numIntervals, "Number of original intervals");
3030 ///
3131 //===---------------------------------------------------------------------===//
3232 namespace {
33 static
3334 cl::opt
3435 RegisterPassParser >
3536 RegAlloc("regalloc",
7474 ///
7575 //===---------------------------------------------------------------------===//
7676 namespace {
77 cl::opt
78 RegisterPassParser >
77 static cl::opt
78 RegisterPassParser >
7979 ISHeuristic("pre-RA-sched",
8080 cl::init(&createDefaultScheduler),
8181 cl::desc("Instruction schedulers available (before register"
137137 cl::location(OptimizeForSize),
138138 cl::init(false));
139139
140 cl::opt
140 static cl::opt
141141 EnableRealignStack("realign-stack",
142142 cl::desc("Realign stack if needed"),
143143 cl::location(RealignStack),
144144 cl::init(true));
145145
146 cl::opt
146 static cl::opt
147147 OverrideStackAlignment("stack-alignment",
148148 cl::desc("Override default stack alignment"),
149149 cl::location(StackAlignment),
3030 STATISTIC(NumDeleted, "Number of functions deleted because all callers found");
3131
3232 namespace {
33 cl::opt
33 static cl::opt
3434 InlineLimit("inline-threshold", cl::Hidden, cl::init(200),
3535 cl::desc("Control the amount of inlining to perform (default = 200)"));
3636 }
3131
3232 // APIFile - A file which contains a list of symbols that should not be marked
3333 // external.
34 cl::opt
34 static cl::opt
3535 APIFile("internalize-public-api-file", cl::value_desc("filename"),
3636 cl::desc("A file containing list of symbol names to preserve"));
3737
3838 // APIList - A list of symbols that should not be marked internal.
39 cl::list
39 static cl::list
4040 APIList("internalize-public-api-list", cl::value_desc("list"),
4141 cl::desc("A list of symbol names to preserve"),
4242 cl::CommaSeparated);
148148 namespace {
149149 // BlockFile - A file which contains a list of blocks that should not be
150150 // extracted.
151 cl::opt
151 static cl::opt
152152 BlockFile("extract-blocks-file", cl::value_desc("filename"),
153153 cl::desc("A file containing list of basic blocks to not extract"),
154154 cl::Hidden);
5555 GBV, GBVO, HOSTCC
5656 };
5757
58 cl::opt RandomMethod("profile-randomness",
58 static cl::opt RandomMethod("profile-randomness",
5959 cl::desc("How to randomly choose to profile:"),
6060 cl::values(
6161 clEnumValN(GBV, "global", "global counter"),
5858 STATISTIC(NumPromoted , "Number of memory locations promoted to registers");
5959
6060 namespace {
61 cl::opt
61 static cl::opt
6262 DisablePromotion("disable-licm-promotion", cl::Hidden,
6363 cl::desc("Disable memory promotion in LICM pass"));
6464
4444 STATISTIC(NumUnrolled, "Number of loops unrolled (completely or otherwise)");
4545
4646 namespace {
47 cl::opt
47 static cl::opt
4848 UnrollThreshold
4949 ("unroll-threshold", cl::init(100), cl::Hidden,
5050 cl::desc("The cut-off point for automatic loop unrolling"));
5151
52 cl::opt
52 static cl::opt
5353 UnrollCount
5454 ("unroll-count", cl::init(0), cl::Hidden,
5555 cl::desc("Use this unroll count for all loops, for testing purposes"));
5454 STATISTIC(NumSimplify, "Number of simplifications of unswitched code");
5555
5656 namespace {
57 cl::opt
57 static cl::opt
5858 Threshold("loop-unswitch-threshold", cl::desc("Max loop size to unswitch"),
5959 cl::init(10), cl::Hidden);
6060
2626 using namespace llvm;
2727
2828 namespace {
29 cl::opt
29 static cl::opt
3030 BasicInlineThreshold("inline-threshold", cl::Hidden, cl::init(200),
3131 cl::desc("Control the amount of basic inlining to perform (default = 200)"));
3232 }