LLVM  6.0.0svn
LinkAllCodegenComponents.h
Go to the documentation of this file.
1 //===- llvm/Codegen/LinkAllCodegenComponents.h ------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This header file pulls in all codegen related passes for tools like lli and
11 // llc that need this functionality.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #ifndef LLVM_CODEGEN_LINKALLCODEGENCOMPONENTS_H
16 #define LLVM_CODEGEN_LINKALLCODEGENCOMPONENTS_H
17 
18 #include "llvm/CodeGen/GCs.h"
19 #include "llvm/CodeGen/Passes.h"
22 #include <cstdlib>
23 
24 namespace {
25  struct ForceCodegenLinking {
26  ForceCodegenLinking() {
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,
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.
31  if (std::getenv("bar") != (char*) -1)
32  return;
33 
38 
44 
45  (void) llvm::createBURRListDAGScheduler(nullptr,
54 
55  }
56  } ForceCodegenLinking; // Force link by creating a global definition.
57 }
58 
59 #endif
void linkOcamlGC()
Creates an ocaml-compatible garbage collector.
Definition: BuiltinGCs.cpp:141
void linkErlangGC()
Creates an erlang-compatible garbage collector.
Definition: BuiltinGCs.cpp:140
void linkCoreCLRGC()
FIXME: Collector instances are not useful on their own.
Definition: BuiltinGCs.cpp:144
ScheduleDAGSDNodes * createHybridListDAGScheduler(SelectionDAGISel *IS, CodeGenOpt::Level)
createHybridListDAGScheduler - This creates a bottom up register pressure aware list scheduler that m...
ScheduleDAGSDNodes * createBURRListDAGScheduler(SelectionDAGISel *IS, CodeGenOpt::Level OptLevel)
createBURRListDAGScheduler - This creates a bottom up register usage reduction list scheduler...
ScheduleDAGSDNodes * createVLIWDAGScheduler(SelectionDAGISel *IS, CodeGenOpt::Level OptLevel)
createVLIWDAGScheduler - Scheduler for VLIW targets.
ScheduleDAGSDNodes * createDefaultScheduler(SelectionDAGISel *IS, CodeGenOpt::Level OptLevel)
createDefaultScheduler - This creates an instruction scheduler appropriate for the target...
FunctionPass * createDefaultPBQPRegisterAllocator()
PBQPRegisterAllocation Pass - This pass implements the Partitioned Boolean Quadratic Prograaming (PBQ...
void linkShadowStackGC()
Creates a shadow stack garbage collector.
Definition: BuiltinGCs.cpp:142
ScheduleDAGSDNodes * createSourceListDAGScheduler(SelectionDAGISel *IS, CodeGenOpt::Level OptLevel)
createBURRListDAGScheduler - This creates a bottom up list scheduler that schedules nodes in source c...
FunctionPass * createBasicRegisterAllocator()
BasicRegisterAllocation Pass - This pass implements a degenerate global register allocator using the ...
FunctionPass * createGreedyRegisterAllocator()
Greedy register allocation pass - This pass implements a global register allocator for optimized buil...
FunctionPass * createFastRegisterAllocator()
FastRegisterAllocation Pass - This pass register allocates as fast as possible.
ScheduleDAGSDNodes * createFastDAGScheduler(SelectionDAGISel *IS, CodeGenOpt::Level OptLevel)
createFastDAGScheduler - This creates a "fast" scheduler.
void linkStatepointExampleGC()
Definition: BuiltinGCs.cpp:143