Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: include/llvm/CodeGen/LinkAllCodegenComponents.h

Issue 939073008: Rebased PNaCl localmods in LLVM to 223109 (Closed)
Patch Set: undo localmod Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/llvm/CodeGen/JumpInstrTables.h ('k') | include/llvm/CodeGen/MachineConstantPool.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- llvm/Codegen/LinkAllCodegenComponents.h ------------------*- C++ -*-===// 1 //===- llvm/Codegen/LinkAllCodegenComponents.h ------------------*- C++ -*-===//
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 header file pulls in all codegen related passes for tools like lli and 10 // This header file pulls in all codegen related passes for tools like lli and
(...skipping 16 matching lines...) Expand all
27 // We must reference the passes in such a way that compilers will not 27 // We must reference the passes in such a way that compilers will not
28 // delete it all as dead code, even with whole program optimization, 28 // delete it all as dead code, even with whole program optimization,
29 // yet is effectively a NO-OP. As the compiler isn't smart enough 29 // yet is effectively a NO-OP. As the compiler isn't smart enough
30 // to know that getenv() never returns -1, this will do the job. 30 // to know that getenv() never returns -1, this will do the job.
31 if (std::getenv("bar") != (char*) -1) 31 if (std::getenv("bar") != (char*) -1)
32 return; 32 return;
33 33
34 (void) llvm::createFastRegisterAllocator(); 34 (void) llvm::createFastRegisterAllocator();
35 (void) llvm::createBasicRegisterAllocator(); 35 (void) llvm::createBasicRegisterAllocator();
36 (void) llvm::createGreedyRegisterAllocator(); 36 (void) llvm::createGreedyRegisterAllocator();
37 #if !defined(__native_client__)
38 // Not needed by sandboxed translator.
37 (void) llvm::createDefaultPBQPRegisterAllocator(); 39 (void) llvm::createDefaultPBQPRegisterAllocator();
40 #endif
38 41
39 llvm::linkOcamlGC(); 42 llvm::linkOcamlGC();
40 llvm::linkErlangGC(); 43 llvm::linkErlangGC();
41 llvm::linkShadowStackGC(); 44 llvm::linkShadowStackGC();
42 45
43 (void) llvm::createBURRListDAGScheduler(nullptr, 46 (void) llvm::createBURRListDAGScheduler(nullptr,
44 llvm::CodeGenOpt::Default); 47 llvm::CodeGenOpt::Default);
45 (void) llvm::createSourceListDAGScheduler(nullptr, 48 (void) llvm::createSourceListDAGScheduler(nullptr,
46 llvm::CodeGenOpt::Default); 49 llvm::CodeGenOpt::Default);
47 (void) llvm::createHybridListDAGScheduler(nullptr, 50 (void) llvm::createHybridListDAGScheduler(nullptr,
48 llvm::CodeGenOpt::Default); 51 llvm::CodeGenOpt::Default);
49 (void) llvm::createFastDAGScheduler(nullptr, llvm::CodeGenOpt::Default); 52 (void) llvm::createFastDAGScheduler(nullptr, llvm::CodeGenOpt::Default);
50 (void) llvm::createDefaultScheduler(nullptr, llvm::CodeGenOpt::Default); 53 (void) llvm::createDefaultScheduler(nullptr, llvm::CodeGenOpt::Default);
51 (void) llvm::createVLIWDAGScheduler(nullptr, llvm::CodeGenOpt::Default); 54 (void) llvm::createVLIWDAGScheduler(nullptr, llvm::CodeGenOpt::Default);
52 55
53 } 56 }
54 } ForceCodegenLinking; // Force link by creating a global definition. 57 } ForceCodegenLinking; // Force link by creating a global definition.
55 } 58 }
56 59
57 #endif 60 #endif
OLDNEW
« no previous file with comments | « include/llvm/CodeGen/JumpInstrTables.h ('k') | include/llvm/CodeGen/MachineConstantPool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698