[InstCombine] Remove insertRangeTest code that handles the equality case.
[llvm-complete.git] / lib / CodeGen / CodeGen.cpp
blobc37ed57781d448ddd1833646087c1f94087138e5
1 //===-- CodeGen.cpp -------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the common initialization routines for the
10 // CodeGen library.
12 //===----------------------------------------------------------------------===//
14 #include "llvm-c/Initialization.h"
15 #include "llvm/InitializePasses.h"
16 #include "llvm/PassRegistry.h"
18 using namespace llvm;
20 /// initializeCodeGen - Initialize all passes linked into the CodeGen library.
21 void llvm::initializeCodeGen(PassRegistry &Registry) {
22 initializeAtomicExpandPass(Registry);
23 initializeBranchFolderPassPass(Registry);
24 initializeBranchRelaxationPass(Registry);
25 initializeCFIInstrInserterPass(Registry);
26 initializeCodeGenPreparePass(Registry);
27 initializeDeadMachineInstructionElimPass(Registry);
28 initializeDetectDeadLanesPass(Registry);
29 initializeDwarfEHPreparePass(Registry);
30 initializeEarlyIfConverterPass(Registry);
31 initializeEarlyMachineLICMPass(Registry);
32 initializeEarlyTailDuplicatePass(Registry);
33 initializeExpandMemCmpPassPass(Registry);
34 initializeExpandPostRAPass(Registry);
35 initializeFEntryInserterPass(Registry);
36 initializeFinalizeISelPass(Registry);
37 initializeFinalizeMachineBundlesPass(Registry);
38 initializeFuncletLayoutPass(Registry);
39 initializeGCMachineCodeAnalysisPass(Registry);
40 initializeGCModuleInfoPass(Registry);
41 initializeHardwareLoopsPass(Registry);
42 initializeIfConverterPass(Registry);
43 initializeImplicitNullChecksPass(Registry);
44 initializeIndirectBrExpandPassPass(Registry);
45 initializeInterleavedLoadCombinePass(Registry);
46 initializeInterleavedAccessPass(Registry);
47 initializeLiveDebugValuesPass(Registry);
48 initializeLiveDebugVariablesPass(Registry);
49 initializeLiveIntervalsPass(Registry);
50 initializeLiveRangeShrinkPass(Registry);
51 initializeLiveStacksPass(Registry);
52 initializeLiveVariablesPass(Registry);
53 initializeLocalStackSlotPassPass(Registry);
54 initializeLowerIntrinsicsPass(Registry);
55 initializeMIRCanonicalizerPass(Registry);
56 initializeMachineBlockFrequencyInfoPass(Registry);
57 initializeMachineBlockPlacementPass(Registry);
58 initializeMachineBlockPlacementStatsPass(Registry);
59 initializeMachineCSEPass(Registry);
60 initializeMachineCombinerPass(Registry);
61 initializeMachineCopyPropagationPass(Registry);
62 initializeMachineDominatorTreePass(Registry);
63 initializeMachineFunctionPrinterPassPass(Registry);
64 initializeMachineLICMPass(Registry);
65 initializeMachineLoopInfoPass(Registry);
66 initializeMachineModuleInfoPass(Registry);
67 initializeMachineOptimizationRemarkEmitterPassPass(Registry);
68 initializeMachineOutlinerPass(Registry);
69 initializeMachinePipelinerPass(Registry);
70 initializeMachinePostDominatorTreePass(Registry);
71 initializeMachineRegionInfoPassPass(Registry);
72 initializeMachineSchedulerPass(Registry);
73 initializeMachineSinkingPass(Registry);
74 initializeMachineVerifierPassPass(Registry);
75 initializeOptimizePHIsPass(Registry);
76 initializePEIPass(Registry);
77 initializePHIEliminationPass(Registry);
78 initializePatchableFunctionPass(Registry);
79 initializePeepholeOptimizerPass(Registry);
80 initializePostMachineSchedulerPass(Registry);
81 initializePostRAHazardRecognizerPass(Registry);
82 initializePostRAMachineSinkingPass(Registry);
83 initializePostRASchedulerPass(Registry);
84 initializePreISelIntrinsicLoweringLegacyPassPass(Registry);
85 initializeProcessImplicitDefsPass(Registry);
86 initializeRABasicPass(Registry);
87 initializeRAGreedyPass(Registry);
88 initializeRegAllocFastPass(Registry);
89 initializeRegUsageInfoCollectorPass(Registry);
90 initializeRegUsageInfoPropagationPass(Registry);
91 initializeRegisterCoalescerPass(Registry);
92 initializeRenameIndependentSubregsPass(Registry);
93 initializeSafeStackLegacyPassPass(Registry);
94 initializeScalarizeMaskedMemIntrinPass(Registry);
95 initializeShrinkWrapPass(Registry);
96 initializeSlotIndexesPass(Registry);
97 initializeStackColoringPass(Registry);
98 initializeStackMapLivenessPass(Registry);
99 initializeStackProtectorPass(Registry);
100 initializeStackSlotColoringPass(Registry);
101 initializeTailDuplicatePass(Registry);
102 initializeTargetPassConfigPass(Registry);
103 initializeTwoAddressInstructionPassPass(Registry);
104 initializeUnpackMachineBundlesPass(Registry);
105 initializeUnreachableBlockElimLegacyPassPass(Registry);
106 initializeUnreachableMachineBlockElimPass(Registry);
107 initializeVirtRegMapPass(Registry);
108 initializeVirtRegRewriterPass(Registry);
109 initializeWasmEHPreparePass(Registry);
110 initializeWinEHPreparePass(Registry);
111 initializeXRayInstrumentationPass(Registry);
114 void LLVMInitializeCodeGen(LLVMPassRegistryRef R) {
115 initializeCodeGen(*unwrap(R));