gn build: Merge r372706
[llvm-complete.git] / utils / gn / secondary / llvm / lib / CodeGen / BUILD.gn
blobf70195eb05554b5fb4b11dc34f9c18e036ec7b8d
1 static_library("CodeGen") {
2   output_name = "LLVMCodeGen"
3   public_deps = [
4     # Must be a public_dep because CodeGen's headers include llvm-config.h.
5     "//llvm/include/llvm/Config:llvm-config",
6   ]
7   deps = [
8     "//llvm/lib/Analysis",
9     "//llvm/lib/Bitcode/Reader",
10     "//llvm/lib/Bitcode/Writer",
11     "//llvm/lib/IR",
12     "//llvm/lib/MC",
13     "//llvm/lib/ProfileData",
14     "//llvm/lib/Support",
15     "//llvm/lib/Target",
16     "//llvm/lib/Transforms/Scalar",
17     "//llvm/lib/Transforms/Utils",
18   ]
19   sources = [
20     "AggressiveAntiDepBreaker.cpp",
21     "AllocationOrder.cpp",
22     "Analysis.cpp",
23     "AtomicExpandPass.cpp",
24     "BasicTargetTransformInfo.cpp",
25     "BranchFolding.cpp",
26     "BranchRelaxation.cpp",
27     "BreakFalseDeps.cpp",
28     "BuiltinGCs.cpp",
29     "CFIInstrInserter.cpp",
30     "CalcSpillWeights.cpp",
31     "CallingConvLower.cpp",
32     "CodeGen.cpp",
33     "CodeGenPrepare.cpp",
34     "CriticalAntiDepBreaker.cpp",
35     "DFAPacketizer.cpp",
36     "DeadMachineInstructionElim.cpp",
37     "DetectDeadLanes.cpp",
38     "DwarfEHPrepare.cpp",
39     "EarlyIfConversion.cpp",
40     "EdgeBundles.cpp",
41     "ExecutionDomainFix.cpp",
42     "ExpandMemCmp.cpp",
43     "ExpandPostRAPseudos.cpp",
44     "ExpandReductions.cpp",
45     "FEntryInserter.cpp",
46     "FaultMaps.cpp",
47     "FinalizeISel.cpp",
48     "FuncletLayout.cpp",
49     "GCMetadata.cpp",
50     "GCMetadataPrinter.cpp",
51     "GCRootLowering.cpp",
52     "GCStrategy.cpp",
53     "GlobalMerge.cpp",
54     "HardwareLoops.cpp",
55     "IfConversion.cpp",
56     "ImplicitNullChecks.cpp",
57     "IndirectBrExpandPass.cpp",
58     "InlineSpiller.cpp",
59     "InterferenceCache.cpp",
60     "InterleavedAccessPass.cpp",
61     "InterleavedLoadCombinePass.cpp",
62     "IntrinsicLowering.cpp",
63     "LLVMTargetMachine.cpp",
64     "LatencyPriorityQueue.cpp",
65     "LazyMachineBlockFrequencyInfo.cpp",
66     "LexicalScopes.cpp",
67     "LiveDebugValues.cpp",
68     "LiveDebugVariables.cpp",
69     "LiveInterval.cpp",
70     "LiveIntervalUnion.cpp",
71     "LiveIntervals.cpp",
72     "LivePhysRegs.cpp",
73     "LiveRangeCalc.cpp",
74     "LiveRangeEdit.cpp",
75     "LiveRangeShrink.cpp",
76     "LiveRegMatrix.cpp",
77     "LiveRegUnits.cpp",
78     "LiveStacks.cpp",
79     "LiveVariables.cpp",
80     "LocalStackSlotAllocation.cpp",
81     "LoopTraversal.cpp",
82     "LowLevelType.cpp",
83     "LowerEmuTLS.cpp",
84     "MIRCanonicalizerPass.cpp",
85     "MIRNamerPass.cpp",
86     "MIRPrinter.cpp",
87     "MIRPrintingPass.cpp",
88     "MIRVRegNamerUtils.cpp",
89     "MachineBasicBlock.cpp",
90     "MachineBlockFrequencyInfo.cpp",
91     "MachineBlockPlacement.cpp",
92     "MachineBranchProbabilityInfo.cpp",
93     "MachineCSE.cpp",
94     "MachineCombiner.cpp",
95     "MachineCopyPropagation.cpp",
96     "MachineDominanceFrontier.cpp",
97     "MachineDominators.cpp",
98     "MachineFrameInfo.cpp",
99     "MachineFunction.cpp",
100     "MachineFunctionPass.cpp",
101     "MachineFunctionPrinterPass.cpp",
102     "MachineInstr.cpp",
103     "MachineInstrBundle.cpp",
104     "MachineLICM.cpp",
105     "MachineLoopInfo.cpp",
106     "MachineModuleInfo.cpp",
107     "MachineModuleInfoImpls.cpp",
108     "MachineOperand.cpp",
109     "MachineOptimizationRemarkEmitter.cpp",
110     "MachineOutliner.cpp",
111     "MachinePipeliner.cpp",
112     "MachinePostDominators.cpp",
113     "MachineRegionInfo.cpp",
114     "MachineRegisterInfo.cpp",
115     "MachineSSAUpdater.cpp",
116     "MachineScheduler.cpp",
117     "MachineSink.cpp",
118     "MachineTraceMetrics.cpp",
119     "MachineVerifier.cpp",
120     "MacroFusion.cpp",
121     "ModuloSchedule.cpp",
122     "OptimizePHIs.cpp",
123     "PHIElimination.cpp",
124     "PHIEliminationUtils.cpp",
125     "ParallelCG.cpp",
126     "PatchableFunction.cpp",
127     "PeepholeOptimizer.cpp",
128     "PostRAHazardRecognizer.cpp",
129     "PostRASchedulerList.cpp",
130     "PreISelIntrinsicLowering.cpp",
131     "ProcessImplicitDefs.cpp",
132     "PrologEpilogInserter.cpp",
133     "PseudoSourceValue.cpp",
134     "ReachingDefAnalysis.cpp",
135     "RegAllocBase.cpp",
136     "RegAllocBasic.cpp",
137     "RegAllocFast.cpp",
138     "RegAllocGreedy.cpp",
139     "RegAllocPBQP.cpp",
140     "RegUsageInfoCollector.cpp",
141     "RegUsageInfoPropagate.cpp",
142     "RegisterClassInfo.cpp",
143     "RegisterCoalescer.cpp",
144     "RegisterPressure.cpp",
145     "RegisterScavenging.cpp",
146     "RegisterUsageInfo.cpp",
147     "RenameIndependentSubregs.cpp",
148     "ResetMachineFunctionPass.cpp",
149     "SafeStack.cpp",
150     "SafeStackColoring.cpp",
151     "SafeStackLayout.cpp",
152     "ScalarizeMaskedMemIntrin.cpp",
153     "ScheduleDAG.cpp",
154     "ScheduleDAGInstrs.cpp",
155     "ScheduleDAGPrinter.cpp",
156     "ScoreboardHazardRecognizer.cpp",
157     "ShadowStackGCLowering.cpp",
158     "ShrinkWrap.cpp",
159     "SjLjEHPrepare.cpp",
160     "SlotIndexes.cpp",
161     "SpillPlacement.cpp",
162     "SplitKit.cpp",
163     "StackColoring.cpp",
164     "StackMapLivenessAnalysis.cpp",
165     "StackMaps.cpp",
166     "StackProtector.cpp",
167     "StackSlotColoring.cpp",
168     "SwiftErrorValueTracking.cpp",
169     "SwitchLoweringUtils.cpp",
170     "TailDuplication.cpp",
171     "TailDuplicator.cpp",
172     "TargetFrameLoweringImpl.cpp",
173     "TargetInstrInfo.cpp",
174     "TargetLoweringBase.cpp",
175     "TargetLoweringObjectFileImpl.cpp",
176     "TargetOptionsImpl.cpp",
177     "TargetPassConfig.cpp",
178     "TargetRegisterInfo.cpp",
179     "TargetSchedule.cpp",
180     "TargetSubtargetInfo.cpp",
181     "TwoAddressInstructionPass.cpp",
182     "UnreachableBlockElim.cpp",
183     "ValueTypes.cpp",
184     "VirtRegMap.cpp",
185     "WasmEHPrepare.cpp",
186     "WinEHPrepare.cpp",
187     "XRayInstrumentation.cpp",
188   ]