llvm.org GIT mirror llvm / 7871309
Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199305 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
1 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
3333
3434 using namespace llvm;
3535
36 static cl::opt
36 static cl::opt
3737 FindBugs("find-bugs", cl::desc("Run many different optimization sequences "
3838 "on program to find bugs"), cl::init(false));
3939
6262 PassList(cl::desc("Passes available:"), cl::ZeroOrMore);
6363
6464 static cl::opt
65 StandardCompileOpts("std-compile-opts",
65 StandardCompileOpts("std-compile-opts",
6666 cl::desc("Include the standard compile time optimizations"));
6767
6868 static cl::opt
69 StandardLinkOpts("std-link-opts",
69 StandardLinkOpts("std-link-opts",
7070 cl::desc("Include the standard link time optimizations"));
7171
7272 static cl::opt
9999 BugDriver &D;
100100 public:
101101 AddToDriver(BugDriver &_D) : FunctionPassManager(0), D(_D) {}
102
102
103103 virtual void add(Pass *P) {
104104 const void *ID = P->getPassID();
105105 const PassInfo *PI = PassRegistry::getPassRegistry()->getPassInfo(ID);
114114 llvm::PrettyStackTraceProgram X(argc, argv);
115115 llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
116116 #endif
117
117
118118 // Initialize passes
119119 PassRegistry &Registry = *PassRegistry::getPassRegistry();
120120 initializeCore(Registry);
128128 initializeInstCombine(Registry);
129129 initializeInstrumentation(Registry);
130130 initializeTarget(Registry);
131
131
132132 cl::ParseCommandLineOptions(argc, argv,
133133 "LLVM automatic testcase reducer. See\nhttp://"
134134 "llvm.org/cmds/bugpoint.html"
157157 BugDriver D(argv[0], FindBugs, TimeoutValue, MemoryLimit,
158158 UseValgrind, Context);
159159 if (D.addSources(InputFilenames)) return 1;
160
160
161161 AddToDriver PM(D);
162162 if (StandardCompileOpts) {
163163 PassManagerBuilder Builder;
165165 Builder.Inliner = createFunctionInliningPass();
166166 Builder.populateModulePassManager(PM);
167167 }
168
168
169169 if (StandardLinkOpts) {
170170 PassManagerBuilder Builder;
171171 Builder.populateLTOPassManager(PM, /*Internalize=*/true,