| OLD | NEW |
| 1 //===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===// | 1 //===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===// |
| 2 // | 2 // |
| 3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This program is an automated compiler debugger tool. It is used to narrow | 10 // This program is an automated compiler debugger tool. It is used to narrow |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 initializeIPA(Registry); | 129 initializeIPA(Registry); |
| 130 initializeTransformUtils(Registry); | 130 initializeTransformUtils(Registry); |
| 131 initializeInstCombine(Registry); | 131 initializeInstCombine(Registry); |
| 132 initializeInstrumentation(Registry); | 132 initializeInstrumentation(Registry); |
| 133 initializeTarget(Registry); | 133 initializeTarget(Registry); |
| 134 | 134 |
| 135 #ifdef LINK_POLLY_INTO_TOOLS | 135 #ifdef LINK_POLLY_INTO_TOOLS |
| 136 polly::initializePollyPasses(Registry); | 136 polly::initializePollyPasses(Registry); |
| 137 #endif | 137 #endif |
| 138 | 138 |
| 139 // @LOCALMOD-BEGIN |
| 140 initializeAddPNaClExternalDeclsPass(Registry); |
| 141 initializeAllocateDataSegmentPass(Registry); |
| 142 initializeBackendCanonicalizePass(Registry); |
| 143 initializeCanonicalizeMemIntrinsicsPass(Registry); |
| 144 initializeConstantInsertExtractElementIndexPass(Registry); |
| 145 initializeExpandAllocasPass(Registry); |
| 146 initializeExpandArithWithOverflowPass(Registry); |
| 147 initializeExpandByValPass(Registry); |
| 148 initializeExpandConstantExprPass(Registry); |
| 149 initializeExpandCtorsPass(Registry); |
| 150 initializeExpandGetElementPtrPass(Registry); |
| 151 initializeExpandIndirectBrPass(Registry); |
| 152 initializeExpandLargeIntegersPass(Registry); |
| 153 initializeExpandShuffleVectorPass(Registry); |
| 154 initializeExpandSmallArgumentsPass(Registry); |
| 155 initializeExpandStructRegsPass(Registry); |
| 156 initializeExpandTlsConstantExprPass(Registry); |
| 157 initializeExpandTlsPass(Registry); |
| 158 initializeExpandVarArgsPass(Registry); |
| 159 initializeFixVectorLoadStoreAlignmentPass(Registry); |
| 160 initializeFlattenGlobalsPass(Registry); |
| 161 initializeGlobalCleanupPass(Registry); |
| 162 initializeGlobalizeConstantVectorsPass(Registry); |
| 163 initializeInsertDivideCheckPass(Registry); |
| 164 initializePNaClABIVerifyFunctionsPass(Registry); |
| 165 initializePNaClABIVerifyModulePass(Registry); |
| 166 initializePNaClSjLjEHPass(Registry); |
| 167 initializePromoteI1OpsPass(Registry); |
| 168 initializePromoteIntegersPass(Registry); |
| 169 initializeRemoveAsmMemoryPass(Registry); |
| 170 initializeRenameEntryPointPass(Registry); |
| 171 initializeReplacePtrsWithIntsPass(Registry); |
| 172 initializeResolveAliasesPass(Registry); |
| 173 initializeResolvePNaClIntrinsicsPass(Registry); |
| 174 initializeRewriteAtomicsPass(Registry); |
| 175 initializeRewriteLLVMIntrinsicsPass(Registry); |
| 176 initializeRewritePNaClLibraryCallsPass(Registry); |
| 177 initializeSandboxIndirectCallsPass(Registry); |
| 178 initializeSandboxMemoryAccessesPass(Registry); |
| 179 initializeSimplifyAllocasPass(Registry); |
| 180 initializeStripAttributesPass(Registry); |
| 181 initializeStripMetadataPass(Registry); |
| 182 initializeStripModuleFlagsPass(Registry); |
| 183 initializeStripTlsPass(Registry); |
| 184 initializeSubstituteUndefsPass(Registry); |
| 185 // @LOCALMOD-END |
| 186 |
| 139 cl::ParseCommandLineOptions(argc, argv, | 187 cl::ParseCommandLineOptions(argc, argv, |
| 140 "LLVM automatic testcase reducer. See\nhttp://" | 188 "LLVM automatic testcase reducer. See\nhttp://" |
| 141 "llvm.org/cmds/bugpoint.html" | 189 "llvm.org/cmds/bugpoint.html" |
| 142 " for more information.\n"); | 190 " for more information.\n"); |
| 143 #ifndef DEBUG_BUGPOINT | 191 #ifndef DEBUG_BUGPOINT |
| 144 sys::SetInterruptFunction(BugpointInterruptFunction); | 192 sys::SetInterruptFunction(BugpointInterruptFunction); |
| 145 #endif | 193 #endif |
| 146 | 194 |
| 147 LLVMContext& Context = getGlobalContext(); | 195 LLVMContext& Context = getGlobalContext(); |
| 148 // If we have an override, set it and then track the triple we want Modules | 196 // If we have an override, set it and then track the triple we want Modules |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 #endif | 250 #endif |
| 203 | 251 |
| 204 std::string Error; | 252 std::string Error; |
| 205 bool Failure = D.run(Error); | 253 bool Failure = D.run(Error); |
| 206 if (!Error.empty()) { | 254 if (!Error.empty()) { |
| 207 errs() << Error; | 255 errs() << Error; |
| 208 return 1; | 256 return 1; |
| 209 } | 257 } |
| 210 return Failure; | 258 return Failure; |
| 211 } | 259 } |
| OLD | NEW |