Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 1 | //===- LTO.cpp ------------------------------------------------------------===// |
| 2 | // |
| 3 | // The LLVM Linker |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "LTO.h" |
| 11 | #include "Config.h" |
Rafael Espindola | 156f4ee | 2016-04-28 19:30:41 +0000 | [diff] [blame] | 12 | #include "Driver.h" |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 13 | #include "Error.h" |
| 14 | #include "InputFiles.h" |
| 15 | #include "Symbols.h" |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 16 | #include "llvm/Analysis/AliasAnalysis.h" |
| 17 | #include "llvm/Analysis/CGSCCPassManager.h" |
| 18 | #include "llvm/Analysis/LoopPassManager.h" |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 19 | #include "llvm/Analysis/TargetLibraryInfo.h" |
| 20 | #include "llvm/Analysis/TargetTransformInfo.h" |
| 21 | #include "llvm/Bitcode/ReaderWriter.h" |
Davide Italiano | 8eca282 | 2016-04-01 00:35:29 +0000 | [diff] [blame] | 22 | #include "llvm/CodeGen/CommandFlags.h" |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 23 | #include "llvm/CodeGen/ParallelCG.h" |
Davide Italiano | 334fce9 | 2016-05-11 01:07:22 +0000 | [diff] [blame] | 24 | #include "llvm/IR/AutoUpgrade.h" |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 25 | #include "llvm/IR/LegacyPassManager.h" |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 26 | #include "llvm/IR/PassManager.h" |
Davide Italiano | 5020d2a | 2016-05-15 19:43:02 +0000 | [diff] [blame] | 27 | #include "llvm/IR/Verifier.h" |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 28 | #include "llvm/Linker/IRMover.h" |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 29 | #include "llvm/Passes/PassBuilder.h" |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 30 | #include "llvm/Support/StringSaver.h" |
| 31 | #include "llvm/Support/TargetRegistry.h" |
| 32 | #include "llvm/Target/TargetMachine.h" |
| 33 | #include "llvm/Transforms/IPO.h" |
| 34 | #include "llvm/Transforms/IPO/PassManagerBuilder.h" |
Rafael Espindola | 9fdd071 | 2016-04-27 23:54:04 +0000 | [diff] [blame] | 35 | #include "llvm/Transforms/Utils/ModuleUtils.h" |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 36 | |
| 37 | using namespace llvm; |
| 38 | using namespace llvm::object; |
| 39 | using namespace llvm::ELF; |
| 40 | |
| 41 | using namespace lld; |
| 42 | using namespace lld::elf; |
| 43 | |
| 44 | // This is for use when debugging LTO. |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 45 | static void saveLtoObjectFile(StringRef Buffer, unsigned I, bool Many) { |
| 46 | SmallString<128> Filename = Config->OutputFile; |
| 47 | if (Many) |
| 48 | Filename += utostr(I); |
| 49 | Filename += ".lto.o"; |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 50 | std::error_code EC; |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 51 | raw_fd_ostream OS(Filename, EC, sys::fs::OpenFlags::F_None); |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 52 | check(EC); |
| 53 | OS << Buffer; |
| 54 | } |
| 55 | |
| 56 | // This is for use when debugging LTO. |
| 57 | static void saveBCFile(Module &M, StringRef Suffix) { |
| 58 | std::error_code EC; |
| 59 | raw_fd_ostream OS(Config->OutputFile.str() + Suffix.str(), EC, |
| 60 | sys::fs::OpenFlags::F_None); |
| 61 | check(EC); |
| 62 | WriteBitcodeToFile(&M, OS, /* ShouldPreserveUseListOrder */ true); |
| 63 | } |
| 64 | |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 65 | static void runNewCustomLtoPasses(Module &M, TargetMachine &TM) { |
| 66 | PassBuilder PB(&TM); |
| 67 | |
| 68 | AAManager AA; |
Davide Italiano | df24d5b | 2016-06-02 22:58:11 +0000 | [diff] [blame] | 69 | |
| 70 | // Parse a custom AA pipeline if asked to. |
| 71 | if (!PB.parseAAPipeline(AA, Config->LtoAAPipeline)) { |
| 72 | error("Unable to parse AA pipeline description: " + Config->LtoAAPipeline); |
| 73 | return; |
| 74 | } |
| 75 | |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 76 | LoopAnalysisManager LAM; |
| 77 | FunctionAnalysisManager FAM; |
| 78 | CGSCCAnalysisManager CGAM; |
| 79 | ModuleAnalysisManager MAM; |
| 80 | |
| 81 | // Register the AA manager first so that our version is the one used. |
| 82 | FAM.registerPass([&] { return std::move(AA); }); |
| 83 | |
| 84 | // Register all the basic analyses with the managers. |
| 85 | PB.registerModuleAnalyses(MAM); |
| 86 | PB.registerCGSCCAnalyses(CGAM); |
| 87 | PB.registerFunctionAnalyses(FAM); |
| 88 | PB.registerLoopAnalyses(LAM); |
| 89 | PB.crossRegisterProxies(LAM, FAM, CGAM, MAM); |
| 90 | |
| 91 | ModulePassManager MPM; |
| 92 | if (!Config->DisableVerify) |
| 93 | MPM.addPass(VerifierPass()); |
| 94 | |
| 95 | // Now, add all the passes we've been requested to. |
| 96 | if (!PB.parsePassPipeline(MPM, Config->LtoNewPmPasses)) { |
| 97 | error("unable to parse pass pipeline description: " + |
| 98 | Config->LtoNewPmPasses); |
| 99 | return; |
| 100 | } |
| 101 | |
| 102 | if (!Config->DisableVerify) |
| 103 | MPM.addPass(VerifierPass()); |
| 104 | MPM.run(M, MAM); |
| 105 | } |
| 106 | |
| 107 | static void runOldLtoPasses(Module &M, TargetMachine &TM) { |
| 108 | // Note that the gold plugin has a similar piece of code, so |
| 109 | // it is probably better to move this code to a common place. |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 110 | legacy::PassManager LtoPasses; |
| 111 | LtoPasses.add(createTargetTransformInfoWrapperPass(TM.getTargetIRAnalysis())); |
| 112 | PassManagerBuilder PMB; |
| 113 | PMB.LibraryInfo = new TargetLibraryInfoImpl(Triple(TM.getTargetTriple())); |
| 114 | PMB.Inliner = createFunctionInliningPass(); |
Davide Italiano | 842fa53 | 2016-04-03 03:39:09 +0000 | [diff] [blame] | 115 | PMB.VerifyInput = PMB.VerifyOutput = !Config->DisableVerify; |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 116 | PMB.LoopVectorize = true; |
| 117 | PMB.SLPVectorize = true; |
Peter Collingbourne | ed22f9b | 2016-03-31 21:00:27 +0000 | [diff] [blame] | 118 | PMB.OptLevel = Config->LtoO; |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 119 | PMB.populateLTOPassManager(LtoPasses); |
| 120 | LtoPasses.run(M); |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 121 | } |
| 122 | |
| 123 | static void runLTOPasses(Module &M, TargetMachine &TM) { |
| 124 | if (!Config->LtoNewPmPasses.empty()) { |
| 125 | // The user explicitly asked for a set of passes to be run. |
| 126 | // This needs the new PM to work as there's no clean way to |
| 127 | // pass a set of passes to run in the legacy PM. |
| 128 | runNewCustomLtoPasses(M, TM); |
| 129 | if (HasError) |
| 130 | return; |
| 131 | } else { |
| 132 | // Run the 'default' set of LTO passes. This code still uses |
| 133 | // the legacy PM as the new one is not the default. |
| 134 | runOldLtoPasses(M, TM); |
| 135 | } |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 136 | |
| 137 | if (Config->SaveTemps) |
| 138 | saveBCFile(M, ".lto.opt.bc"); |
| 139 | } |
| 140 | |
Rafael Espindola | ae605c1 | 2016-04-21 20:35:25 +0000 | [diff] [blame] | 141 | static bool shouldInternalize(const SmallPtrSet<GlobalValue *, 8> &Used, |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 142 | Symbol *S, GlobalValue *GV) { |
Davide Italiano | 3935690 | 2016-06-11 14:21:38 +0000 | [diff] [blame^] | 143 | if (S->IsUsedInRegularObj || Used.count(GV)) |
Rafael Espindola | ae605c1 | 2016-04-21 20:35:25 +0000 | [diff] [blame] | 144 | return false; |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 145 | return !S->includeInDynsym(); |
Rafael Espindola | ae605c1 | 2016-04-21 20:35:25 +0000 | [diff] [blame] | 146 | } |
| 147 | |
Rui Ueyama | 412c802 | 2016-04-22 21:16:18 +0000 | [diff] [blame] | 148 | BitcodeCompiler::BitcodeCompiler() |
Rafael Espindola | 156f4ee | 2016-04-28 19:30:41 +0000 | [diff] [blame] | 149 | : Combined(new llvm::Module("ld-temp.o", Driver->Context)), |
| 150 | Mover(*Combined) {} |
Rui Ueyama | 412c802 | 2016-04-22 21:16:18 +0000 | [diff] [blame] | 151 | |
Peter Collingbourne | 0ef3874 | 2016-05-12 19:46:14 +0000 | [diff] [blame] | 152 | static void undefine(Symbol *S) { |
Davide Italiano | 64ebf32 | 2016-06-01 16:38:13 +0000 | [diff] [blame] | 153 | replaceBody<Undefined>(S, S->body()->getName(), STV_DEFAULT, S->body()->Type); |
Peter Collingbourne | 0ef3874 | 2016-05-12 19:46:14 +0000 | [diff] [blame] | 154 | } |
| 155 | |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 156 | void BitcodeCompiler::add(BitcodeFile &F) { |
Rafael Espindola | 156f4ee | 2016-04-28 19:30:41 +0000 | [diff] [blame] | 157 | std::unique_ptr<IRObjectFile> Obj = std::move(F.Obj); |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 158 | std::vector<GlobalValue *> Keep; |
| 159 | unsigned BodyIndex = 0; |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 160 | ArrayRef<Symbol *> Syms = F.getSymbols(); |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 161 | |
Davide Italiano | 86f2bd5 | 2016-03-29 21:46:35 +0000 | [diff] [blame] | 162 | Module &M = Obj->getModule(); |
Davide Italiano | 493b683 | 2016-04-16 01:33:33 +0000 | [diff] [blame] | 163 | if (M.getDataLayoutStr().empty()) |
| 164 | fatal("invalid bitcode file: " + F.getName() + " has no datalayout"); |
Davide Italiano | 49fe4ed | 2016-03-29 23:57:22 +0000 | [diff] [blame] | 165 | |
Davide Italiano | 334fce9 | 2016-05-11 01:07:22 +0000 | [diff] [blame] | 166 | // Discard non-compatible debug infos if necessary. |
| 167 | M.materializeMetadata(); |
| 168 | UpgradeDebugInfo(M); |
| 169 | |
Davide Italiano | 49fe4ed | 2016-03-29 23:57:22 +0000 | [diff] [blame] | 170 | // If a symbol appears in @llvm.used, the linker is required |
| 171 | // to treat the symbol as there is a reference to the symbol |
| 172 | // that it cannot see. Therefore, we can't internalize. |
Davide Italiano | 86f2bd5 | 2016-03-29 21:46:35 +0000 | [diff] [blame] | 173 | SmallPtrSet<GlobalValue *, 8> Used; |
| 174 | collectUsedGlobalVariables(M, Used, /* CompilerUsed */ false); |
| 175 | |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 176 | for (const BasicSymbolRef &Sym : Obj->symbols()) { |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 177 | uint32_t Flags = Sym.getFlags(); |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 178 | GlobalValue *GV = Obj->getSymbolGV(Sym.getRawDataRefImpl()); |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 179 | if (GV && GV->hasAppendingLinkage()) |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 180 | Keep.push_back(GV); |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 181 | if (BitcodeFile::shouldSkip(Flags)) |
| 182 | continue; |
| 183 | Symbol *S = Syms[BodyIndex++]; |
| 184 | if (Flags & BasicSymbolRef::SF_Undefined) |
| 185 | continue; |
Peter Collingbourne | 4f95270 | 2016-05-01 04:55:03 +0000 | [diff] [blame] | 186 | auto *B = dyn_cast<DefinedBitcode>(S->body()); |
| 187 | if (!B || B->File != &F) |
Davide Italiano | 1460e9f | 2016-03-26 18:33:09 +0000 | [diff] [blame] | 188 | continue; |
Peter Collingbourne | 3ad1c1e | 2016-05-05 17:13:49 +0000 | [diff] [blame] | 189 | |
| 190 | // We collect the set of symbols we want to internalize here |
| 191 | // and change the linkage after the IRMover executed, i.e. after |
| 192 | // we imported the symbols and satisfied undefined references |
| 193 | // to it. We can't just change linkage here because otherwise |
| 194 | // the IRMover will just rename the symbol. |
| 195 | if (GV && shouldInternalize(Used, S, GV)) |
| 196 | InternalizedSyms.insert(GV->getName()); |
| 197 | |
| 198 | // At this point we know that either the combined LTO object will provide a |
| 199 | // definition of a symbol, or we will internalize it. In either case, we |
| 200 | // need to undefine the symbol. In the former case, the real definition |
| 201 | // needs to be able to replace the original definition without conflicting. |
| 202 | // In the latter case, we need to allow the combined LTO object to provide a |
| 203 | // definition with the same name, for example when doing parallel codegen. |
Peter Collingbourne | 0ef3874 | 2016-05-12 19:46:14 +0000 | [diff] [blame] | 204 | undefine(S); |
Peter Collingbourne | 3ad1c1e | 2016-05-05 17:13:49 +0000 | [diff] [blame] | 205 | |
| 206 | if (!GV) |
| 207 | // Module asm symbol. |
| 208 | continue; |
| 209 | |
Davide Italiano | 1460e9f | 2016-03-26 18:33:09 +0000 | [diff] [blame] | 210 | switch (GV->getLinkage()) { |
| 211 | default: |
| 212 | break; |
| 213 | case llvm::GlobalValue::LinkOnceAnyLinkage: |
| 214 | GV->setLinkage(GlobalValue::WeakAnyLinkage); |
| 215 | break; |
| 216 | case llvm::GlobalValue::LinkOnceODRLinkage: |
| 217 | GV->setLinkage(GlobalValue::WeakODRLinkage); |
| 218 | break; |
Davide Italiano | d4c2a03 | 2016-03-22 22:31:34 +0000 | [diff] [blame] | 219 | } |
Davide Italiano | 828ac541 | 2016-03-28 15:44:21 +0000 | [diff] [blame] | 220 | |
Davide Italiano | 1460e9f | 2016-03-26 18:33:09 +0000 | [diff] [blame] | 221 | Keep.push_back(GV); |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 222 | } |
| 223 | |
Peter Collingbourne | 5079f3b | 2016-05-27 05:21:45 +0000 | [diff] [blame] | 224 | if (Error E = Mover.move(Obj->takeModule(), Keep, |
| 225 | [](GlobalValue &, IRMover::ValueAdder) {})) { |
| 226 | handleAllErrors(std::move(E), [&](const llvm::ErrorInfoBase &EIB) { |
| 227 | fatal("failed to link module " + F.getName() + ": " + EIB.message()); |
| 228 | }); |
| 229 | } |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 230 | } |
| 231 | |
Davide Italiano | 828ac541 | 2016-03-28 15:44:21 +0000 | [diff] [blame] | 232 | static void internalize(GlobalValue &GV) { |
| 233 | assert(!GV.hasLocalLinkage() && |
Davide Italiano | 47c33f0 | 2016-03-29 21:48:25 +0000 | [diff] [blame] | 234 | "Trying to internalize a symbol with local linkage!"); |
Davide Italiano | 828ac541 | 2016-03-28 15:44:21 +0000 | [diff] [blame] | 235 | GV.setLinkage(GlobalValue::InternalLinkage); |
| 236 | } |
| 237 | |
Rafael Espindola | abf6c65 | 2016-04-17 23:20:08 +0000 | [diff] [blame] | 238 | std::vector<std::unique_ptr<InputFile>> BitcodeCompiler::runSplitCodegen( |
| 239 | const std::function<std::unique_ptr<TargetMachine>()> &TMFactory) { |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 240 | unsigned NumThreads = Config->LtoJobs; |
| 241 | OwningData.resize(NumThreads); |
| 242 | |
| 243 | std::list<raw_svector_ostream> OSs; |
| 244 | std::vector<raw_pwrite_stream *> OSPtrs; |
| 245 | for (SmallString<0> &Obj : OwningData) { |
| 246 | OSs.emplace_back(Obj); |
| 247 | OSPtrs.push_back(&OSs.back()); |
| 248 | } |
| 249 | |
Rafael Espindola | abf6c65 | 2016-04-17 23:20:08 +0000 | [diff] [blame] | 250 | splitCodeGen(std::move(Combined), OSPtrs, {}, TMFactory); |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 251 | |
| 252 | std::vector<std::unique_ptr<InputFile>> ObjFiles; |
| 253 | for (SmallString<0> &Obj : OwningData) |
| 254 | ObjFiles.push_back(createObjectFile( |
| 255 | MemoryBufferRef(Obj, "LLD-INTERNAL-combined-lto-object"))); |
| 256 | |
| 257 | if (Config->SaveTemps) |
| 258 | for (unsigned I = 0; I < NumThreads; ++I) |
| 259 | saveLtoObjectFile(OwningData[I], I, NumThreads > 1); |
| 260 | |
| 261 | return ObjFiles; |
| 262 | } |
| 263 | |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 264 | // Merge all the bitcode files we have seen, codegen the result |
| 265 | // and return the resulting ObjectFile. |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 266 | std::vector<std::unique_ptr<InputFile>> BitcodeCompiler::compile() { |
| 267 | TheTriple = Combined->getTargetTriple(); |
Davide Italiano | 828ac541 | 2016-03-28 15:44:21 +0000 | [diff] [blame] | 268 | for (const auto &Name : InternalizedSyms) { |
Davide Italiano | 15c41b2 | 2016-04-11 22:39:51 +0000 | [diff] [blame] | 269 | GlobalValue *GV = Combined->getNamedValue(Name.first()); |
Davide Italiano | 828ac541 | 2016-03-28 15:44:21 +0000 | [diff] [blame] | 270 | assert(GV); |
| 271 | internalize(*GV); |
| 272 | } |
| 273 | |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 274 | if (Config->SaveTemps) |
Davide Italiano | 15c41b2 | 2016-04-11 22:39:51 +0000 | [diff] [blame] | 275 | saveBCFile(*Combined, ".lto.bc"); |
Rui Ueyama | 2599248 | 2016-03-22 20:52:10 +0000 | [diff] [blame] | 276 | |
Rui Ueyama | 961f2ff | 2016-03-23 21:19:27 +0000 | [diff] [blame] | 277 | std::string Msg; |
Davide Italiano | bc17663 | 2016-04-15 22:38:10 +0000 | [diff] [blame] | 278 | const Target *T = TargetRegistry::lookupTarget(TheTriple, Msg); |
Rui Ueyama | 961f2ff | 2016-03-23 21:19:27 +0000 | [diff] [blame] | 279 | if (!T) |
| 280 | fatal("target not found: " + Msg); |
Davide Italiano | 8eca282 | 2016-04-01 00:35:29 +0000 | [diff] [blame] | 281 | TargetOptions Options = InitTargetOptionsFromCodeGenFlags(); |
Rui Ueyama | 961f2ff | 2016-03-23 21:19:27 +0000 | [diff] [blame] | 282 | Reloc::Model R = Config->Pic ? Reloc::PIC_ : Reloc::Static; |
Rafael Espindola | abf6c65 | 2016-04-17 23:20:08 +0000 | [diff] [blame] | 283 | |
| 284 | auto CreateTargetMachine = [&]() { |
| 285 | return std::unique_ptr<TargetMachine>( |
| 286 | T->createTargetMachine(TheTriple, "", "", Options, R)); |
| 287 | }; |
| 288 | |
| 289 | std::unique_ptr<TargetMachine> TM = CreateTargetMachine(); |
| 290 | runLTOPasses(*Combined, *TM); |
Davide Italiano | d26c4a1 | 2016-05-15 19:29:38 +0000 | [diff] [blame] | 291 | if (HasError) |
| 292 | return {}; |
Rafael Espindola | abf6c65 | 2016-04-17 23:20:08 +0000 | [diff] [blame] | 293 | |
| 294 | return runSplitCodegen(CreateTargetMachine); |
Rui Ueyama | 961f2ff | 2016-03-23 21:19:27 +0000 | [diff] [blame] | 295 | } |