Line data Source code
1 : //===-- CodeGen.cpp -------------------------------------------------------===//
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 file implements the common initialization routines for the
11 : // CodeGen library.
12 : //
13 : //===----------------------------------------------------------------------===//
14 :
15 : #include "llvm-c/Initialization.h"
16 : #include "llvm/InitializePasses.h"
17 : #include "llvm/PassRegistry.h"
18 :
19 : using namespace llvm;
20 :
21 : /// initializeCodeGen - Initialize all passes linked into the CodeGen library.
22 53367 : void llvm::initializeCodeGen(PassRegistry &Registry) {
23 53367 : initializeAtomicExpandPass(Registry);
24 53367 : initializeBranchFolderPassPass(Registry);
25 53367 : initializeBranchRelaxationPass(Registry);
26 53367 : initializeCFIInstrInserterPass(Registry);
27 53367 : initializeCodeGenPreparePass(Registry);
28 53367 : initializeDeadMachineInstructionElimPass(Registry);
29 53367 : initializeDetectDeadLanesPass(Registry);
30 53367 : initializeDwarfEHPreparePass(Registry);
31 53367 : initializeEarlyIfConverterPass(Registry);
32 53367 : initializeEarlyMachineLICMPass(Registry);
33 53367 : initializeEarlyTailDuplicatePass(Registry);
34 53367 : initializeExpandISelPseudosPass(Registry);
35 53367 : initializeExpandMemCmpPassPass(Registry);
36 53367 : initializeExpandPostRAPass(Registry);
37 53367 : initializeFEntryInserterPass(Registry);
38 53367 : initializeFinalizeMachineBundlesPass(Registry);
39 53367 : initializeFuncletLayoutPass(Registry);
40 53367 : initializeGCMachineCodeAnalysisPass(Registry);
41 53367 : initializeGCModuleInfoPass(Registry);
42 53367 : initializeIfConverterPass(Registry);
43 53367 : initializeImplicitNullChecksPass(Registry);
44 53367 : initializeIndirectBrExpandPassPass(Registry);
45 53367 : initializeInterleavedAccessPass(Registry);
46 53367 : initializeLiveDebugValuesPass(Registry);
47 53367 : initializeLiveDebugVariablesPass(Registry);
48 53367 : initializeLiveIntervalsPass(Registry);
49 53367 : initializeLiveRangeShrinkPass(Registry);
50 53367 : initializeLiveStacksPass(Registry);
51 53367 : initializeLiveVariablesPass(Registry);
52 53367 : initializeLocalStackSlotPassPass(Registry);
53 53367 : initializeLowerIntrinsicsPass(Registry);
54 53367 : initializeMIRCanonicalizerPass(Registry);
55 53367 : initializeMachineBlockFrequencyInfoPass(Registry);
56 53367 : initializeMachineBlockPlacementPass(Registry);
57 53367 : initializeMachineBlockPlacementStatsPass(Registry);
58 53367 : initializeMachineCSEPass(Registry);
59 53367 : initializeMachineCombinerPass(Registry);
60 53367 : initializeMachineCopyPropagationPass(Registry);
61 53367 : initializeMachineDominatorTreePass(Registry);
62 53367 : initializeMachineFunctionPrinterPassPass(Registry);
63 53367 : initializeMachineLICMPass(Registry);
64 53367 : initializeMachineLoopInfoPass(Registry);
65 53367 : initializeMachineModuleInfoPass(Registry);
66 53367 : initializeMachineOptimizationRemarkEmitterPassPass(Registry);
67 53367 : initializeMachineOutlinerPass(Registry);
68 53367 : initializeMachinePipelinerPass(Registry);
69 53367 : initializeMachinePostDominatorTreePass(Registry);
70 53367 : initializeMachineRegionInfoPassPass(Registry);
71 53367 : initializeMachineSchedulerPass(Registry);
72 53367 : initializeMachineSinkingPass(Registry);
73 53367 : initializeMachineVerifierPassPass(Registry);
74 53367 : initializeOptimizePHIsPass(Registry);
75 53367 : initializePEIPass(Registry);
76 53367 : initializePHIEliminationPass(Registry);
77 53367 : initializePatchableFunctionPass(Registry);
78 53367 : initializePeepholeOptimizerPass(Registry);
79 53367 : initializePostMachineSchedulerPass(Registry);
80 53367 : initializePostRAHazardRecognizerPass(Registry);
81 53367 : initializePostRAMachineSinkingPass(Registry);
82 53367 : initializePostRASchedulerPass(Registry);
83 53367 : initializePreISelIntrinsicLoweringLegacyPassPass(Registry);
84 53367 : initializeProcessImplicitDefsPass(Registry);
85 53367 : initializeRABasicPass(Registry);
86 53367 : initializeRAGreedyPass(Registry);
87 53367 : initializeRegAllocFastPass(Registry);
88 53367 : initializeRegUsageInfoCollectorPass(Registry);
89 53367 : initializeRegUsageInfoPropagationPass(Registry);
90 53367 : initializeRegisterCoalescerPass(Registry);
91 53367 : initializeRenameIndependentSubregsPass(Registry);
92 53367 : initializeSafeStackLegacyPassPass(Registry);
93 53367 : initializeScalarizeMaskedMemIntrinPass(Registry);
94 53367 : initializeShrinkWrapPass(Registry);
95 53367 : initializeSlotIndexesPass(Registry);
96 53367 : initializeStackColoringPass(Registry);
97 53367 : initializeStackMapLivenessPass(Registry);
98 53367 : initializeStackProtectorPass(Registry);
99 53367 : initializeStackSlotColoringPass(Registry);
100 53367 : initializeTailDuplicatePass(Registry);
101 53367 : initializeTargetPassConfigPass(Registry);
102 53367 : initializeTwoAddressInstructionPassPass(Registry);
103 53367 : initializeUnpackMachineBundlesPass(Registry);
104 53367 : initializeUnreachableBlockElimLegacyPassPass(Registry);
105 53367 : initializeUnreachableMachineBlockElimPass(Registry);
106 53367 : initializeVirtRegMapPass(Registry);
107 53367 : initializeVirtRegRewriterPass(Registry);
108 53367 : initializeWasmEHPreparePass(Registry);
109 53367 : initializeWinEHPreparePass(Registry);
110 53367 : initializeXRayInstrumentationPass(Registry);
111 53367 : }
112 :
113 0 : void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {
114 0 : initializeCodeGen(*unwrap(R));
115 0 : }
|