xref: /freebsd/lib/clang/libllvm/Makefile (revision 36b606ae6aa4b24061096ba18582e0a08ccd5dba)
1.include <bsd.init.mk>
2.include "../llvm.pre.mk"
3
4LIB=		llvm
5INTERNALLIB=
6
7CFLAGS+=	-I${.OBJDIR}
8CFLAGS+=	-I${SRCTOP}/sys/contrib/zstd/lib
9
10.if ${MK_LLVM_TARGET_AARCH64} == "no" && ${MK_LLVM_TARGET_ARM} == "no" && \
11    ${MK_LLVM_TARGET_BPF} == "no" && ${MK_LLVM_TARGET_MIPS} == "no" && \
12    ${MK_LLVM_TARGET_POWERPC} == "no" && ${MK_LLVM_TARGET_RISCV} == "no" && \
13    ${MK_LLVM_TARGET_X86} == "no"
14.error Please enable at least one of: MK_LLVM_TARGET_AARCH64,\
15 MK_LLVM_TARGET_ARM, MK_LLVM_TARGET_BPF, MK_LLVM_TARGET_MIPS, \
16 MK_LLVM_TARGET_POWERPC, MK_LLVM_TARGET_RISCV, or MK_LLVM_TARGET_X86
17.endif
18
19.for arch in AArch64 ARM BPF Mips PowerPC RISCV X86
20. if ${MK_LLVM_TARGET_${arch:tu}} != "no"
21CFLAGS+=	-I${LLVM_SRCS}/lib/Target/${arch}
22. endif
23.endfor
24
25CFLAGS+=	-I${LLVM_SRCS}/lib/ObjCopy
26
27TARGET_ARCH?=	${MACHINE_ARCH}
28
29.if ${TARGET_ARCH} != "amd64"
30CFLAGS+=	-DBLAKE3_NO_AVX512 -DBLAKE3_NO_AVX2 -DBLAKE3_NO_SSE41 \
31		-DBLAKE3_NO_SSE2
32.endif
33.if ${TARGET_ARCH} != "arm64"
34CFLAGS+=	-DBLAKE3_USE_NEON=0
35.endif
36
37SRCDIR=		llvm/lib
38
39# Explanation of different SRCS variants below:
40# SRCS_MIN:	always required, even for bootstrap
41# SRCS_MIW:	required for world stage (after cross-tools)
42# SRCS_EXT:	required for MK_CLANG_EXTRAS
43# SRCS_EXL:	required for MK_CLANG_EXTRAS and MK_LLD
44# SRCS_FUL:	required for MK_CLANG_FULL
45# SRCS_LLD:	required for MK_LLD
46# SRCS_XDB:	required for MK_CLANG_EXTRAS and MK_LLDB
47# SRCS_XDL:	required for MK_CLANG_EXTRAS, MK_LLD and MK_LLDB
48# SRCS_XDW:	required for MK_CLANG_EXTRAS and MK_LLDB in world stage
49# SRCS_COV:	required for MK_LLVM_COV
50
51SRCS_MIN+=	Analysis/AliasAnalysis.cpp
52SRCS_MIN+=	Analysis/AliasAnalysisEvaluator.cpp
53SRCS_MIN+=	Analysis/AliasSetTracker.cpp
54SRCS_EXT+=	Analysis/Analysis.cpp
55SRCS_MIN+=	Analysis/AssumeBundleQueries.cpp
56SRCS_MIN+=	Analysis/AssumptionCache.cpp
57SRCS_MIN+=	Analysis/BasicAliasAnalysis.cpp
58SRCS_MIN+=	Analysis/BlockFrequencyInfo.cpp
59SRCS_MIN+=	Analysis/BlockFrequencyInfoImpl.cpp
60SRCS_MIN+=	Analysis/BranchProbabilityInfo.cpp
61SRCS_MIN+=	Analysis/CFG.cpp
62SRCS_MIN+=	Analysis/CFGPrinter.cpp
63SRCS_MIN+=	Analysis/CFGSCCPrinter.cpp
64SRCS_MIN+=	Analysis/CGSCCPassManager.cpp
65SRCS_MIN+=	Analysis/CallGraph.cpp
66SRCS_MIN+=	Analysis/CallGraphSCCPass.cpp
67SRCS_MIN+=	Analysis/CallPrinter.cpp
68SRCS_MIN+=	Analysis/CaptureTracking.cpp
69SRCS_MIN+=	Analysis/CmpInstAnalysis.cpp
70SRCS_MIN+=	Analysis/CodeMetrics.cpp
71SRCS_MIN+=	Analysis/ConstantFolding.cpp
72SRCS_MIN+=	Analysis/ConstraintSystem.cpp
73SRCS_MIN+=	Analysis/CostModel.cpp
74SRCS_MIN+=	Analysis/CycleAnalysis.cpp
75SRCS_MIN+=	Analysis/DDG.cpp
76SRCS_MIN+=	Analysis/DDGPrinter.cpp
77SRCS_MIN+=	Analysis/Delinearization.cpp
78SRCS_MIN+=	Analysis/DemandedBits.cpp
79SRCS_MIN+=	Analysis/DependenceAnalysis.cpp
80SRCS_MIN+=	Analysis/DependenceGraphBuilder.cpp
81SRCS_MIN+=	Analysis/DomConditionCache.cpp
82SRCS_MIN+=	Analysis/DomPrinter.cpp
83SRCS_MIN+=	Analysis/DomTreeUpdater.cpp
84SRCS_MIN+=	Analysis/DominanceFrontier.cpp
85SRCS_MIN+=	Analysis/FunctionPropertiesAnalysis.cpp
86SRCS_MIN+=	Analysis/GlobalsModRef.cpp
87SRCS_MIN+=	Analysis/GuardUtils.cpp
88SRCS_MIN+=	Analysis/HeatUtils.cpp
89SRCS_MIN+=	Analysis/IRSimilarityIdentifier.cpp
90SRCS_MIN+=	Analysis/IVDescriptors.cpp
91SRCS_MIN+=	Analysis/IVUsers.cpp
92SRCS_MIN+=	Analysis/ImportedFunctionsInliningStatistics.cpp
93SRCS_MIN+=	Analysis/IndirectCallPromotionAnalysis.cpp
94SRCS_MIN+=	Analysis/InlineAdvisor.cpp
95SRCS_MIN+=	Analysis/InlineCost.cpp
96SRCS_MIN+=	Analysis/InlineOrder.cpp
97SRCS_MIN+=	Analysis/InlineSizeEstimatorAnalysis.cpp
98SRCS_MIN+=	Analysis/InstCount.cpp
99SRCS_MIN+=	Analysis/InstructionPrecedenceTracking.cpp
100SRCS_MIN+=	Analysis/InstructionSimplify.cpp
101SRCS_MIN+=	Analysis/InteractiveModelRunner.cpp
102SRCS_MIN+=	Analysis/LazyBlockFrequencyInfo.cpp
103SRCS_MIN+=	Analysis/LazyBranchProbabilityInfo.cpp
104SRCS_MIN+=	Analysis/LazyCallGraph.cpp
105SRCS_MIN+=	Analysis/LazyValueInfo.cpp
106SRCS_MIN+=	Analysis/Lint.cpp
107SRCS_MIN+=	Analysis/Loads.cpp
108SRCS_MIN+=	Analysis/Local.cpp
109SRCS_MIN+=	Analysis/LoopAccessAnalysis.cpp
110SRCS_MIN+=	Analysis/LoopAnalysisManager.cpp
111SRCS_MIN+=	Analysis/LoopCacheAnalysis.cpp
112SRCS_MIN+=	Analysis/LoopInfo.cpp
113SRCS_MIN+=	Analysis/LoopNestAnalysis.cpp
114SRCS_MIN+=	Analysis/LoopPass.cpp
115SRCS_MIN+=	Analysis/LoopUnrollAnalyzer.cpp
116SRCS_MIN+=	Analysis/MLInlineAdvisor.cpp
117SRCS_MIN+=	Analysis/MemDerefPrinter.cpp
118SRCS_MIN+=	Analysis/MemoryBuiltins.cpp
119SRCS_MIN+=	Analysis/MemoryDependenceAnalysis.cpp
120SRCS_MIN+=	Analysis/MemoryLocation.cpp
121SRCS_MIN+=	Analysis/MemoryProfileInfo.cpp
122SRCS_MIN+=	Analysis/MemorySSA.cpp
123SRCS_MIN+=	Analysis/MemorySSAUpdater.cpp
124SRCS_MIN+=	Analysis/ModuleDebugInfoPrinter.cpp
125SRCS_MIN+=	Analysis/ModuleSummaryAnalysis.cpp
126SRCS_MIN+=	Analysis/MustExecute.cpp
127SRCS_MIN+=	Analysis/ObjCARCAliasAnalysis.cpp
128SRCS_MIN+=	Analysis/ObjCARCAnalysisUtils.cpp
129SRCS_MIN+=	Analysis/ObjCARCInstKind.cpp
130SRCS_MIN+=	Analysis/OptimizationRemarkEmitter.cpp
131SRCS_MIN+=	Analysis/OverflowInstAnalysis.cpp
132SRCS_MIN+=	Analysis/PHITransAddr.cpp
133SRCS_MIN+=	Analysis/PhiValues.cpp
134SRCS_MIN+=	Analysis/PostDominators.cpp
135SRCS_MIN+=	Analysis/ProfileSummaryInfo.cpp
136SRCS_MIN+=	Analysis/PtrUseVisitor.cpp
137SRCS_MIN+=	Analysis/RegionInfo.cpp
138SRCS_MIN+=	Analysis/RegionPass.cpp
139SRCS_MIN+=	Analysis/RegionPrinter.cpp
140SRCS_MIN+=	Analysis/ReplayInlineAdvisor.cpp
141SRCS_MIN+=	Analysis/ScalarEvolution.cpp
142SRCS_MIN+=	Analysis/ScalarEvolution.cpp
143SRCS_MIN+=	Analysis/ScalarEvolutionAliasAnalysis.cpp
144SRCS_MIN+=	Analysis/ScalarEvolutionDivision.cpp
145SRCS_MIN+=	Analysis/ScalarEvolutionNormalization.cpp
146SRCS_MIN+=	Analysis/ScopedNoAliasAA.cpp
147SRCS_MIN+=	Analysis/StackLifetime.cpp
148SRCS_MIN+=	Analysis/StackSafetyAnalysis.cpp
149SRCS_MIN+=	Analysis/StructuralHash.cpp
150SRCS_MIN+=	Analysis/SyntheticCountsUtils.cpp
151SRCS_MIN+=	Analysis/TargetLibraryInfo.cpp
152SRCS_MIN+=	Analysis/TargetTransformInfo.cpp
153SRCS_MIN+=	Analysis/TensorSpec.cpp
154SRCS_MIN+=	Analysis/TrainingLogger.cpp
155SRCS_MIN+=	Analysis/TypeBasedAliasAnalysis.cpp
156SRCS_MIN+=	Analysis/TypeMetadataUtils.cpp
157SRCS_MIN+=	Analysis/UniformityAnalysis.cpp
158SRCS_MIN+=	Analysis/ValueLattice.cpp
159SRCS_MIN+=	Analysis/ValueLatticeUtils.cpp
160SRCS_MIN+=	Analysis/ValueTracking.cpp
161SRCS_MIN+=	Analysis/VectorUtils.cpp
162SRCS_MIN+=	AsmParser/LLLexer.cpp
163SRCS_MIN+=	AsmParser/LLParser.cpp
164SRCS_MIN+=	AsmParser/Parser.cpp
165SRCS_MIN+=	BinaryFormat/AMDGPUMetadataVerifier.cpp
166SRCS_MIN+=	BinaryFormat/COFF.cpp
167SRCS_MIN+=	BinaryFormat/Dwarf.cpp
168SRCS_XDB+=	BinaryFormat/ELF.cpp
169SRCS_MIN+=	BinaryFormat/MachO.cpp
170SRCS_MIN+=	BinaryFormat/Magic.cpp
171SRCS_MIN+=	BinaryFormat/MsgPackDocument.cpp
172SRCS_MIN+=	BinaryFormat/MsgPackDocumentYAML.cpp
173SRCS_MIN+=	BinaryFormat/MsgPackReader.cpp
174SRCS_MIN+=	BinaryFormat/MsgPackWriter.cpp
175SRCS_MIN+=	BinaryFormat/Wasm.cpp
176SRCS_MIN+=	BinaryFormat/XCOFF.cpp
177SRCS_MIN+=	Bitcode/Reader/BitReader.cpp
178SRCS_EXT+=	Bitcode/Reader/BitcodeAnalyzer.cpp
179SRCS_MIN+=	Bitcode/Reader/BitcodeReader.cpp
180SRCS_MIN+=	Bitcode/Reader/MetadataLoader.cpp
181SRCS_MIN+=	Bitcode/Reader/ValueList.cpp
182SRCS_MIN+=	Bitcode/Writer/BitcodeWriter.cpp
183SRCS_MIN+=	Bitcode/Writer/BitcodeWriterPass.cpp
184SRCS_MIN+=	Bitcode/Writer/ValueEnumerator.cpp
185SRCS_MIN+=	Bitstream/Reader/BitstreamReader.cpp
186SRCS_MIN+=	CodeGen/AggressiveAntiDepBreaker.cpp
187SRCS_MIN+=	CodeGen/AllocationOrder.cpp
188SRCS_MIN+=	CodeGen/Analysis.cpp
189SRCS_MIN+=	CodeGen/AsmPrinter/AIXException.cpp
190SRCS_MIN+=	CodeGen/AsmPrinter/ARMException.cpp
191SRCS_MIN+=	CodeGen/AsmPrinter/AccelTable.cpp
192SRCS_MIN+=	CodeGen/AsmPrinter/AddressPool.cpp
193SRCS_MIN+=	CodeGen/AsmPrinter/AsmPrinter.cpp
194SRCS_MIN+=	CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
195SRCS_MIN+=	CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
196SRCS_MIN+=	CodeGen/AsmPrinter/CodeViewDebug.cpp
197SRCS_MIN+=	CodeGen/AsmPrinter/DIE.cpp
198SRCS_MIN+=	CodeGen/AsmPrinter/DIEHash.cpp
199SRCS_MIN+=	CodeGen/AsmPrinter/DbgEntityHistoryCalculator.cpp
200SRCS_MIN+=	CodeGen/AsmPrinter/DebugHandlerBase.cpp
201SRCS_MIN+=	CodeGen/AsmPrinter/DebugLocStream.cpp
202SRCS_MIN+=	CodeGen/AsmPrinter/DwarfCFIException.cpp
203SRCS_MIN+=	CodeGen/AsmPrinter/DwarfCompileUnit.cpp
204SRCS_MIN+=	CodeGen/AsmPrinter/DwarfDebug.cpp
205SRCS_MIN+=	CodeGen/AsmPrinter/DwarfExpression.cpp
206SRCS_MIN+=	CodeGen/AsmPrinter/DwarfFile.cpp
207SRCS_MIN+=	CodeGen/AsmPrinter/DwarfStringPool.cpp
208SRCS_MIN+=	CodeGen/AsmPrinter/DwarfUnit.cpp
209SRCS_MIN+=	CodeGen/AsmPrinter/EHStreamer.cpp
210SRCS_EXT+=	CodeGen/AsmPrinter/ErlangGCPrinter.cpp
211SRCS_MIN+=	CodeGen/AsmPrinter/OcamlGCPrinter.cpp
212SRCS_MIN+=	CodeGen/AsmPrinter/PseudoProbePrinter.cpp
213SRCS_MIN+=	CodeGen/AsmPrinter/WasmException.cpp
214SRCS_MIN+=	CodeGen/AsmPrinter/WinCFGuard.cpp
215SRCS_MIN+=	CodeGen/AsmPrinter/WinException.cpp
216SRCS_MIN+=	CodeGen/AssignmentTrackingAnalysis.cpp
217SRCS_MIN+=	CodeGen/AtomicExpandPass.cpp
218SRCS_MIN+=	CodeGen/BasicBlockPathCloning.cpp
219SRCS_MIN+=	CodeGen/BasicBlockSections.cpp
220SRCS_MIN+=	CodeGen/BasicBlockSectionsProfileReader.cpp
221SRCS_MIN+=	CodeGen/BasicTargetTransformInfo.cpp
222SRCS_MIN+=	CodeGen/BranchFolding.cpp
223SRCS_MIN+=	CodeGen/BranchRelaxation.cpp
224SRCS_MIN+=	CodeGen/BreakFalseDeps.cpp
225SRCS_MIN+=	CodeGen/CFGuardLongjmp.cpp
226SRCS_MIN+=	CodeGen/CFIFixup.cpp
227SRCS_MIN+=	CodeGen/CFIInstrInserter.cpp
228SRCS_MIN+=	CodeGen/CalcSpillWeights.cpp
229SRCS_MIN+=	CodeGen/CallBrPrepare.cpp
230SRCS_MIN+=	CodeGen/CallingConvLower.cpp
231SRCS_MIN+=	CodeGen/CodeGen.cpp
232SRCS_MIN+=	CodeGen/CodeGenCommonISel.cpp
233SRCS_MIN+=	CodeGen/CodeGenPrepare.cpp
234SRCS_EXL+=	CodeGen/CommandFlags.cpp
235SRCS_MIN+=	CodeGen/ComplexDeinterleavingPass.cpp
236SRCS_MIN+=	CodeGen/CriticalAntiDepBreaker.cpp
237SRCS_MIN+=	CodeGen/DFAPacketizer.cpp
238SRCS_MIN+=	CodeGen/DeadMachineInstructionElim.cpp
239SRCS_MIN+=	CodeGen/DetectDeadLanes.cpp
240SRCS_MIN+=	CodeGen/DwarfEHPrepare.cpp
241SRCS_MIN+=	CodeGen/EHContGuardCatchret.cpp
242SRCS_MIN+=	CodeGen/EarlyIfConversion.cpp
243SRCS_MIN+=	CodeGen/EdgeBundles.cpp
244SRCS_MIN+=	CodeGen/ExecutionDomainFix.cpp
245SRCS_MIN+=	CodeGen/ExpandLargeDivRem.cpp
246SRCS_MIN+=	CodeGen/ExpandLargeFpConvert.cpp
247SRCS_MIN+=	CodeGen/ExpandMemCmp.cpp
248SRCS_MIN+=	CodeGen/ExpandPostRAPseudos.cpp
249SRCS_MIN+=	CodeGen/ExpandReductions.cpp
250SRCS_MIN+=	CodeGen/ExpandVectorPredication.cpp
251SRCS_MIN+=	CodeGen/FEntryInserter.cpp
252SRCS_MIN+=	CodeGen/FaultMaps.cpp
253SRCS_MIN+=	CodeGen/FinalizeISel.cpp
254SRCS_MIN+=	CodeGen/FixupStatepointCallerSaved.cpp
255SRCS_MIN+=	CodeGen/FuncletLayout.cpp
256SRCS_MIN+=	CodeGen/GCEmptyBasicBlocks.cpp
257SRCS_MIN+=	CodeGen/GCMetadata.cpp
258SRCS_MIN+=	CodeGen/GCMetadataPrinter.cpp
259SRCS_MIN+=	CodeGen/GCRootLowering.cpp
260SRCS_MIN+=	CodeGen/GlobalISel/CSEInfo.cpp
261SRCS_MIN+=	CodeGen/GlobalISel/CSEMIRBuilder.cpp
262SRCS_MIN+=	CodeGen/GlobalISel/CallLowering.cpp
263SRCS_MIN+=	CodeGen/GlobalISel/Combiner.cpp
264SRCS_MIN+=	CodeGen/GlobalISel/CombinerHelper.cpp
265SRCS_MIN+=	CodeGen/GlobalISel/CombinerHelperVectorOps.cpp
266SRCS_MIN+=	CodeGen/GlobalISel/GIMatchTableExecutor.cpp
267SRCS_MIN+=	CodeGen/GlobalISel/GISelChangeObserver.cpp
268SRCS_MIN+=	CodeGen/GlobalISel/GISelKnownBits.cpp
269SRCS_MIN+=	CodeGen/GlobalISel/GlobalISel.cpp
270SRCS_MIN+=	CodeGen/GlobalISel/IRTranslator.cpp
271SRCS_MIN+=	CodeGen/GlobalISel/InlineAsmLowering.cpp
272SRCS_MIN+=	CodeGen/GlobalISel/InstructionSelect.cpp
273SRCS_MIN+=	CodeGen/GlobalISel/InstructionSelector.cpp
274SRCS_MIN+=	CodeGen/GlobalISel/LegacyLegalizerInfo.cpp
275SRCS_MIN+=	CodeGen/GlobalISel/LegalityPredicates.cpp
276SRCS_MIN+=	CodeGen/GlobalISel/LegalizeMutations.cpp
277SRCS_MIN+=	CodeGen/GlobalISel/Legalizer.cpp
278SRCS_MIN+=	CodeGen/GlobalISel/LegalizerHelper.cpp
279SRCS_MIN+=	CodeGen/GlobalISel/LegalizerInfo.cpp
280SRCS_MIN+=	CodeGen/GlobalISel/LoadStoreOpt.cpp
281SRCS_MIN+=	CodeGen/GlobalISel/Localizer.cpp
282SRCS_MIN+=	CodeGen/GlobalISel/LostDebugLocObserver.cpp
283SRCS_MIN+=	CodeGen/GlobalISel/MachineIRBuilder.cpp
284SRCS_MIN+=	CodeGen/GlobalISel/RegBankSelect.cpp
285SRCS_MIN+=	CodeGen/GlobalISel/Utils.cpp
286SRCS_MIN+=	CodeGen/GlobalMerge.cpp
287SRCS_MIN+=	CodeGen/HardwareLoops.cpp
288SRCS_MIN+=	CodeGen/IfConversion.cpp
289SRCS_MIN+=	CodeGen/ImplicitNullChecks.cpp
290SRCS_MIN+=	CodeGen/IndirectBrExpandPass.cpp
291SRCS_MIN+=	CodeGen/InitUndef.cpp
292SRCS_MIN+=	CodeGen/InlineSpiller.cpp
293SRCS_MIN+=	CodeGen/InterferenceCache.cpp
294SRCS_MIN+=	CodeGen/InterleavedAccessPass.cpp
295SRCS_MIN+=	CodeGen/InterleavedLoadCombinePass.cpp
296SRCS_MIN+=	CodeGen/IntrinsicLowering.cpp
297SRCS_MIN+=	CodeGen/JMCInstrumenter.cpp
298SRCS_MIN+=	CodeGen/KCFI.cpp
299SRCS_MIN+=	CodeGen/LLVMTargetMachine.cpp
300SRCS_MIN+=	CodeGen/LatencyPriorityQueue.cpp
301SRCS_MIN+=	CodeGen/LazyMachineBlockFrequencyInfo.cpp
302SRCS_MIN+=	CodeGen/LexicalScopes.cpp
303SRCS_MIN+=	CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
304SRCS_MIN+=	CodeGen/LiveDebugValues/LiveDebugValues.cpp
305SRCS_MIN+=	CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
306SRCS_MIN+=	CodeGen/LiveDebugVariables.cpp
307SRCS_MIN+=	CodeGen/LiveInterval.cpp
308SRCS_MIN+=	CodeGen/LiveIntervalCalc.cpp
309SRCS_MIN+=	CodeGen/LiveIntervalUnion.cpp
310SRCS_MIN+=	CodeGen/LiveIntervals.cpp
311SRCS_MIN+=	CodeGen/LivePhysRegs.cpp
312SRCS_MIN+=	CodeGen/LiveRangeCalc.cpp
313SRCS_MIN+=	CodeGen/LiveRangeEdit.cpp
314SRCS_MIN+=	CodeGen/LiveRangeShrink.cpp
315SRCS_MIN+=	CodeGen/LiveRegMatrix.cpp
316SRCS_MIN+=	CodeGen/LiveRegUnits.cpp
317SRCS_MIN+=	CodeGen/LiveStacks.cpp
318SRCS_MIN+=	CodeGen/LiveVariables.cpp
319SRCS_MIN+=	CodeGen/LocalStackSlotAllocation.cpp
320SRCS_MIN+=	CodeGen/LoopTraversal.cpp
321SRCS_MIN+=	CodeGen/LowLevelTypeUtils.cpp
322SRCS_MIN+=	CodeGen/LowerEmuTLS.cpp
323SRCS_MIN+=	CodeGen/MBFIWrapper.cpp
324SRCS_MIN+=	CodeGen/MIRCanonicalizerPass.cpp
325SRCS_MIN+=	CodeGen/MIRFSDiscriminator.cpp
326SRCS_MIN+=	CodeGen/MIRNamerPass.cpp
327SRCS_EXT+=	CodeGen/MIRParser/MILexer.cpp
328SRCS_EXT+=	CodeGen/MIRParser/MIParser.cpp
329SRCS_EXT+=	CodeGen/MIRParser/MIRParser.cpp
330SRCS_MIN+=	CodeGen/MIRPrinter.cpp
331SRCS_MIN+=	CodeGen/MIRPrintingPass.cpp
332SRCS_MIN+=	CodeGen/MIRSampleProfile.cpp
333SRCS_MIN+=	CodeGen/MIRVRegNamerUtils.cpp
334SRCS_MIN+=	CodeGen/MLRegAllocEvictAdvisor.cpp
335SRCS_MIN+=	CodeGen/MLRegAllocPriorityAdvisor.cpp
336SRCS_MIN+=	CodeGen/MachineBasicBlock.cpp
337SRCS_MIN+=	CodeGen/MachineBlockFrequencyInfo.cpp
338SRCS_MIN+=	CodeGen/MachineBlockPlacement.cpp
339SRCS_MIN+=	CodeGen/MachineBranchProbabilityInfo.cpp
340SRCS_MIN+=	CodeGen/MachineCFGPrinter.cpp
341SRCS_MIN+=	CodeGen/MachineCSE.cpp
342SRCS_MIN+=	CodeGen/MachineCheckDebugify.cpp
343SRCS_MIN+=	CodeGen/MachineCombiner.cpp
344SRCS_MIN+=	CodeGen/MachineConvergenceVerifier.cpp
345SRCS_MIN+=	CodeGen/MachineCopyPropagation.cpp
346SRCS_MIN+=	CodeGen/MachineCycleAnalysis.cpp
347SRCS_MIN+=	CodeGen/MachineDebugify.cpp
348SRCS_MIN+=	CodeGen/MachineDominanceFrontier.cpp
349SRCS_MIN+=	CodeGen/MachineDominators.cpp
350SRCS_MIN+=	CodeGen/MachineFrameInfo.cpp
351SRCS_MIN+=	CodeGen/MachineFunction.cpp
352SRCS_MIN+=	CodeGen/MachineFunctionAnalysis.cpp
353SRCS_MIN+=	CodeGen/MachineFunctionPass.cpp
354SRCS_MIN+=	CodeGen/MachineFunctionPrinterPass.cpp
355SRCS_MIN+=	CodeGen/MachineFunctionSplitter.cpp
356SRCS_MIN+=	CodeGen/MachineInstr.cpp
357SRCS_MIN+=	CodeGen/MachineInstrBundle.cpp
358SRCS_MIN+=	CodeGen/MachineLICM.cpp
359SRCS_MIN+=	CodeGen/MachineLateInstrsCleanup.cpp
360SRCS_MIN+=	CodeGen/MachineLoopInfo.cpp
361SRCS_MIN+=	CodeGen/MachineLoopUtils.cpp
362SRCS_MIN+=	CodeGen/MachineModuleInfo.cpp
363SRCS_MIN+=	CodeGen/MachineModuleInfoImpls.cpp
364SRCS_MIN+=	CodeGen/MachineModuleSlotTracker.cpp
365SRCS_MIN+=	CodeGen/MachineOperand.cpp
366SRCS_MIN+=	CodeGen/MachineOptimizationRemarkEmitter.cpp
367SRCS_MIN+=	CodeGen/MachineOutliner.cpp
368SRCS_MIN+=	CodeGen/MachinePassManager.cpp
369SRCS_MIN+=	CodeGen/MachinePipeliner.cpp
370SRCS_MIN+=	CodeGen/MachinePostDominators.cpp
371SRCS_MIN+=	CodeGen/MachineRegionInfo.cpp
372SRCS_MIN+=	CodeGen/MachineRegisterInfo.cpp
373SRCS_MIN+=	CodeGen/MachineSSAContext.cpp
374SRCS_MIN+=	CodeGen/MachineSSAUpdater.cpp
375SRCS_MIN+=	CodeGen/MachineScheduler.cpp
376SRCS_MIN+=	CodeGen/MachineSink.cpp
377SRCS_MIN+=	CodeGen/MachineSizeOpts.cpp
378SRCS_MIN+=	CodeGen/MachineStableHash.cpp
379SRCS_MIN+=	CodeGen/MachineStripDebug.cpp
380SRCS_MIN+=	CodeGen/MachineTraceMetrics.cpp
381SRCS_MIN+=	CodeGen/MachineUniformityAnalysis.cpp
382SRCS_MIN+=	CodeGen/MachineVerifier.cpp
383SRCS_MIN+=	CodeGen/MacroFusion.cpp
384SRCS_MIN+=	CodeGen/ModuloSchedule.cpp
385SRCS_MIN+=	CodeGen/MultiHazardRecognizer.cpp
386SRCS_EXT+=	CodeGen/NonRelocatableStringpool.cpp
387SRCS_MIN+=	CodeGen/OptimizePHIs.cpp
388SRCS_MIN+=	CodeGen/PHIElimination.cpp
389SRCS_MIN+=	CodeGen/PHIEliminationUtils.cpp
390SRCS_MIN+=	CodeGen/PatchableFunction.cpp
391SRCS_MIN+=	CodeGen/PeepholeOptimizer.cpp
392SRCS_MIN+=	CodeGen/PostRAHazardRecognizer.cpp
393SRCS_MIN+=	CodeGen/PostRASchedulerList.cpp
394SRCS_MIN+=	CodeGen/PreISelIntrinsicLowering.cpp
395SRCS_MIN+=	CodeGen/ProcessImplicitDefs.cpp
396SRCS_MIN+=	CodeGen/PrologEpilogInserter.cpp
397SRCS_MIN+=	CodeGen/PseudoProbeInserter.cpp
398SRCS_MIN+=	CodeGen/PseudoSourceValue.cpp
399SRCS_MIN+=	CodeGen/RDFGraph.cpp
400SRCS_MIN+=	CodeGen/RDFLiveness.cpp
401SRCS_MIN+=	CodeGen/RDFRegisters.cpp
402SRCS_MIN+=	CodeGen/ReachingDefAnalysis.cpp
403SRCS_MIN+=	CodeGen/RegAllocBase.cpp
404SRCS_MIN+=	CodeGen/RegAllocBasic.cpp
405SRCS_MIN+=	CodeGen/RegAllocEvictionAdvisor.cpp
406SRCS_MIN+=	CodeGen/RegAllocFast.cpp
407SRCS_MIN+=	CodeGen/RegAllocGreedy.cpp
408SRCS_MIN+=	CodeGen/RegAllocPBQP.cpp
409SRCS_MIN+=	CodeGen/RegAllocPriorityAdvisor.cpp
410SRCS_MIN+=	CodeGen/RegUsageInfoCollector.cpp
411SRCS_MIN+=	CodeGen/RegUsageInfoPropagate.cpp
412SRCS_MIN+=	CodeGen/RegisterBank.cpp
413SRCS_MIN+=	CodeGen/RegisterBankInfo.cpp
414SRCS_MIN+=	CodeGen/RegisterClassInfo.cpp
415SRCS_MIN+=	CodeGen/RegisterCoalescer.cpp
416SRCS_MIN+=	CodeGen/RegisterPressure.cpp
417SRCS_MIN+=	CodeGen/RegisterScavenging.cpp
418SRCS_MIN+=	CodeGen/RegisterUsageInfo.cpp
419SRCS_MIN+=	CodeGen/RemoveRedundantDebugValues.cpp
420SRCS_MIN+=	CodeGen/RenameIndependentSubregs.cpp
421SRCS_MIN+=	CodeGen/ReplaceWithVeclib.cpp
422SRCS_MIN+=	CodeGen/ResetMachineFunctionPass.cpp
423SRCS_MIN+=	CodeGen/SafeStack.cpp
424SRCS_MIN+=	CodeGen/SafeStackLayout.cpp
425SRCS_MIN+=	CodeGen/SanitizerBinaryMetadata.cpp
426SRCS_MIN+=	CodeGen/ScheduleDAG.cpp
427SRCS_MIN+=	CodeGen/ScheduleDAGInstrs.cpp
428SRCS_MIN+=	CodeGen/ScheduleDAGPrinter.cpp
429SRCS_MIN+=	CodeGen/ScoreboardHazardRecognizer.cpp
430SRCS_MIN+=	CodeGen/SelectOptimize.cpp
431SRCS_MIN+=	CodeGen/SelectionDAG/DAGCombiner.cpp
432SRCS_MIN+=	CodeGen/SelectionDAG/FastISel.cpp
433SRCS_MIN+=	CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
434SRCS_MIN+=	CodeGen/SelectionDAG/InstrEmitter.cpp
435SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeDAG.cpp
436SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
437SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
438SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeTypes.cpp
439SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeTypesGeneric.cpp
440SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeVectorOps.cpp
441SRCS_MIN+=	CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
442SRCS_MIN+=	CodeGen/SelectionDAG/ResourcePriorityQueue.cpp
443SRCS_MIN+=	CodeGen/SelectionDAG/ScheduleDAGFast.cpp
444SRCS_MIN+=	CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
445SRCS_MIN+=	CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
446SRCS_MIN+=	CodeGen/SelectionDAG/ScheduleDAGVLIW.cpp
447SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAG.cpp
448SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAGAddressAnalysis.cpp
449SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
450SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAGDumper.cpp
451SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAGISel.cpp
452SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
453SRCS_MIN+=	CodeGen/SelectionDAG/SelectionDAGTargetInfo.cpp
454SRCS_MIN+=	CodeGen/SelectionDAG/StatepointLowering.cpp
455SRCS_MIN+=	CodeGen/SelectionDAG/TargetLowering.cpp
456SRCS_MIN+=	CodeGen/ShadowStackGCLowering.cpp
457SRCS_MIN+=	CodeGen/ShrinkWrap.cpp
458SRCS_MIN+=	CodeGen/SjLjEHPrepare.cpp
459SRCS_MIN+=	CodeGen/SlotIndexes.cpp
460SRCS_MIN+=	CodeGen/SpillPlacement.cpp
461SRCS_MIN+=	CodeGen/SplitKit.cpp
462SRCS_MIN+=	CodeGen/StackColoring.cpp
463SRCS_MIN+=	CodeGen/StackFrameLayoutAnalysisPass.cpp
464SRCS_MIN+=	CodeGen/StackMapLivenessAnalysis.cpp
465SRCS_MIN+=	CodeGen/StackMaps.cpp
466SRCS_MIN+=	CodeGen/StackProtector.cpp
467SRCS_MIN+=	CodeGen/StackSlotColoring.cpp
468SRCS_MIN+=	CodeGen/SwiftErrorValueTracking.cpp
469SRCS_MIN+=	CodeGen/SwitchLoweringUtils.cpp
470SRCS_MIN+=	CodeGen/TailDuplication.cpp
471SRCS_MIN+=	CodeGen/TailDuplicator.cpp
472SRCS_MIN+=	CodeGen/TargetFrameLoweringImpl.cpp
473SRCS_MIN+=	CodeGen/TargetInstrInfo.cpp
474SRCS_MIN+=	CodeGen/TargetLoweringBase.cpp
475SRCS_MIN+=	CodeGen/TargetLoweringObjectFileImpl.cpp
476SRCS_MIN+=	CodeGen/TargetOptionsImpl.cpp
477SRCS_MIN+=	CodeGen/TargetPassConfig.cpp
478SRCS_MIN+=	CodeGen/TargetRegisterInfo.cpp
479SRCS_MIN+=	CodeGen/TargetSchedule.cpp
480SRCS_MIN+=	CodeGen/TargetSubtargetInfo.cpp
481SRCS_MIN+=	CodeGen/TwoAddressInstructionPass.cpp
482SRCS_MIN+=	CodeGen/TypePromotion.cpp
483SRCS_MIN+=	CodeGen/UnreachableBlockElim.cpp
484SRCS_MIN+=	CodeGen/ValueTypes.cpp
485SRCS_MIN+=	CodeGen/VirtRegMap.cpp
486SRCS_MIN+=	CodeGen/WasmEHPrepare.cpp
487SRCS_MIN+=	CodeGen/WinEHPrepare.cpp
488SRCS_MIN+=	CodeGen/WindowScheduler.cpp
489SRCS_MIN+=	CodeGen/XRayInstrumentation.cpp
490SRCS_MIN+=	CodeGenTypes/LowLevelType.cpp
491SRCS_EXT+=	DWARFLinker/Classic/DWARFLinker.cpp
492SRCS_EXT+=	DWARFLinker/Classic/DWARFLinkerCompileUnit.cpp
493SRCS_EXT+=	DWARFLinker/Classic/DWARFLinkerDeclContext.cpp
494SRCS_EXT+=	DWARFLinker/Classic/DWARFStreamer.cpp
495SRCS_EXT+=	DWARFLinker/DWARFLinkerBase.cpp
496SRCS_EXT+=	DWARFLinker/Parallel/AcceleratorRecordsSaver.cpp
497SRCS_EXT+=	DWARFLinker/Parallel/DIEAttributeCloner.cpp
498SRCS_EXT+=	DWARFLinker/Parallel/DWARFEmitterImpl.cpp
499SRCS_EXT+=	DWARFLinker/Parallel/DWARFLinker.cpp
500SRCS_EXT+=	DWARFLinker/Parallel/DWARFLinkerCompileUnit.cpp
501SRCS_EXT+=	DWARFLinker/Parallel/DWARFLinkerImpl.cpp
502SRCS_EXT+=	DWARFLinker/Parallel/DWARFLinkerTypeUnit.cpp
503SRCS_EXT+=	DWARFLinker/Parallel/DWARFLinkerUnit.cpp
504SRCS_EXT+=	DWARFLinker/Parallel/DependencyTracker.cpp
505SRCS_EXT+=	DWARFLinker/Parallel/OutputSections.cpp
506SRCS_EXT+=	DWARFLinker/Parallel/SyntheticTypeNameBuilder.cpp
507SRCS_EXT+=	DWARFLinker/Utils.cpp
508SRCS_EXT+=	DWP/DWP.cpp
509SRCS_EXT+=	DWP/DWPError.cpp
510SRCS_MIW+=	DebugInfo/BTF/BTFContext.cpp
511SRCS_MIW+=	DebugInfo/BTF/BTFParser.cpp
512SRCS_EXT+=	DebugInfo/CodeView/AppendingTypeTableBuilder.cpp
513SRCS_MIN+=	DebugInfo/CodeView/CVSymbolVisitor.cpp
514SRCS_MIN+=	DebugInfo/CodeView/CVTypeVisitor.cpp
515SRCS_MIN+=	DebugInfo/CodeView/CodeViewError.cpp
516SRCS_MIN+=	DebugInfo/CodeView/CodeViewRecordIO.cpp
517SRCS_MIN+=	DebugInfo/CodeView/ContinuationRecordBuilder.cpp
518SRCS_MIN+=	DebugInfo/CodeView/DebugChecksumsSubsection.cpp
519SRCS_EXT+=	DebugInfo/CodeView/DebugCrossExSubsection.cpp
520SRCS_EXT+=	DebugInfo/CodeView/DebugCrossImpSubsection.cpp
521SRCS_MIN+=	DebugInfo/CodeView/DebugFrameDataSubsection.cpp
522SRCS_MIN+=	DebugInfo/CodeView/DebugInlineeLinesSubsection.cpp
523SRCS_MIN+=	DebugInfo/CodeView/DebugLinesSubsection.cpp
524SRCS_MIN+=	DebugInfo/CodeView/DebugStringTableSubsection.cpp
525SRCS_MIW+=	DebugInfo/CodeView/DebugSubsection.cpp
526SRCS_EXT+=	DebugInfo/CodeView/DebugSubsectionRecord.cpp
527SRCS_EXT+=	DebugInfo/CodeView/DebugSubsectionVisitor.cpp
528SRCS_EXT+=	DebugInfo/CodeView/DebugSymbolRVASubsection.cpp
529SRCS_EXT+=	DebugInfo/CodeView/DebugSymbolsSubsection.cpp
530SRCS_MIN+=	DebugInfo/CodeView/EnumTables.cpp
531SRCS_MIN+=	DebugInfo/CodeView/Formatters.cpp
532SRCS_MIN+=	DebugInfo/CodeView/GlobalTypeTableBuilder.cpp
533SRCS_MIN+=	DebugInfo/CodeView/LazyRandomTypeCollection.cpp
534SRCS_MIN+=	DebugInfo/CodeView/Line.cpp
535SRCS_MIN+=	DebugInfo/CodeView/MergingTypeTableBuilder.cpp
536SRCS_MIN+=	DebugInfo/CodeView/RecordName.cpp
537SRCS_MIN+=	DebugInfo/CodeView/RecordSerialization.cpp
538SRCS_MIN+=	DebugInfo/CodeView/SimpleTypeSerializer.cpp
539SRCS_EXT+=	DebugInfo/CodeView/StringsAndChecksums.cpp
540SRCS_MIN+=	DebugInfo/CodeView/SymbolDumper.cpp
541SRCS_MIN+=	DebugInfo/CodeView/SymbolRecordHelpers.cpp
542SRCS_MIN+=	DebugInfo/CodeView/SymbolRecordMapping.cpp
543SRCS_EXT+=	DebugInfo/CodeView/SymbolSerializer.cpp
544SRCS_MIN+=	DebugInfo/CodeView/TypeDumpVisitor.cpp
545SRCS_MIN+=	DebugInfo/CodeView/TypeHashing.cpp
546SRCS_MIN+=	DebugInfo/CodeView/TypeIndex.cpp
547SRCS_MIN+=	DebugInfo/CodeView/TypeIndexDiscovery.cpp
548SRCS_EXT+=	DebugInfo/CodeView/TypeRecordHelpers.cpp
549SRCS_MIN+=	DebugInfo/CodeView/TypeRecordMapping.cpp
550SRCS_MIN+=	DebugInfo/CodeView/TypeStreamMerger.cpp
551SRCS_MIN+=	DebugInfo/CodeView/TypeTableCollection.cpp
552SRCS_MIW+=	DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp
553SRCS_MIW+=	DebugInfo/DWARF/DWARFAcceleratorTable.cpp
554SRCS_MIW+=	DebugInfo/DWARF/DWARFAddressRange.cpp
555SRCS_MIW+=	DebugInfo/DWARF/DWARFCompileUnit.cpp
556SRCS_MIW+=	DebugInfo/DWARF/DWARFContext.cpp
557SRCS_MIW+=	DebugInfo/DWARF/DWARFDataExtractor.cpp
558SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugAbbrev.cpp
559SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugAddr.cpp
560SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugArangeSet.cpp
561SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugAranges.cpp
562SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugFrame.cpp
563SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
564SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugLine.cpp
565SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugLoc.cpp
566SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugMacro.cpp
567SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugPubTable.cpp
568SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugRangeList.cpp
569SRCS_MIW+=	DebugInfo/DWARF/DWARFDebugRnglists.cpp
570SRCS_MIW+=	DebugInfo/DWARF/DWARFDie.cpp
571SRCS_MIN+=	DebugInfo/DWARF/DWARFExpression.cpp
572SRCS_MIW+=	DebugInfo/DWARF/DWARFFormValue.cpp
573SRCS_MIW+=	DebugInfo/DWARF/DWARFGdbIndex.cpp
574SRCS_MIW+=	DebugInfo/DWARF/DWARFListTable.cpp
575SRCS_MIW+=	DebugInfo/DWARF/DWARFTypePrinter.cpp
576SRCS_MIW+=	DebugInfo/DWARF/DWARFTypeUnit.cpp
577SRCS_MIW+=	DebugInfo/DWARF/DWARFUnit.cpp
578SRCS_MIW+=	DebugInfo/DWARF/DWARFUnitIndex.cpp
579SRCS_MIW+=	DebugInfo/DWARF/DWARFVerifier.cpp
580SRCS_MIN+=	DebugInfo/MSF/MSFBuilder.cpp
581SRCS_MIN+=	DebugInfo/MSF/MSFCommon.cpp
582SRCS_EXT+=	DebugInfo/MSF/MSFError.cpp
583SRCS_MIN+=	DebugInfo/MSF/MappedBlockStream.cpp
584SRCS_EXT+=	DebugInfo/PDB/GenericError.cpp
585SRCS_EXT+=	DebugInfo/PDB/IPDBSourceFile.cpp
586SRCS_EXT+=	DebugInfo/PDB/Native/DbiModuleDescriptor.cpp
587SRCS_EXT+=	DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.cpp
588SRCS_EXT+=	DebugInfo/PDB/Native/DbiModuleList.cpp
589SRCS_EXT+=	DebugInfo/PDB/Native/DbiStream.cpp
590SRCS_EXT+=	DebugInfo/PDB/Native/DbiStreamBuilder.cpp
591SRCS_EXT+=	DebugInfo/PDB/Native/EnumTables.cpp
592SRCS_EXT+=	DebugInfo/PDB/Native/FormatUtil.cpp
593SRCS_EXT+=	DebugInfo/PDB/Native/GSIStreamBuilder.cpp
594SRCS_EXT+=	DebugInfo/PDB/Native/GlobalsStream.cpp
595SRCS_EXT+=	DebugInfo/PDB/Native/Hash.cpp
596SRCS_EXT+=	DebugInfo/PDB/Native/HashTable.cpp
597SRCS_EXT+=	DebugInfo/PDB/Native/InfoStream.cpp
598SRCS_EXT+=	DebugInfo/PDB/Native/InfoStreamBuilder.cpp
599SRCS_EXT+=	DebugInfo/PDB/Native/InjectedSourceStream.cpp
600SRCS_EXT+=	DebugInfo/PDB/Native/InputFile.cpp
601SRCS_EXT+=	DebugInfo/PDB/Native/LinePrinter.cpp
602SRCS_EXT+=	DebugInfo/PDB/Native/ModuleDebugStream.cpp
603SRCS_EXT+=	DebugInfo/PDB/Native/NamedStreamMap.cpp
604SRCS_EXT+=	DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
605SRCS_EXT+=	DebugInfo/PDB/Native/NativeEnumGlobals.cpp
606SRCS_EXT+=	DebugInfo/PDB/Native/NativeEnumInjectedSources.cpp
607SRCS_EXT+=	DebugInfo/PDB/Native/NativeEnumLineNumbers.cpp
608SRCS_EXT+=	DebugInfo/PDB/Native/NativeEnumModules.cpp
609SRCS_EXT+=	DebugInfo/PDB/Native/NativeEnumSymbols.cpp
610SRCS_EXT+=	DebugInfo/PDB/Native/NativeEnumTypes.cpp
611SRCS_EXT+=	DebugInfo/PDB/Native/NativeExeSymbol.cpp
612SRCS_EXT+=	DebugInfo/PDB/Native/NativeFunctionSymbol.cpp
613SRCS_EXT+=	DebugInfo/PDB/Native/NativeInlineSiteSymbol.cpp
614SRCS_EXT+=	DebugInfo/PDB/Native/NativeLineNumber.cpp
615SRCS_EXT+=	DebugInfo/PDB/Native/NativePublicSymbol.cpp
616SRCS_EXT+=	DebugInfo/PDB/Native/NativeRawSymbol.cpp
617SRCS_EXT+=	DebugInfo/PDB/Native/NativeSession.cpp
618SRCS_EXT+=	DebugInfo/PDB/Native/NativeSourceFile.cpp
619SRCS_EXT+=	DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp
620SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeArray.cpp
621SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeBuiltin.cpp
622SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeEnum.cpp
623SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeFunctionSig.cpp
624SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypePointer.cpp
625SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeTypedef.cpp
626SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeUDT.cpp
627SRCS_EXT+=	DebugInfo/PDB/Native/NativeTypeVTShape.cpp
628SRCS_EXT+=	DebugInfo/PDB/Native/PDBFile.cpp
629SRCS_EXT+=	DebugInfo/PDB/Native/PDBFileBuilder.cpp
630SRCS_EXT+=	DebugInfo/PDB/Native/PDBStringTable.cpp
631SRCS_EXT+=	DebugInfo/PDB/Native/PDBStringTableBuilder.cpp
632SRCS_EXT+=	DebugInfo/PDB/Native/PublicsStream.cpp
633SRCS_EXT+=	DebugInfo/PDB/Native/RawError.cpp
634SRCS_EXT+=	DebugInfo/PDB/Native/SymbolCache.cpp
635SRCS_EXT+=	DebugInfo/PDB/Native/SymbolStream.cpp
636SRCS_EXT+=	DebugInfo/PDB/Native/TpiHashing.cpp
637SRCS_EXT+=	DebugInfo/PDB/Native/TpiStream.cpp
638SRCS_EXT+=	DebugInfo/PDB/Native/TpiStreamBuilder.cpp
639SRCS_EXT+=	DebugInfo/PDB/PDB.cpp
640SRCS_EXT+=	DebugInfo/PDB/PDBContext.cpp
641SRCS_EXT+=	DebugInfo/PDB/PDBExtras.cpp
642SRCS_EXT+=	DebugInfo/PDB/PDBInterfaceAnchors.cpp
643SRCS_EXT+=	DebugInfo/PDB/PDBSymDumper.cpp
644SRCS_EXT+=	DebugInfo/PDB/PDBSymbol.cpp
645SRCS_EXT+=	DebugInfo/PDB/PDBSymbolAnnotation.cpp
646SRCS_EXT+=	DebugInfo/PDB/PDBSymbolBlock.cpp
647SRCS_EXT+=	DebugInfo/PDB/PDBSymbolCompiland.cpp
648SRCS_EXT+=	DebugInfo/PDB/PDBSymbolCompilandDetails.cpp
649SRCS_EXT+=	DebugInfo/PDB/PDBSymbolCompilandEnv.cpp
650SRCS_EXT+=	DebugInfo/PDB/PDBSymbolCustom.cpp
651SRCS_EXT+=	DebugInfo/PDB/PDBSymbolData.cpp
652SRCS_EXT+=	DebugInfo/PDB/PDBSymbolExe.cpp
653SRCS_EXT+=	DebugInfo/PDB/PDBSymbolFunc.cpp
654SRCS_EXT+=	DebugInfo/PDB/PDBSymbolFuncDebugEnd.cpp
655SRCS_EXT+=	DebugInfo/PDB/PDBSymbolFuncDebugStart.cpp
656SRCS_EXT+=	DebugInfo/PDB/PDBSymbolLabel.cpp
657SRCS_EXT+=	DebugInfo/PDB/PDBSymbolPublicSymbol.cpp
658SRCS_EXT+=	DebugInfo/PDB/PDBSymbolThunk.cpp
659SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeArray.cpp
660SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeBaseClass.cpp
661SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeBuiltin.cpp
662SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeCustom.cpp
663SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeDimension.cpp
664SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeEnum.cpp
665SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeFriend.cpp
666SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeFunctionArg.cpp
667SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeFunctionSig.cpp
668SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeManaged.cpp
669SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypePointer.cpp
670SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeTypedef.cpp
671SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeUDT.cpp
672SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeVTable.cpp
673SRCS_EXT+=	DebugInfo/PDB/PDBSymbolTypeVTableShape.cpp
674SRCS_EXT+=	DebugInfo/PDB/PDBSymbolUnknown.cpp
675SRCS_EXT+=	DebugInfo/PDB/PDBSymbolUsingNamespace.cpp
676SRCS_EXT+=	DebugInfo/PDB/UDTLayout.cpp
677SRCS_MIW+=	DebugInfo/Symbolize/DIPrinter.cpp
678SRCS_MIW+=	DebugInfo/Symbolize/Markup.cpp
679SRCS_MIW+=	DebugInfo/Symbolize/MarkupFilter.cpp
680SRCS_MIW+=	DebugInfo/Symbolize/SymbolizableObjectFile.cpp
681SRCS_MIW+=	DebugInfo/Symbolize/Symbolize.cpp
682SRCS_MIW+=	Debuginfod/BuildIDFetcher.cpp
683SRCS_MIW+=	Debuginfod/Debuginfod.cpp
684SRCS_MIW+=	Debuginfod/HTTPClient.cpp
685SRCS_MIW+=	Debuginfod/HTTPServer.cpp
686SRCS_MIN+=	Demangle/DLangDemangle.cpp
687SRCS_MIN+=	Demangle/Demangle.cpp
688SRCS_MIN+=	Demangle/ItaniumDemangle.cpp
689SRCS_MIN+=	Demangle/MicrosoftDemangle.cpp
690SRCS_MIN+=	Demangle/MicrosoftDemangleNodes.cpp
691SRCS_MIN+=	Demangle/RustDemangle.cpp
692SRCS_XDB+=	ExecutionEngine/ExecutionEngine.cpp
693SRCS_XDB+=	ExecutionEngine/ExecutionEngineBindings.cpp
694SRCS_XDB+=	ExecutionEngine/GDBRegistrationListener.cpp
695SRCS_XDB+=	ExecutionEngine/Interpreter/Execution.cpp
696SRCS_XDB+=	ExecutionEngine/Interpreter/ExternalFunctions.cpp
697SRCS_XDB+=	ExecutionEngine/Interpreter/Interpreter.cpp
698SRCS_EXT+=	ExecutionEngine/JITLink/COFF.cpp
699SRCS_EXT+=	ExecutionEngine/JITLink/COFFDirectiveParser.cpp
700SRCS_EXT+=	ExecutionEngine/JITLink/COFFLinkGraphBuilder.cpp
701SRCS_EXT+=	ExecutionEngine/JITLink/COFF_x86_64.cpp
702SRCS_EXT+=	ExecutionEngine/JITLink/DWARFRecordSectionSplitter.cpp
703SRCS_EXT+=	ExecutionEngine/JITLink/EHFrameSupport.cpp
704SRCS_EXT+=	ExecutionEngine/JITLink/ELF.cpp
705SRCS_EXT+=	ExecutionEngine/JITLink/ELFLinkGraphBuilder.cpp
706SRCS_EXT+=	ExecutionEngine/JITLink/ELF_aarch32.cpp
707SRCS_EXT+=	ExecutionEngine/JITLink/ELF_aarch64.cpp
708SRCS_EXT+=	ExecutionEngine/JITLink/ELF_i386.cpp
709SRCS_EXT+=	ExecutionEngine/JITLink/ELF_loongarch.cpp
710SRCS_EXT+=	ExecutionEngine/JITLink/ELF_ppc64.cpp
711SRCS_EXT+=	ExecutionEngine/JITLink/ELF_riscv.cpp
712SRCS_EXT+=	ExecutionEngine/JITLink/ELF_x86_64.cpp
713SRCS_EXT+=	ExecutionEngine/JITLink/JITLink.cpp
714SRCS_EXT+=	ExecutionEngine/JITLink/JITLinkGeneric.cpp
715SRCS_EXT+=	ExecutionEngine/JITLink/JITLinkMemoryManager.cpp
716SRCS_EXT+=	ExecutionEngine/JITLink/MachO.cpp
717SRCS_EXT+=	ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
718SRCS_EXT+=	ExecutionEngine/JITLink/MachO_arm64.cpp
719SRCS_EXT+=	ExecutionEngine/JITLink/MachO_x86_64.cpp
720SRCS_EXT+=	ExecutionEngine/JITLink/aarch32.cpp
721SRCS_EXT+=	ExecutionEngine/JITLink/aarch64.cpp
722SRCS_EXT+=	ExecutionEngine/JITLink/i386.cpp
723SRCS_EXT+=	ExecutionEngine/JITLink/loongarch.cpp
724SRCS_EXT+=	ExecutionEngine/JITLink/ppc64.cpp
725SRCS_EXT+=	ExecutionEngine/JITLink/riscv.cpp
726SRCS_EXT+=	ExecutionEngine/JITLink/x86_64.cpp
727SRCS_XDB+=	ExecutionEngine/MCJIT/MCJIT.cpp
728SRCS_EXT+=	ExecutionEngine/Orc/COFFPlatform.cpp
729SRCS_EXT+=	ExecutionEngine/Orc/COFFVCRuntimeSupport.cpp
730SRCS_EXT+=	ExecutionEngine/Orc/CompileOnDemandLayer.cpp
731SRCS_EXT+=	ExecutionEngine/Orc/CompileUtils.cpp
732SRCS_EXT+=	ExecutionEngine/Orc/Core.cpp
733SRCS_EXT+=	ExecutionEngine/Orc/DebugObjectManagerPlugin.cpp
734SRCS_EXT+=	ExecutionEngine/Orc/DebugUtils.cpp
735SRCS_EXT+=	ExecutionEngine/Orc/Debugging/DebuggerSupport.cpp
736SRCS_EXT+=	ExecutionEngine/Orc/Debugging/DebuggerSupportPlugin.cpp
737SRCS_EXT+=	ExecutionEngine/Orc/ELFNixPlatform.cpp
738SRCS_EXT+=	ExecutionEngine/Orc/EPCDebugObjectRegistrar.cpp
739SRCS_EXT+=	ExecutionEngine/Orc/EPCDynamicLibrarySearchGenerator.cpp
740SRCS_EXT+=	ExecutionEngine/Orc/EPCEHFrameRegistrar.cpp
741SRCS_EXT+=	ExecutionEngine/Orc/EPCGenericDylibManager.cpp
742SRCS_EXT+=	ExecutionEngine/Orc/EPCGenericJITLinkMemoryManager.cpp
743SRCS_EXT+=	ExecutionEngine/Orc/EPCGenericRTDyldMemoryManager.cpp
744SRCS_EXT+=	ExecutionEngine/Orc/ExecutionUtils.cpp
745SRCS_EXT+=	ExecutionEngine/Orc/ExecutorProcessControl.cpp
746SRCS_EXT+=	ExecutionEngine/Orc/IRCompileLayer.cpp
747SRCS_EXT+=	ExecutionEngine/Orc/IRTransformLayer.cpp
748SRCS_EXT+=	ExecutionEngine/Orc/IndirectionUtils.cpp
749SRCS_EXT+=	ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
750SRCS_EXT+=	ExecutionEngine/Orc/LLJIT.cpp
751SRCS_EXT+=	ExecutionEngine/Orc/Layer.cpp
752SRCS_EXT+=	ExecutionEngine/Orc/LazyReexports.cpp
753SRCS_EXT+=	ExecutionEngine/Orc/LookupAndRecordAddrs.cpp
754SRCS_EXT+=	ExecutionEngine/Orc/MachOPlatform.cpp
755SRCS_EXT+=	ExecutionEngine/Orc/Mangling.cpp
756SRCS_EXT+=	ExecutionEngine/Orc/ObjectFileInterface.cpp
757SRCS_EXT+=	ExecutionEngine/Orc/ObjectLinkingLayer.cpp
758SRCS_EXT+=	ExecutionEngine/Orc/ObjectTransformLayer.cpp
759SRCS_EXT+=	ExecutionEngine/Orc/OrcABISupport.cpp
760SRCS_EXT+=	ExecutionEngine/Orc/RTDyldObjectLinkingLayer.cpp
761SRCS_EXT+=	ExecutionEngine/Orc/Shared/AllocationActions.cpp
762SRCS_EXT+=	ExecutionEngine/Orc/Shared/ObjectFormats.cpp
763SRCS_EXT+=	ExecutionEngine/Orc/Shared/OrcError.cpp
764SRCS_EXT+=	ExecutionEngine/Orc/Shared/OrcRTBridge.cpp
765SRCS_EXT+=	ExecutionEngine/Orc/Shared/SimpleRemoteEPCUtils.cpp
766SRCS_EXT+=	ExecutionEngine/Orc/SimpleRemoteEPC.cpp
767SRCS_EXT+=	ExecutionEngine/Orc/Speculation.cpp
768SRCS_XDB+=	ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp
769SRCS_EXT+=	ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.cpp
770SRCS_EXT+=	ExecutionEngine/Orc/TargetProcess/TargetExecutionUtils.cpp
771SRCS_EXT+=	ExecutionEngine/Orc/TaskDispatch.cpp
772SRCS_EXT+=	ExecutionEngine/Orc/ThreadSafeModule.cpp
773SRCS_XDB+=	ExecutionEngine/RuntimeDyld/JITSymbol.cpp
774SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
775SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
776SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RuntimeDyldCOFF.cpp
777SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
778SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
779SRCS_XDB+=	ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
780SRCS_XDB+=	ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldELFMips.cpp
781SRCS_XDB+=	ExecutionEngine/SectionMemoryManager.cpp
782SRCS_XDB+=	ExecutionEngine/TargetSelect.cpp
783SRCS_MIN+=	Frontend/Driver/CodeGenOptions.cpp
784SRCS_MIN+=	Frontend/HLSL/HLSLResource.cpp
785SRCS_MIN+=	Frontend/Offloading/OffloadWrapper.cpp
786SRCS_MIN+=	Frontend/Offloading/Utility.cpp
787SRCS_MIN+=	Frontend/OpenMP/OMP.cpp
788SRCS_MIN+=	Frontend/OpenMP/OMPContext.cpp
789SRCS_MIN+=	Frontend/OpenMP/OMPIRBuilder.cpp
790SRCS_MIN+=	IR/AbstractCallSite.cpp
791SRCS_MIN+=	IR/AsmWriter.cpp
792SRCS_MIN+=	IR/Assumptions.cpp
793SRCS_MIN+=	IR/Attributes.cpp
794SRCS_MIN+=	IR/AutoUpgrade.cpp
795SRCS_MIN+=	IR/BasicBlock.cpp
796SRCS_MIN+=	IR/BuiltinGCs.cpp
797SRCS_MIN+=	IR/Comdat.cpp
798SRCS_MIN+=	IR/ConstantFold.cpp
799SRCS_MIN+=	IR/ConstantRange.cpp
800SRCS_MIN+=	IR/ConstantRangeList.cpp
801SRCS_MIN+=	IR/Constants.cpp
802SRCS_MIN+=	IR/ConvergenceVerifier.cpp
803SRCS_MIN+=	IR/Core.cpp
804SRCS_MIN+=	IR/CycleInfo.cpp
805SRCS_MIN+=	IR/DIBuilder.cpp
806SRCS_MIN+=	IR/DIExpressionOptimizer.cpp
807SRCS_MIN+=	IR/DataLayout.cpp
808SRCS_MIN+=	IR/DebugInfo.cpp
809SRCS_MIN+=	IR/DebugInfoMetadata.cpp
810SRCS_MIN+=	IR/DebugLoc.cpp
811SRCS_MIN+=	IR/DebugProgramInstruction.cpp
812SRCS_MIN+=	IR/DiagnosticHandler.cpp
813SRCS_MIN+=	IR/DiagnosticInfo.cpp
814SRCS_MIN+=	IR/DiagnosticPrinter.cpp
815SRCS_MIN+=	IR/Dominators.cpp
816SRCS_MIN+=	IR/EHPersonalities.cpp
817SRCS_MIN+=	IR/FPEnv.cpp
818SRCS_MIN+=	IR/Function.cpp
819SRCS_MIN+=	IR/GCStrategy.cpp
820SRCS_MIN+=	IR/GVMaterializer.cpp
821SRCS_MIN+=	IR/Globals.cpp
822SRCS_MIN+=	IR/IRBuilder.cpp
823SRCS_MIN+=	IR/IRPrintingPasses.cpp
824SRCS_MIN+=	IR/InlineAsm.cpp
825SRCS_MIN+=	IR/Instruction.cpp
826SRCS_MIN+=	IR/Instructions.cpp
827SRCS_MIN+=	IR/IntrinsicInst.cpp
828SRCS_MIN+=	IR/LLVMContext.cpp
829SRCS_MIN+=	IR/LLVMContextImpl.cpp
830SRCS_MIN+=	IR/LLVMRemarkStreamer.cpp
831SRCS_MIN+=	IR/LegacyPassManager.cpp
832SRCS_MIN+=	IR/MDBuilder.cpp
833SRCS_MIN+=	IR/Mangler.cpp
834SRCS_MIN+=	IR/MemoryModelRelaxationAnnotations.cpp
835SRCS_MIN+=	IR/Metadata.cpp
836SRCS_MIN+=	IR/Module.cpp
837SRCS_MIN+=	IR/ModuleSummaryIndex.cpp
838SRCS_MIN+=	IR/Operator.cpp
839SRCS_MIN+=	IR/OptBisect.cpp
840SRCS_MIN+=	IR/Pass.cpp
841SRCS_MIN+=	IR/PassInstrumentation.cpp
842SRCS_MIN+=	IR/PassManager.cpp
843SRCS_MIN+=	IR/PassRegistry.cpp
844SRCS_MIN+=	IR/PassTimingInfo.cpp
845SRCS_MIN+=	IR/PrintPasses.cpp
846SRCS_MIN+=	IR/ProfDataUtils.cpp
847SRCS_MIN+=	IR/ProfileSummary.cpp
848SRCS_MIN+=	IR/PseudoProbe.cpp
849SRCS_MIN+=	IR/ReplaceConstant.cpp
850SRCS_MIN+=	IR/RuntimeLibcalls.cpp
851SRCS_MIN+=	IR/SSAContext.cpp
852SRCS_MIN+=	IR/SafepointIRVerifier.cpp
853SRCS_MIN+=	IR/Statepoint.cpp
854SRCS_MIN+=	IR/StructuralHash.cpp
855SRCS_MIN+=	IR/Type.cpp
856SRCS_MIN+=	IR/TypeFinder.cpp
857SRCS_MIN+=	IR/Use.cpp
858SRCS_MIN+=	IR/User.cpp
859SRCS_MIN+=	IR/VFABIDemangler.cpp
860SRCS_MIN+=	IR/Value.cpp
861SRCS_MIN+=	IR/ValueSymbolTable.cpp
862SRCS_MIN+=	IR/VectorBuilder.cpp
863SRCS_MIN+=	IR/Verifier.cpp
864SRCS_MIN+=	IRPrinter/IRPrintingPasses.cpp
865SRCS_MIN+=	IRReader/IRReader.cpp
866SRCS_MIN+=	LTO/LTO.cpp
867SRCS_MIN+=	LTO/LTOBackend.cpp
868SRCS_EXL+=	LTO/LTOCodeGenerator.cpp
869SRCS_EXL+=	LTO/LTOModule.cpp
870SRCS_EXL+=	LTO/SummaryBasedOptimizations.cpp
871SRCS_EXL+=	LTO/ThinLTOCodeGenerator.cpp
872SRCS_MIN+=	LTO/UpdateCompilerUsed.cpp
873SRCS_MIN+=	Linker/IRMover.cpp
874# Only needed for clangd/clang-query, uncomment once we build those.
875# SRCS_XDW+=	LineEditor/LineEditor.cpp
876SRCS_MIN+=	Linker/LinkModules.cpp
877SRCS_MIN+=	MC/ConstantPools.cpp
878SRCS_MIN+=	MC/ELFObjectWriter.cpp
879SRCS_MIN+=	MC/GOFFObjectWriter.cpp
880SRCS_MIN+=	MC/MCAsmBackend.cpp
881SRCS_MIN+=	MC/MCAsmInfo.cpp
882SRCS_MIN+=	MC/MCAsmInfoCOFF.cpp
883SRCS_MIN+=	MC/MCAsmInfoDarwin.cpp
884SRCS_MIN+=	MC/MCAsmInfoELF.cpp
885SRCS_MIN+=	MC/MCAsmInfoXCOFF.cpp
886SRCS_MIN+=	MC/MCAsmMacro.cpp
887SRCS_MIN+=	MC/MCAsmStreamer.cpp
888SRCS_MIN+=	MC/MCAssembler.cpp
889SRCS_MIN+=	MC/MCCodeEmitter.cpp
890SRCS_MIN+=	MC/MCCodeView.cpp
891SRCS_MIN+=	MC/MCContext.cpp
892SRCS_MIN+=	MC/MCDXContainerStreamer.cpp
893SRCS_MIN+=	MC/MCDXContainerWriter.cpp
894SRCS_XDL+=	MC/MCDisassembler/Disassembler.cpp
895SRCS_XDW+=	MC/MCDisassembler/MCDisassembler.cpp
896SRCS_XDW+=	MC/MCDisassembler/MCExternalSymbolizer.cpp
897SRCS_MIN+=	MC/MCDisassembler/MCRelocationInfo.cpp
898SRCS_XDW+=	MC/MCDisassembler/MCSymbolizer.cpp
899SRCS_MIN+=	MC/MCDwarf.cpp
900SRCS_MIN+=	MC/MCELFObjectTargetWriter.cpp
901SRCS_MIN+=	MC/MCELFStreamer.cpp
902SRCS_MIN+=	MC/MCExpr.cpp
903SRCS_MIN+=	MC/MCFragment.cpp
904SRCS_MIN+=	MC/MCGOFFStreamer.cpp
905SRCS_MIN+=	MC/MCInst.cpp
906SRCS_MIN+=	MC/MCInstPrinter.cpp
907SRCS_MIN+=	MC/MCInstrAnalysis.cpp
908SRCS_MIN+=	MC/MCInstrDesc.cpp
909SRCS_MIN+=	MC/MCInstrInfo.cpp
910SRCS_MIN+=	MC/MCLinkerOptimizationHint.cpp
911SRCS_MIN+=	MC/MCMachOStreamer.cpp
912SRCS_MIN+=	MC/MCMachObjectTargetWriter.cpp
913SRCS_MIN+=	MC/MCNullStreamer.cpp
914SRCS_MIN+=	MC/MCObjectFileInfo.cpp
915SRCS_MIN+=	MC/MCObjectStreamer.cpp
916SRCS_MIN+=	MC/MCObjectWriter.cpp
917SRCS_MIN+=	MC/MCParser/AsmLexer.cpp
918SRCS_MIN+=	MC/MCParser/AsmParser.cpp
919SRCS_MIN+=	MC/MCParser/COFFAsmParser.cpp
920SRCS_MIN+=	MC/MCParser/DarwinAsmParser.cpp
921SRCS_MIN+=	MC/MCParser/ELFAsmParser.cpp
922SRCS_MIN+=	MC/MCParser/GOFFAsmParser.cpp
923SRCS_MIN+=	MC/MCParser/MCAsmLexer.cpp
924SRCS_MIN+=	MC/MCParser/MCAsmParser.cpp
925SRCS_MIN+=	MC/MCParser/MCAsmParserExtension.cpp
926SRCS_MIN+=	MC/MCParser/MCTargetAsmParser.cpp
927SRCS_MIN+=	MC/MCParser/WasmAsmParser.cpp
928SRCS_MIN+=	MC/MCParser/XCOFFAsmParser.cpp
929SRCS_MIN+=	MC/MCPseudoProbe.cpp
930SRCS_MIN+=	MC/MCRegisterInfo.cpp
931SRCS_MIN+=	MC/MCSPIRVStreamer.cpp
932SRCS_MIN+=	MC/MCSchedule.cpp
933SRCS_MIN+=	MC/MCSection.cpp
934SRCS_MIN+=	MC/MCSectionCOFF.cpp
935SRCS_MIN+=	MC/MCSectionDXContainer.cpp
936SRCS_MIN+=	MC/MCSectionELF.cpp
937SRCS_MIN+=	MC/MCSectionMachO.cpp
938SRCS_MIN+=	MC/MCSectionWasm.cpp
939SRCS_MIN+=	MC/MCSectionXCOFF.cpp
940SRCS_MIN+=	MC/MCStreamer.cpp
941SRCS_MIN+=	MC/MCSubtargetInfo.cpp
942SRCS_MIN+=	MC/MCSymbol.cpp
943SRCS_MIN+=	MC/MCSymbolELF.cpp
944SRCS_MIN+=	MC/MCSymbolXCOFF.cpp
945SRCS_MIN+=	MC/MCTargetOptions.cpp
946SRCS_MIN+=	MC/MCTargetOptionsCommandFlags.cpp
947SRCS_MIN+=	MC/MCValue.cpp
948SRCS_MIN+=	MC/MCWasmStreamer.cpp
949SRCS_MIN+=	MC/MCWin64EH.cpp
950SRCS_MIN+=	MC/MCWinCOFFStreamer.cpp
951SRCS_MIN+=	MC/MCWinEH.cpp
952SRCS_MIN+=	MC/MCXCOFFObjectTargetWriter.cpp
953SRCS_MIN+=	MC/MCXCOFFStreamer.cpp
954SRCS_MIN+=	MC/MachObjectWriter.cpp
955SRCS_MIN+=	MC/SPIRVObjectWriter.cpp
956SRCS_MIN+=	MC/StringTableBuilder.cpp
957SRCS_MIN+=	MC/TargetRegistry.cpp
958SRCS_MIN+=	MC/WasmObjectWriter.cpp
959SRCS_MIN+=	MC/WinCOFFObjectWriter.cpp
960SRCS_MIN+=	MC/XCOFFObjectWriter.cpp
961SRCS_EXT+=	MCA/CodeEmitter.cpp
962SRCS_EXT+=	MCA/Context.cpp
963SRCS_EXT+=	MCA/CustomBehaviour.cpp
964SRCS_EXT+=	MCA/HWEventListener.cpp
965SRCS_EXT+=	MCA/HardwareUnits/HardwareUnit.cpp
966SRCS_EXT+=	MCA/HardwareUnits/LSUnit.cpp
967SRCS_EXT+=	MCA/HardwareUnits/RegisterFile.cpp
968SRCS_EXT+=	MCA/HardwareUnits/ResourceManager.cpp
969SRCS_EXT+=	MCA/HardwareUnits/RetireControlUnit.cpp
970SRCS_EXT+=	MCA/HardwareUnits/Scheduler.cpp
971SRCS_EXT+=	MCA/InstrBuilder.cpp
972SRCS_EXT+=	MCA/Instruction.cpp
973SRCS_EXT+=	MCA/Pipeline.cpp
974SRCS_EXT+=	MCA/Stages/DispatchStage.cpp
975SRCS_EXT+=	MCA/Stages/EntryStage.cpp
976SRCS_EXT+=	MCA/Stages/ExecuteStage.cpp
977SRCS_EXT+=	MCA/Stages/InOrderIssueStage.cpp
978SRCS_EXT+=	MCA/Stages/InstructionTables.cpp
979SRCS_EXT+=	MCA/Stages/MicroOpQueueStage.cpp
980SRCS_EXT+=	MCA/Stages/RetireStage.cpp
981SRCS_EXT+=	MCA/Stages/Stage.cpp
982SRCS_EXT+=	MCA/Support.cpp
983SRCS_EXT+=	MCA/View.cpp
984SRCS_MIW+=	ObjCopy/Archive.cpp
985SRCS_MIW+=	ObjCopy/COFF/COFFObjcopy.cpp
986SRCS_MIW+=	ObjCopy/COFF/COFFObject.cpp
987SRCS_MIW+=	ObjCopy/COFF/COFFReader.cpp
988SRCS_MIW+=	ObjCopy/COFF/COFFWriter.cpp
989SRCS_MIW+=	ObjCopy/CommonConfig.cpp
990SRCS_MIW+=	ObjCopy/ConfigManager.cpp
991SRCS_MIW+=	ObjCopy/ELF/ELFObjcopy.cpp
992SRCS_MIW+=	ObjCopy/ELF/ELFObject.cpp
993SRCS_MIW+=	ObjCopy/MachO/MachOLayoutBuilder.cpp
994SRCS_MIW+=	ObjCopy/MachO/MachOObjcopy.cpp
995SRCS_MIW+=	ObjCopy/MachO/MachOObject.cpp
996SRCS_MIW+=	ObjCopy/MachO/MachOReader.cpp
997SRCS_MIW+=	ObjCopy/MachO/MachOWriter.cpp
998SRCS_MIW+=	ObjCopy/ObjCopy.cpp
999SRCS_MIW+=	ObjCopy/XCOFF/XCOFFObjcopy.cpp
1000SRCS_MIW+=	ObjCopy/XCOFF/XCOFFReader.cpp
1001SRCS_MIW+=	ObjCopy/XCOFF/XCOFFWriter.cpp
1002SRCS_MIW+=	ObjCopy/wasm/WasmObjcopy.cpp
1003SRCS_MIW+=	ObjCopy/wasm/WasmObject.cpp
1004SRCS_MIW+=	ObjCopy/wasm/WasmReader.cpp
1005SRCS_MIW+=	ObjCopy/wasm/WasmWriter.cpp
1006SRCS_MIN+=	Object/Archive.cpp
1007SRCS_MIN+=	Object/ArchiveWriter.cpp
1008SRCS_MIN+=	Object/Binary.cpp
1009SRCS_MIW+=	Object/BuildID.cpp
1010SRCS_MIN+=	Object/COFFImportFile.cpp
1011SRCS_MIW+=	Object/COFFModuleDefinition.cpp
1012SRCS_MIN+=	Object/COFFObjectFile.cpp
1013SRCS_MIN+=	Object/Decompressor.cpp
1014SRCS_MIN+=	Object/ELF.cpp
1015SRCS_MIN+=	Object/ELFObjectFile.cpp
1016SRCS_MIN+=	Object/Error.cpp
1017SRCS_MIW+=	Object/FaultMapParser.cpp
1018SRCS_MIN+=	Object/IRObjectFile.cpp
1019SRCS_MIN+=	Object/IRSymtab.cpp
1020SRCS_MIN+=	Object/MachOObjectFile.cpp
1021SRCS_MIW+=	Object/MachOUniversal.cpp
1022SRCS_MIW+=	Object/MachOUniversalWriter.cpp
1023SRCS_MIW+=	Object/Minidump.cpp
1024SRCS_MIN+=	Object/ModuleSymbolTable.cpp
1025SRCS_EXT+=	Object/Object.cpp
1026SRCS_MIN+=	Object/ObjectFile.cpp
1027SRCS_MIW+=	Object/OffloadBinary.cpp
1028SRCS_MIN+=	Object/RecordStreamer.cpp
1029SRCS_MIW+=	Object/RelocationResolver.cpp
1030SRCS_MIW+=	Object/SymbolSize.cpp
1031SRCS_MIN+=	Object/SymbolicFile.cpp
1032SRCS_MIW+=	Object/TapiFile.cpp
1033SRCS_MIW+=	Object/TapiUniversal.cpp
1034SRCS_MIN+=	Object/WasmObjectFile.cpp
1035SRCS_MIW+=	Object/WindowsMachineFlag.cpp
1036SRCS_MIN+=	Object/WindowsResource.cpp
1037SRCS_MIN+=	Object/XCOFFObjectFile.cpp
1038SRCS_MIN+=	ObjectYAML/COFFYAML.cpp
1039SRCS_EXT+=	ObjectYAML/CodeViewYAMLDebugSections.cpp
1040SRCS_EXT+=	ObjectYAML/CodeViewYAMLSymbols.cpp
1041SRCS_EXT+=	ObjectYAML/CodeViewYAMLTypes.cpp
1042SRCS_MIN+=	ObjectYAML/DWARFYAML.cpp
1043SRCS_MIN+=	ObjectYAML/ELFYAML.cpp
1044SRCS_MIN+=	ObjectYAML/MachOYAML.cpp
1045SRCS_EXT+=	ObjectYAML/YAML.cpp
1046SRCS_MIN+=	Option/Arg.cpp
1047SRCS_MIN+=	Option/ArgList.cpp
1048SRCS_MIN+=	Option/OptTable.cpp
1049SRCS_MIN+=	Option/Option.cpp
1050SRCS_MIN+=	Passes/OptimizationLevel.cpp
1051SRCS_MIN+=	Passes/PassBuilder.cpp
1052SRCS_MIN+=	Passes/PassBuilderPipelines.cpp
1053SRCS_MIN+=	Passes/PassPlugin.cpp
1054SRCS_MIN+=	Passes/StandardInstrumentations.cpp
1055SRCS_MIN+=	ProfileData/Coverage/CoverageMapping.cpp
1056SRCS_MIN+=	ProfileData/Coverage/CoverageMappingReader.cpp
1057SRCS_MIN+=	ProfileData/Coverage/CoverageMappingWriter.cpp
1058SRCS_MIN+=	ProfileData/GCOV.cpp
1059SRCS_MIN+=	ProfileData/InstrProf.cpp
1060SRCS_MIN+=	ProfileData/InstrProfCorrelator.cpp
1061SRCS_MIN+=	ProfileData/InstrProfReader.cpp
1062SRCS_MIN+=	ProfileData/InstrProfWriter.cpp
1063SRCS_MIN+=	ProfileData/ItaniumManglingCanonicalizer.cpp
1064SRCS_MIN+=	ProfileData/MemProf.cpp
1065SRCS_COV+=	ProfileData/MemProfReader.cpp
1066SRCS_MIN+=	ProfileData/ProfileSummaryBuilder.cpp
1067SRCS_MIN+=	ProfileData/SampleProf.cpp
1068SRCS_MIN+=	ProfileData/SampleProfReader.cpp
1069SRCS_MIN+=	ProfileData/SampleProfWriter.cpp
1070SRCS_MIN+=	ProfileData/SymbolRemappingReader.cpp
1071SRCS_MIN+=	Remarks/BitstreamRemarkParser.cpp
1072SRCS_MIN+=	Remarks/BitstreamRemarkSerializer.cpp
1073SRCS_MIN+=	Remarks/RemarkFormat.cpp
1074SRCS_MIN+=	Remarks/RemarkParser.cpp
1075SRCS_MIN+=	Remarks/RemarkSerializer.cpp
1076SRCS_MIN+=	Remarks/RemarkStreamer.cpp
1077SRCS_MIN+=	Remarks/RemarkStringTable.cpp
1078SRCS_MIN+=	Remarks/YAMLRemarkParser.cpp
1079SRCS_MIN+=	Remarks/YAMLRemarkSerializer.cpp
1080SRCS_MIN+=	Support/ABIBreak.cpp
1081SRCS_MIN+=	Support/APFixedPoint.cpp
1082SRCS_MIN+=	Support/APFloat.cpp
1083SRCS_MIN+=	Support/APInt.cpp
1084SRCS_MIN+=	Support/APSInt.cpp
1085SRCS_MIN+=	Support/ARMAttributeParser.cpp
1086SRCS_MIN+=	Support/ARMBuildAttrs.cpp
1087SRCS_MIN+=	Support/ARMWinEH.cpp
1088SRCS_MIN+=	Support/Allocator.cpp
1089SRCS_MIN+=	Support/BLAKE3/blake3.c
1090.if ${TARGET_ARCH} == "amd64"
1091SRCS_MIN+=	Support/BLAKE3/blake3_avx2_x86-64_unix.S
1092SRCS_MIN+=	Support/BLAKE3/blake3_avx512_x86-64_unix.S
1093.endif
1094SRCS_MIN+=	Support/BLAKE3/blake3_dispatch.c
1095.if ${TARGET_ARCH} == "aarch64"
1096SRCS_MIN+=	Support/BLAKE3/blake3_neon.c
1097.endif
1098SRCS_MIN+=	Support/BLAKE3/blake3_portable.c
1099.if ${TARGET_ARCH} == "amd64"
1100SRCS_MIN+=	Support/BLAKE3/blake3_sse2_x86-64_unix.S
1101SRCS_MIN+=	Support/BLAKE3/blake3_sse41_x86-64_unix.S
1102.endif
1103SRCS_COV+=	Support/BalancedPartitioning.cpp
1104SRCS_MIN+=	Support/BinaryStreamError.cpp
1105SRCS_MIN+=	Support/BinaryStreamReader.cpp
1106SRCS_MIN+=	Support/BinaryStreamRef.cpp
1107SRCS_MIN+=	Support/BinaryStreamWriter.cpp
1108SRCS_MIN+=	Support/BlockFrequency.cpp
1109SRCS_MIN+=	Support/BranchProbability.cpp
1110SRCS_MIN+=	Support/BuryPointer.cpp
1111SRCS_MIW+=	Support/COM.cpp
1112SRCS_MIN+=	Support/CRC.cpp
1113SRCS_MIN+=	Support/CachePruning.cpp
1114SRCS_MIW+=	Support/Caching.cpp
1115SRCS_MIN+=	Support/Chrono.cpp
1116SRCS_MIN+=	Support/CodeGenCoverage.cpp
1117SRCS_MIN+=	Support/CommandLine.cpp
1118SRCS_MIN+=	Support/Compression.cpp
1119SRCS_MIN+=	Support/ConvertUTF.cpp
1120SRCS_MIN+=	Support/ConvertUTFWrapper.cpp
1121SRCS_MIN+=	Support/CrashRecoveryContext.cpp
1122SRCS_MIN+=	Support/DAGDeltaAlgorithm.cpp
1123SRCS_MIN+=	Support/DJB.cpp
1124SRCS_MIN+=	Support/DataExtractor.cpp
1125SRCS_MIN+=	Support/Debug.cpp
1126SRCS_MIN+=	Support/DebugCounter.cpp
1127SRCS_MIN+=	Support/DeltaAlgorithm.cpp
1128SRCS_MIN+=	Support/DivisionByConstantInfo.cpp
1129SRCS_MIN+=	Support/DynamicLibrary.cpp
1130SRCS_MIN+=	Support/ELFAttributeParser.cpp
1131SRCS_MIN+=	Support/ELFAttributes.cpp
1132SRCS_MIN+=	Support/Errno.cpp
1133SRCS_MIN+=	Support/Error.cpp
1134SRCS_MIN+=	Support/ErrorHandling.cpp
1135SRCS_MIN+=	Support/ExponentialBackoff.cpp
1136SRCS_MIN+=	Support/ExtensibleRTTI.cpp
1137SRCS_MIN+=	Support/FileCollector.cpp
1138SRCS_MIW+=	Support/FileOutputBuffer.cpp
1139SRCS_MIN+=	Support/FileUtilities.cpp
1140SRCS_MIN+=	Support/FloatingPointMode.cpp
1141SRCS_MIN+=	Support/FoldingSet.cpp
1142SRCS_MIN+=	Support/FormatVariadic.cpp
1143SRCS_MIN+=	Support/FormattedStream.cpp
1144SRCS_MIN+=	Support/GlobPattern.cpp
1145SRCS_MIN+=	Support/GraphWriter.cpp
1146SRCS_MIN+=	Support/HexagonAttributeParser.cpp
1147SRCS_MIN+=	Support/HexagonAttributes.cpp
1148SRCS_MIN+=	Support/InitLLVM.cpp
1149SRCS_MIN+=	Support/InstructionCost.cpp
1150SRCS_MIN+=	Support/IntEqClasses.cpp
1151SRCS_MIN+=	Support/IntervalMap.cpp
1152SRCS_MIN+=	Support/JSON.cpp
1153SRCS_MIN+=	Support/KnownBits.cpp
1154SRCS_MIN+=	Support/LEB128.cpp
1155SRCS_MIN+=	Support/LineIterator.cpp
1156SRCS_MIN+=	Support/Locale.cpp
1157SRCS_MIN+=	Support/LockFileManager.cpp
1158SRCS_MIN+=	Support/MD5.cpp
1159SRCS_MIW+=	Support/MSP430AttributeParser.cpp
1160SRCS_MIW+=	Support/MSP430Attributes.cpp
1161SRCS_MIN+=	Support/ManagedStatic.cpp
1162SRCS_MIN+=	Support/MathExtras.cpp
1163SRCS_MIN+=	Support/MemAlloc.cpp
1164SRCS_MIW+=	Support/Memory.cpp
1165SRCS_MIN+=	Support/MemoryBuffer.cpp
1166SRCS_MIN+=	Support/MemoryBufferRef.cpp
1167SRCS_MIN+=	Support/NativeFormatting.cpp
1168SRCS_MIN+=	Support/OptimizedStructLayout.cpp
1169SRCS_MIN+=	Support/Optional.cpp
1170SRCS_MIN+=	Support/PGOOptions.cpp
1171SRCS_EXL+=	Support/Parallel.cpp
1172SRCS_MIN+=	Support/Path.cpp
1173SRCS_MIN+=	Support/PluginLoader.cpp
1174SRCS_MIN+=	Support/PrettyStackTrace.cpp
1175SRCS_MIN+=	Support/Process.cpp
1176SRCS_MIN+=	Support/Program.cpp
1177SRCS_MIN+=	Support/RISCVAttributeParser.cpp
1178SRCS_MIN+=	Support/RISCVAttributes.cpp
1179SRCS_MIN+=	Support/RISCVISAUtils.cpp
1180SRCS_MIN+=	Support/RWMutex.cpp
1181SRCS_MIN+=	Support/RandomNumberGenerator.cpp
1182SRCS_MIN+=	Support/Regex.cpp
1183SRCS_MIN+=	Support/SHA1.cpp
1184SRCS_MIN+=	Support/SHA256.cpp
1185SRCS_MIN+=	Support/ScaledNumber.cpp
1186SRCS_MIN+=	Support/ScopedPrinter.cpp
1187SRCS_MIN+=	Support/Signals.cpp
1188SRCS_MIN+=	Support/Signposts.cpp
1189SRCS_MIN+=	Support/SipHash.cpp
1190SRCS_MIN+=	Support/SmallPtrSet.cpp
1191SRCS_MIN+=	Support/SmallVector.cpp
1192SRCS_MIN+=	Support/SourceMgr.cpp
1193SRCS_MIN+=	Support/SpecialCaseList.cpp
1194SRCS_MIN+=	Support/Statistic.cpp
1195SRCS_MIN+=	Support/StringExtras.cpp
1196SRCS_MIN+=	Support/StringMap.cpp
1197SRCS_MIN+=	Support/StringRef.cpp
1198SRCS_MIN+=	Support/StringSaver.cpp
1199SRCS_MIN+=	Support/SuffixTree.cpp
1200SRCS_MIN+=	Support/SuffixTreeNode.cpp
1201SRCS_EXT+=	Support/SystemUtils.cpp
1202SRCS_LLD+=	Support/TarWriter.cpp
1203SRCS_MIW+=	Support/ThreadPool.cpp
1204SRCS_MIN+=	Support/Threading.cpp
1205SRCS_MIN+=	Support/TimeProfiler.cpp
1206SRCS_MIN+=	Support/Timer.cpp
1207SRCS_MIN+=	Support/ToolOutputFile.cpp
1208SRCS_MIN+=	Support/Twine.cpp
1209SRCS_MIN+=	Support/TypeSize.cpp
1210SRCS_MIN+=	Support/Unicode.cpp
1211SRCS_MIN+=	Support/UnicodeCaseFold.cpp
1212SRCS_MIN+=	Support/UnicodeNameToCodepoint.cpp
1213SRCS_MIN+=	Support/UnicodeNameToCodepointGenerated.cpp
1214SRCS_MIN+=	Support/Valgrind.cpp
1215SRCS_MIN+=	Support/VersionTuple.cpp
1216SRCS_MIN+=	Support/VirtualFileSystem.cpp
1217SRCS_MIN+=	Support/Watchdog.cpp
1218SRCS_MIN+=	Support/WithColor.cpp
1219SRCS_MIN+=	Support/YAMLParser.cpp
1220SRCS_MIN+=	Support/YAMLTraits.cpp
1221SRCS_FUL+=	Support/Z3Solver.cpp
1222SRCS_MIN+=	Support/circular_raw_ostream.cpp
1223SRCS_MIN+=	Support/raw_os_ostream.cpp
1224SRCS_MIN+=	Support/raw_ostream.cpp
1225SRCS_MIN+=	Support/raw_socket_stream.cpp
1226SRCS_MIN+=	Support/regcomp.c
1227SRCS_MIN+=	Support/regerror.c
1228SRCS_MIN+=	Support/regexec.c
1229SRCS_MIN+=	Support/regfree.c
1230SRCS_MIN+=	Support/regstrlcpy.c
1231SRCS_MIN+=	Support/xxhash.cpp
1232SRCS_MIN+=	TableGen/DetailedRecordsBackend.cpp
1233SRCS_MIN+=	TableGen/Error.cpp
1234SRCS_MIN+=	TableGen/JSONBackend.cpp
1235SRCS_MIN+=	TableGen/Main.cpp
1236SRCS_MIN+=	TableGen/Record.cpp
1237SRCS_MIN+=	TableGen/SetTheory.cpp
1238SRCS_MIN+=	TableGen/StringMatcher.cpp
1239SRCS_MIN+=	TableGen/TGLexer.cpp
1240SRCS_MIN+=	TableGen/TGParser.cpp
1241SRCS_MIN+=	TableGen/TableGenBackend.cpp
1242.if ${MK_LLVM_TARGET_AARCH64} != "no"
1243SRCS_MIN+=	Target/AArch64/AArch64A53Fix835769.cpp
1244SRCS_MIN+=	Target/AArch64/AArch64A57FPLoadBalancing.cpp
1245SRCS_MIN+=	Target/AArch64/AArch64AdvSIMDScalarPass.cpp
1246SRCS_MIN+=	Target/AArch64/AArch64Arm64ECCallLowering.cpp
1247SRCS_MIN+=	Target/AArch64/AArch64AsmPrinter.cpp
1248SRCS_MIN+=	Target/AArch64/AArch64BranchTargets.cpp
1249SRCS_MIN+=	Target/AArch64/AArch64CallingConvention.cpp
1250SRCS_MIN+=	Target/AArch64/AArch64CleanupLocalDynamicTLSPass.cpp
1251SRCS_MIN+=	Target/AArch64/AArch64CollectLOH.cpp
1252SRCS_MIN+=	Target/AArch64/AArch64CompressJumpTables.cpp
1253SRCS_MIN+=	Target/AArch64/AArch64CondBrTuning.cpp
1254SRCS_MIN+=	Target/AArch64/AArch64ConditionOptimizer.cpp
1255SRCS_MIN+=	Target/AArch64/AArch64ConditionalCompares.cpp
1256SRCS_MIN+=	Target/AArch64/AArch64DeadRegisterDefinitionsPass.cpp
1257SRCS_MIN+=	Target/AArch64/AArch64ExpandImm.cpp
1258SRCS_MIN+=	Target/AArch64/AArch64ExpandPseudoInsts.cpp
1259SRCS_MIN+=	Target/AArch64/AArch64FalkorHWPFFix.cpp
1260SRCS_MIN+=	Target/AArch64/AArch64FastISel.cpp
1261SRCS_MIN+=	Target/AArch64/AArch64FrameLowering.cpp
1262SRCS_MIN+=	Target/AArch64/AArch64GlobalsTagging.cpp
1263SRCS_MIN+=	Target/AArch64/AArch64ISelDAGToDAG.cpp
1264SRCS_MIN+=	Target/AArch64/AArch64ISelLowering.cpp
1265SRCS_MIN+=	Target/AArch64/AArch64InstrInfo.cpp
1266SRCS_MIN+=	Target/AArch64/AArch64LoadStoreOptimizer.cpp
1267SRCS_MIN+=	Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
1268SRCS_MIN+=	Target/AArch64/AArch64MCInstLower.cpp
1269SRCS_MIN+=	Target/AArch64/AArch64MIPeepholeOpt.cpp
1270SRCS_MIN+=	Target/AArch64/AArch64MachineFunctionInfo.cpp
1271SRCS_MIN+=	Target/AArch64/AArch64MachineScheduler.cpp
1272SRCS_MIN+=	Target/AArch64/AArch64MacroFusion.cpp
1273SRCS_MIN+=	Target/AArch64/AArch64PBQPRegAlloc.cpp
1274SRCS_MIN+=	Target/AArch64/AArch64PointerAuth.cpp
1275SRCS_MIN+=	Target/AArch64/AArch64PostCoalescerPass.cpp
1276SRCS_MIN+=	Target/AArch64/AArch64PromoteConstant.cpp
1277SRCS_MIN+=	Target/AArch64/AArch64RedundantCopyElimination.cpp
1278SRCS_MIN+=	Target/AArch64/AArch64RegisterInfo.cpp
1279SRCS_MIN+=	Target/AArch64/AArch64SIMDInstrOpt.cpp
1280SRCS_MIN+=	Target/AArch64/AArch64SLSHardening.cpp
1281SRCS_MIN+=	Target/AArch64/AArch64SelectionDAGInfo.cpp
1282SRCS_MIN+=	Target/AArch64/AArch64SpeculationHardening.cpp
1283SRCS_MIN+=	Target/AArch64/AArch64StackTagging.cpp
1284SRCS_MIN+=	Target/AArch64/AArch64StackTaggingPreRA.cpp
1285SRCS_MIN+=	Target/AArch64/AArch64StorePairSuppress.cpp
1286SRCS_MIN+=	Target/AArch64/AArch64Subtarget.cpp
1287SRCS_MIN+=	Target/AArch64/AArch64TargetMachine.cpp
1288SRCS_MIN+=	Target/AArch64/AArch64TargetObjectFile.cpp
1289SRCS_MIN+=	Target/AArch64/AArch64TargetTransformInfo.cpp
1290SRCS_MIN+=	Target/AArch64/AsmParser/AArch64AsmParser.cpp
1291SRCS_XDW+=	Target/AArch64/Disassembler/AArch64Disassembler.cpp
1292SRCS_XDW+=	Target/AArch64/Disassembler/AArch64ExternalSymbolizer.cpp
1293SRCS_MIN+=	Target/AArch64/GISel/AArch64CallLowering.cpp
1294SRCS_MIN+=	Target/AArch64/GISel/AArch64GlobalISelUtils.cpp
1295SRCS_MIN+=	Target/AArch64/GISel/AArch64InstructionSelector.cpp
1296SRCS_MIN+=	Target/AArch64/GISel/AArch64LegalizerInfo.cpp
1297SRCS_MIN+=	Target/AArch64/GISel/AArch64O0PreLegalizerCombiner.cpp
1298SRCS_MIN+=	Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
1299SRCS_MIN+=	Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
1300SRCS_MIN+=	Target/AArch64/GISel/AArch64PostSelectOptimize.cpp
1301SRCS_MIN+=	Target/AArch64/GISel/AArch64PreLegalizerCombiner.cpp
1302SRCS_MIN+=	Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
1303SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
1304SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp
1305SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64ELFStreamer.cpp
1306SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
1307SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
1308SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64MCCodeEmitter.cpp
1309SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp
1310SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.cpp
1311SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64MachObjectWriter.cpp
1312SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64TargetStreamer.cpp
1313SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64WinCOFFObjectWriter.cpp
1314SRCS_MIN+=	Target/AArch64/MCTargetDesc/AArch64WinCOFFStreamer.cpp
1315SRCS_MIN+=	Target/AArch64/SMEABIPass.cpp
1316SRCS_MIN+=	Target/AArch64/SVEIntrinsicOpts.cpp
1317SRCS_MIN+=	Target/AArch64/TargetInfo/AArch64TargetInfo.cpp
1318SRCS_MIN+=	Target/AArch64/Utils/AArch64BaseInfo.cpp
1319SRCS_MIN+=	Target/AArch64/Utils/AArch64SMEAttributes.cpp
1320.endif # MK_LLVM_TARGET_AARCH64
1321.if ${MK_LLVM_TARGET_ARM} != "no"
1322SRCS_MIN+=	Target/ARM/A15SDOptimizer.cpp
1323SRCS_MIN+=	Target/ARM/ARMAsmPrinter.cpp
1324SRCS_MIN+=	Target/ARM/ARMBaseInstrInfo.cpp
1325SRCS_MIN+=	Target/ARM/ARMBaseRegisterInfo.cpp
1326SRCS_MIN+=	Target/ARM/ARMBasicBlockInfo.cpp
1327SRCS_MIN+=	Target/ARM/ARMBlockPlacement.cpp
1328SRCS_MIN+=	Target/ARM/ARMBranchTargets.cpp
1329SRCS_MIN+=	Target/ARM/ARMCallLowering.cpp
1330SRCS_MIN+=	Target/ARM/ARMCallingConv.cpp
1331SRCS_MIN+=	Target/ARM/ARMConstantIslandPass.cpp
1332SRCS_MIN+=	Target/ARM/ARMConstantPoolValue.cpp
1333SRCS_MIN+=	Target/ARM/ARMExpandPseudoInsts.cpp
1334SRCS_MIN+=	Target/ARM/ARMFastISel.cpp
1335SRCS_MIN+=	Target/ARM/ARMFixCortexA57AES1742098Pass.cpp
1336SRCS_MIN+=	Target/ARM/ARMFrameLowering.cpp
1337SRCS_MIN+=	Target/ARM/ARMHazardRecognizer.cpp
1338SRCS_MIN+=	Target/ARM/ARMISelDAGToDAG.cpp
1339SRCS_MIN+=	Target/ARM/ARMISelLowering.cpp
1340SRCS_MIN+=	Target/ARM/ARMInstrInfo.cpp
1341SRCS_MIN+=	Target/ARM/ARMInstructionSelector.cpp
1342SRCS_MIN+=	Target/ARM/ARMLegalizerInfo.cpp
1343SRCS_MIN+=	Target/ARM/ARMLoadStoreOptimizer.cpp
1344SRCS_MIN+=	Target/ARM/ARMLowOverheadLoops.cpp
1345SRCS_MIN+=	Target/ARM/ARMMCInstLower.cpp
1346SRCS_MIN+=	Target/ARM/ARMMachineFunctionInfo.cpp
1347SRCS_MIN+=	Target/ARM/ARMMacroFusion.cpp
1348SRCS_MIN+=	Target/ARM/ARMOptimizeBarriersPass.cpp
1349SRCS_MIN+=	Target/ARM/ARMParallelDSP.cpp
1350SRCS_MIN+=	Target/ARM/ARMRegisterBankInfo.cpp
1351SRCS_MIN+=	Target/ARM/ARMRegisterInfo.cpp
1352SRCS_MIN+=	Target/ARM/ARMSLSHardening.cpp
1353SRCS_MIN+=	Target/ARM/ARMSelectionDAGInfo.cpp
1354SRCS_MIN+=	Target/ARM/ARMSubtarget.cpp
1355SRCS_MIN+=	Target/ARM/ARMTargetMachine.cpp
1356SRCS_MIN+=	Target/ARM/ARMTargetObjectFile.cpp
1357SRCS_MIN+=	Target/ARM/ARMTargetTransformInfo.cpp
1358SRCS_MIN+=	Target/ARM/AsmParser/ARMAsmParser.cpp
1359SRCS_MIN+=	Target/ARM/Disassembler/ARMDisassembler.cpp
1360SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
1361SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMELFObjectWriter.cpp
1362SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
1363SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMInstPrinter.cpp
1364SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
1365SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp
1366SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMMCExpr.cpp
1367SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
1368SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMMachORelocationInfo.cpp
1369SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMMachObjectWriter.cpp
1370SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMTargetStreamer.cpp
1371SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp
1372SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMWinCOFFObjectWriter.cpp
1373SRCS_MIN+=	Target/ARM/MCTargetDesc/ARMWinCOFFStreamer.cpp
1374SRCS_MIN+=	Target/ARM/MLxExpansionPass.cpp
1375SRCS_MIN+=	Target/ARM/MVEGatherScatterLowering.cpp
1376SRCS_MIN+=	Target/ARM/MVELaneInterleavingPass.cpp
1377SRCS_MIN+=	Target/ARM/MVETPAndVPTOptimisationsPass.cpp
1378SRCS_MIN+=	Target/ARM/MVETailPredication.cpp
1379SRCS_MIN+=	Target/ARM/MVEVPTBlockPass.cpp
1380SRCS_MIN+=	Target/ARM/TargetInfo/ARMTargetInfo.cpp
1381SRCS_MIN+=	Target/ARM/Thumb1FrameLowering.cpp
1382SRCS_MIN+=	Target/ARM/Thumb1InstrInfo.cpp
1383SRCS_MIN+=	Target/ARM/Thumb2ITBlockPass.cpp
1384SRCS_MIN+=	Target/ARM/Thumb2InstrInfo.cpp
1385SRCS_MIN+=	Target/ARM/Thumb2SizeReduction.cpp
1386SRCS_MIN+=	Target/ARM/ThumbRegisterInfo.cpp
1387SRCS_MIN+=	Target/ARM/Utils/ARMBaseInfo.cpp
1388.endif # MK_LLVM_TARGET_ARM
1389.if ${MK_LLVM_TARGET_BPF} != "no"
1390SRCS_MIN+=	Target/BPF/AsmParser/BPFAsmParser.cpp
1391SRCS_MIN+=	Target/BPF/BPFASpaceCastSimplifyPass.cpp
1392SRCS_MIN+=	Target/BPF/BPFAbstractMemberAccess.cpp
1393SRCS_MIN+=	Target/BPF/BPFAdjustOpt.cpp
1394SRCS_MIN+=	Target/BPF/BPFAsmPrinter.cpp
1395SRCS_MIN+=	Target/BPF/BPFCheckAndAdjustIR.cpp
1396SRCS_MIN+=	Target/BPF/BPFFrameLowering.cpp
1397SRCS_MIN+=	Target/BPF/BPFIRPeephole.cpp
1398SRCS_MIN+=	Target/BPF/BPFISelDAGToDAG.cpp
1399SRCS_MIN+=	Target/BPF/BPFISelLowering.cpp
1400SRCS_MIN+=	Target/BPF/BPFInstrInfo.cpp
1401SRCS_MIN+=	Target/BPF/BPFMCInstLower.cpp
1402SRCS_MIN+=	Target/BPF/BPFMIChecking.cpp
1403SRCS_MIN+=	Target/BPF/BPFMIPeephole.cpp
1404SRCS_MIN+=	Target/BPF/BPFMISimplifyPatchable.cpp
1405SRCS_MIN+=	Target/BPF/BPFPreserveDIType.cpp
1406SRCS_MIN+=	Target/BPF/BPFPreserveStaticOffset.cpp
1407SRCS_MIN+=	Target/BPF/BPFRegisterInfo.cpp
1408SRCS_MIN+=	Target/BPF/BPFSelectionDAGInfo.cpp
1409SRCS_MIN+=	Target/BPF/BPFSubtarget.cpp
1410SRCS_MIN+=	Target/BPF/BPFTargetMachine.cpp
1411SRCS_MIN+=	Target/BPF/BTFDebug.cpp
1412SRCS_MIN+=	Target/BPF/Disassembler/BPFDisassembler.cpp
1413SRCS_MIN+=	Target/BPF/GISel/BPFCallLowering.cpp
1414SRCS_MIN+=	Target/BPF/GISel/BPFInstructionSelector.cpp
1415SRCS_MIN+=	Target/BPF/GISel/BPFLegalizerInfo.cpp
1416SRCS_MIN+=	Target/BPF/GISel/BPFRegisterBankInfo.cpp
1417SRCS_MIN+=	Target/BPF/MCTargetDesc/BPFAsmBackend.cpp
1418SRCS_MIN+=	Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
1419SRCS_MIN+=	Target/BPF/MCTargetDesc/BPFInstPrinter.cpp
1420SRCS_MIN+=	Target/BPF/MCTargetDesc/BPFMCCodeEmitter.cpp
1421SRCS_MIN+=	Target/BPF/MCTargetDesc/BPFMCTargetDesc.cpp
1422SRCS_MIN+=	Target/BPF/TargetInfo/BPFTargetInfo.cpp
1423.endif # MK_LLVM_TARGET_BPF
1424.if ${MK_LLVM_TARGET_MIPS} != "no"
1425SRCS_MIN+=	Target/Mips/AsmParser/MipsAsmParser.cpp
1426SRCS_XDW+=	Target/Mips/Disassembler/MipsDisassembler.cpp
1427SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsABIFlagsSection.cpp
1428SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsABIInfo.cpp
1429SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsAsmBackend.cpp
1430SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsELFObjectWriter.cpp
1431SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
1432SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsInstPrinter.cpp
1433SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
1434SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
1435SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsMCExpr.cpp
1436SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsMCTargetDesc.cpp
1437SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsNaClELFStreamer.cpp
1438SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsOptionRecord.cpp
1439SRCS_MIN+=	Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
1440SRCS_MIN+=	Target/Mips/MicroMipsSizeReduction.cpp
1441SRCS_MIN+=	Target/Mips/Mips16FrameLowering.cpp
1442SRCS_MIN+=	Target/Mips/Mips16HardFloat.cpp
1443SRCS_MIN+=	Target/Mips/Mips16HardFloatInfo.cpp
1444SRCS_MIN+=	Target/Mips/Mips16ISelDAGToDAG.cpp
1445SRCS_MIN+=	Target/Mips/Mips16ISelLowering.cpp
1446SRCS_MIN+=	Target/Mips/Mips16InstrInfo.cpp
1447SRCS_MIN+=	Target/Mips/Mips16RegisterInfo.cpp
1448SRCS_MIN+=	Target/Mips/MipsAnalyzeImmediate.cpp
1449SRCS_MIN+=	Target/Mips/MipsAsmPrinter.cpp
1450SRCS_MIN+=	Target/Mips/MipsBranchExpansion.cpp
1451SRCS_MIN+=	Target/Mips/MipsCCState.cpp
1452SRCS_MIN+=	Target/Mips/MipsCallLowering.cpp
1453SRCS_MIN+=	Target/Mips/MipsConstantIslandPass.cpp
1454SRCS_MIN+=	Target/Mips/MipsDelaySlotFiller.cpp
1455SRCS_MIN+=	Target/Mips/MipsExpandPseudo.cpp
1456SRCS_MIN+=	Target/Mips/MipsFastISel.cpp
1457SRCS_MIN+=	Target/Mips/MipsFrameLowering.cpp
1458SRCS_MIN+=	Target/Mips/MipsISelDAGToDAG.cpp
1459SRCS_MIN+=	Target/Mips/MipsISelLowering.cpp
1460SRCS_MIN+=	Target/Mips/MipsInstrInfo.cpp
1461SRCS_MIN+=	Target/Mips/MipsInstructionSelector.cpp
1462SRCS_MIN+=	Target/Mips/MipsLegalizerInfo.cpp
1463SRCS_MIN+=	Target/Mips/MipsMCInstLower.cpp
1464SRCS_MIN+=	Target/Mips/MipsMachineFunction.cpp
1465SRCS_MIN+=	Target/Mips/MipsModuleISelDAGToDAG.cpp
1466SRCS_MIN+=	Target/Mips/MipsMulMulBugPass.cpp
1467SRCS_MIN+=	Target/Mips/MipsOptimizePICCall.cpp
1468SRCS_MIN+=	Target/Mips/MipsOs16.cpp
1469SRCS_MIN+=	Target/Mips/MipsPostLegalizerCombiner.cpp
1470SRCS_MIN+=	Target/Mips/MipsPreLegalizerCombiner.cpp
1471SRCS_MIN+=	Target/Mips/MipsRegisterBankInfo.cpp
1472SRCS_MIN+=	Target/Mips/MipsRegisterInfo.cpp
1473SRCS_MIN+=	Target/Mips/MipsSEFrameLowering.cpp
1474SRCS_MIN+=	Target/Mips/MipsSEISelDAGToDAG.cpp
1475SRCS_MIN+=	Target/Mips/MipsSEISelLowering.cpp
1476SRCS_MIN+=	Target/Mips/MipsSEInstrInfo.cpp
1477SRCS_MIN+=	Target/Mips/MipsSERegisterInfo.cpp
1478SRCS_MIN+=	Target/Mips/MipsSubtarget.cpp
1479SRCS_MIN+=	Target/Mips/MipsTargetMachine.cpp
1480SRCS_MIN+=	Target/Mips/MipsTargetObjectFile.cpp
1481SRCS_MIN+=	Target/Mips/MipsTargetTransformInfo.cpp
1482SRCS_MIN+=	Target/Mips/TargetInfo/MipsTargetInfo.cpp
1483.endif # MK_LLVM_TARGET_MIPS
1484.if ${MK_LLVM_TARGET_POWERPC} != "no"
1485SRCS_MIN+=	Target/PowerPC/AsmParser/PPCAsmParser.cpp
1486SRCS_MIN+=	Target/PowerPC/Disassembler/PPCDisassembler.cpp
1487SRCS_MIN+=	Target/PowerPC/GISel/PPCCallLowering.cpp
1488SRCS_MIN+=	Target/PowerPC/GISel/PPCInstructionSelector.cpp
1489SRCS_MIN+=	Target/PowerPC/GISel/PPCLegalizerInfo.cpp
1490SRCS_MIN+=	Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
1491SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
1492SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
1493SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCELFStreamer.cpp
1494SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
1495SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
1496SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
1497SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCMCExpr.cpp
1498SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
1499SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCPredicates.cpp
1500SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCXCOFFObjectWriter.cpp
1501SRCS_MIN+=	Target/PowerPC/MCTargetDesc/PPCXCOFFStreamer.cpp
1502SRCS_MIN+=	Target/PowerPC/PPCAsmPrinter.cpp
1503SRCS_MIN+=	Target/PowerPC/PPCBoolRetToInt.cpp
1504SRCS_MIN+=	Target/PowerPC/PPCBranchCoalescing.cpp
1505SRCS_MIN+=	Target/PowerPC/PPCBranchSelector.cpp
1506SRCS_MIN+=	Target/PowerPC/PPCCCState.cpp
1507SRCS_MIN+=	Target/PowerPC/PPCCTRLoops.cpp
1508SRCS_MIN+=	Target/PowerPC/PPCCTRLoopsVerify.cpp
1509SRCS_MIN+=	Target/PowerPC/PPCCallingConv.cpp
1510SRCS_MIN+=	Target/PowerPC/PPCEarlyReturn.cpp
1511SRCS_MIN+=	Target/PowerPC/PPCExpandAtomicPseudoInsts.cpp
1512SRCS_MIN+=	Target/PowerPC/PPCExpandISEL.cpp
1513SRCS_MIN+=	Target/PowerPC/PPCFastISel.cpp
1514SRCS_MIN+=	Target/PowerPC/PPCFrameLowering.cpp
1515SRCS_MIN+=	Target/PowerPC/PPCGenScalarMASSEntries.cpp
1516SRCS_MIN+=	Target/PowerPC/PPCHazardRecognizers.cpp
1517SRCS_MIN+=	Target/PowerPC/PPCISelDAGToDAG.cpp
1518SRCS_MIN+=	Target/PowerPC/PPCISelLowering.cpp
1519SRCS_MIN+=	Target/PowerPC/PPCInstrInfo.cpp
1520SRCS_MIN+=	Target/PowerPC/PPCLoopInstrFormPrep.cpp
1521SRCS_MIN+=	Target/PowerPC/PPCLowerMASSVEntries.cpp
1522SRCS_MIN+=	Target/PowerPC/PPCMCInstLower.cpp
1523SRCS_MIN+=	Target/PowerPC/PPCMIPeephole.cpp
1524SRCS_MIN+=	Target/PowerPC/PPCMachineFunctionInfo.cpp
1525SRCS_MIN+=	Target/PowerPC/PPCMachineScheduler.cpp
1526SRCS_MIN+=	Target/PowerPC/PPCMacroFusion.cpp
1527SRCS_MIN+=	Target/PowerPC/PPCMergeStringPool.cpp
1528SRCS_MIN+=	Target/PowerPC/PPCPreEmitPeephole.cpp
1529SRCS_MIN+=	Target/PowerPC/PPCReduceCRLogicals.cpp
1530SRCS_MIN+=	Target/PowerPC/PPCRegisterInfo.cpp
1531SRCS_MIN+=	Target/PowerPC/PPCSubtarget.cpp
1532SRCS_MIN+=	Target/PowerPC/PPCTLSDynamicCall.cpp
1533SRCS_MIN+=	Target/PowerPC/PPCTOCRegDeps.cpp
1534SRCS_MIN+=	Target/PowerPC/PPCTargetMachine.cpp
1535SRCS_MIN+=	Target/PowerPC/PPCTargetObjectFile.cpp
1536SRCS_MIN+=	Target/PowerPC/PPCTargetTransformInfo.cpp
1537SRCS_MIN+=	Target/PowerPC/PPCVSXCopy.cpp
1538SRCS_MIN+=	Target/PowerPC/PPCVSXFMAMutate.cpp
1539SRCS_MIN+=	Target/PowerPC/PPCVSXSwapRemoval.cpp
1540SRCS_MIN+=	Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp
1541.endif # MK_LLVM_TARGET_POWERPC
1542.if ${MK_LLVM_TARGET_RISCV} != "no"
1543SRCS_MIN+=	Target/RISCV/AsmParser/RISCVAsmParser.cpp
1544SRCS_MIN+=	Target/RISCV/Disassembler/RISCVDisassembler.cpp
1545SRCS_MIN+=	Target/RISCV/GISel/RISCVCallLowering.cpp
1546SRCS_MIN+=	Target/RISCV/GISel/RISCVInstructionSelector.cpp
1547SRCS_MIN+=	Target/RISCV/GISel/RISCVLegalizerInfo.cpp
1548SRCS_MIN+=	Target/RISCV/GISel/RISCVO0PreLegalizerCombiner.cpp
1549SRCS_MIN+=	Target/RISCV/GISel/RISCVPostLegalizerCombiner.cpp
1550SRCS_MIN+=	Target/RISCV/GISel/RISCVPreLegalizerCombiner.cpp
1551SRCS_MIN+=	Target/RISCV/GISel/RISCVRegisterBankInfo.cpp
1552SRCS_EXT+=	Target/RISCV/MCA/RISCVCustomBehaviour.cpp
1553SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
1554SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
1555SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVELFObjectWriter.cpp
1556SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVELFStreamer.cpp
1557SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVInstPrinter.cpp
1558SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVMCAsmInfo.cpp
1559SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp
1560SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVMCExpr.cpp
1561SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVMCObjectFileInfo.cpp
1562SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp
1563SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVMatInt.cpp
1564SRCS_MIN+=	Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
1565SRCS_MIN+=	Target/RISCV/RISCVAsmPrinter.cpp
1566SRCS_MIN+=	Target/RISCV/RISCVCodeGenPrepare.cpp
1567SRCS_MIN+=	Target/RISCV/RISCVDeadRegisterDefinitions.cpp
1568SRCS_MIN+=	Target/RISCV/RISCVExpandAtomicPseudoInsts.cpp
1569SRCS_MIN+=	Target/RISCV/RISCVExpandPseudoInsts.cpp
1570SRCS_MIN+=	Target/RISCV/RISCVFrameLowering.cpp
1571SRCS_MIN+=	Target/RISCV/RISCVGatherScatterLowering.cpp
1572SRCS_MIN+=	Target/RISCV/RISCVISelDAGToDAG.cpp
1573SRCS_MIN+=	Target/RISCV/RISCVISelLowering.cpp
1574SRCS_MIN+=	Target/RISCV/RISCVInsertReadWriteCSR.cpp
1575SRCS_MIN+=	Target/RISCV/RISCVInsertVSETVLI.cpp
1576SRCS_MIN+=	Target/RISCV/RISCVInsertWriteVXRM.cpp
1577SRCS_MIN+=	Target/RISCV/RISCVInstrInfo.cpp
1578SRCS_MIN+=	Target/RISCV/RISCVMachineFunctionInfo.cpp
1579SRCS_MIN+=	Target/RISCV/RISCVMakeCompressible.cpp
1580SRCS_MIN+=	Target/RISCV/RISCVMergeBaseOffset.cpp
1581SRCS_MIN+=	Target/RISCV/RISCVMoveMerger.cpp
1582SRCS_MIN+=	Target/RISCV/RISCVOptWInstrs.cpp
1583SRCS_MIN+=	Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp
1584SRCS_MIN+=	Target/RISCV/RISCVPushPopOptimizer.cpp
1585SRCS_MIN+=	Target/RISCV/RISCVRedundantCopyElimination.cpp
1586SRCS_MIN+=	Target/RISCV/RISCVRegisterInfo.cpp
1587SRCS_MIN+=	Target/RISCV/RISCVSubtarget.cpp
1588SRCS_MIN+=	Target/RISCV/RISCVTargetMachine.cpp
1589SRCS_MIN+=	Target/RISCV/RISCVTargetObjectFile.cpp
1590SRCS_MIN+=	Target/RISCV/RISCVTargetTransformInfo.cpp
1591SRCS_MIN+=	Target/RISCV/RISCVVectorPeephole.cpp
1592SRCS_MIN+=	Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
1593.endif # MK_LLVM_TARGET_RISCV
1594SRCS_MIN+=	Target/Target.cpp
1595SRCS_MIN+=	Target/TargetLoweringObjectFile.cpp
1596SRCS_MIN+=	Target/TargetMachine.cpp
1597SRCS_MIN+=	Target/TargetMachineC.cpp
1598.if ${MK_LLVM_TARGET_X86} != "no"
1599SRCS_MIN+=	Target/X86/AsmParser/X86AsmParser.cpp
1600SRCS_XDW+=	Target/X86/Disassembler/X86Disassembler.cpp
1601SRCS_MIN+=	Target/X86/GISel/X86CallLowering.cpp
1602SRCS_MIN+=	Target/X86/GISel/X86InstructionSelector.cpp
1603SRCS_MIN+=	Target/X86/GISel/X86LegalizerInfo.cpp
1604SRCS_MIN+=	Target/X86/GISel/X86RegisterBankInfo.cpp
1605SRCS_EXT+=	Target/X86/MCA/X86CustomBehaviour.cpp
1606SRCS_MIN+=	Target/X86/MCTargetDesc/X86ATTInstPrinter.cpp
1607SRCS_MIN+=	Target/X86/MCTargetDesc/X86AsmBackend.cpp
1608SRCS_MIN+=	Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp
1609SRCS_MIN+=	Target/X86/MCTargetDesc/X86EncodingOptimization.cpp
1610SRCS_MIN+=	Target/X86/MCTargetDesc/X86InstComments.cpp
1611SRCS_MIN+=	Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp
1612SRCS_MIN+=	Target/X86/MCTargetDesc/X86IntelInstPrinter.cpp
1613SRCS_MIN+=	Target/X86/MCTargetDesc/X86MCAsmInfo.cpp
1614SRCS_MIN+=	Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp
1615SRCS_MIN+=	Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
1616SRCS_MIN+=	Target/X86/MCTargetDesc/X86MachObjectWriter.cpp
1617SRCS_MIN+=	Target/X86/MCTargetDesc/X86MnemonicTables.cpp
1618SRCS_MIN+=	Target/X86/MCTargetDesc/X86ShuffleDecode.cpp
1619SRCS_MIN+=	Target/X86/MCTargetDesc/X86WinCOFFObjectWriter.cpp
1620SRCS_MIN+=	Target/X86/MCTargetDesc/X86WinCOFFStreamer.cpp
1621SRCS_MIN+=	Target/X86/MCTargetDesc/X86WinCOFFTargetStreamer.cpp
1622SRCS_MIN+=	Target/X86/TargetInfo/X86TargetInfo.cpp
1623SRCS_MIN+=	Target/X86/X86ArgumentStackSlotRebase.cpp
1624SRCS_MIN+=	Target/X86/X86AsmPrinter.cpp
1625SRCS_MIN+=	Target/X86/X86AvoidStoreForwardingBlocks.cpp
1626SRCS_MIN+=	Target/X86/X86AvoidTrailingCall.cpp
1627SRCS_MIN+=	Target/X86/X86CallFrameOptimization.cpp
1628SRCS_MIN+=	Target/X86/X86CallingConv.cpp
1629SRCS_MIN+=	Target/X86/X86CmovConversion.cpp
1630SRCS_MIN+=	Target/X86/X86CodeGenPassBuilder.cpp
1631SRCS_MIN+=	Target/X86/X86CompressEVEX.cpp
1632SRCS_MIN+=	Target/X86/X86DiscriminateMemOps.cpp
1633SRCS_MIN+=	Target/X86/X86DomainReassignment.cpp
1634SRCS_MIN+=	Target/X86/X86DynAllocaExpander.cpp
1635SRCS_MIN+=	Target/X86/X86ExpandPseudo.cpp
1636SRCS_MIN+=	Target/X86/X86FastISel.cpp
1637SRCS_MIN+=	Target/X86/X86FastPreTileConfig.cpp
1638SRCS_MIN+=	Target/X86/X86FastTileConfig.cpp
1639SRCS_MIN+=	Target/X86/X86FixupBWInsts.cpp
1640SRCS_MIN+=	Target/X86/X86FixupInstTuning.cpp
1641SRCS_MIN+=	Target/X86/X86FixupLEAs.cpp
1642SRCS_MIN+=	Target/X86/X86FixupSetCC.cpp
1643SRCS_MIN+=	Target/X86/X86FixupVectorConstants.cpp
1644SRCS_MIN+=	Target/X86/X86FlagsCopyLowering.cpp
1645SRCS_MIN+=	Target/X86/X86FloatingPoint.cpp
1646SRCS_MIN+=	Target/X86/X86FrameLowering.cpp
1647SRCS_MIN+=	Target/X86/X86ISelDAGToDAG.cpp
1648SRCS_MIN+=	Target/X86/X86ISelLowering.cpp
1649SRCS_MIN+=	Target/X86/X86ISelLoweringCall.cpp
1650SRCS_MIN+=	Target/X86/X86IndirectBranchTracking.cpp
1651SRCS_MIN+=	Target/X86/X86IndirectThunks.cpp
1652SRCS_MIN+=	Target/X86/X86InsertPrefetch.cpp
1653SRCS_MIN+=	Target/X86/X86InsertWait.cpp
1654SRCS_MIN+=	Target/X86/X86InstCombineIntrinsic.cpp
1655SRCS_MIN+=	Target/X86/X86InstrFMA3Info.cpp
1656SRCS_MIN+=	Target/X86/X86InstrFoldTables.cpp
1657SRCS_MIN+=	Target/X86/X86InstrInfo.cpp
1658SRCS_MIN+=	Target/X86/X86InterleavedAccess.cpp
1659SRCS_MIN+=	Target/X86/X86LoadValueInjectionLoadHardening.cpp
1660SRCS_MIN+=	Target/X86/X86LoadValueInjectionRetHardening.cpp
1661SRCS_MIN+=	Target/X86/X86LowerAMXIntrinsics.cpp
1662SRCS_MIN+=	Target/X86/X86LowerAMXType.cpp
1663SRCS_MIN+=	Target/X86/X86LowerTileCopy.cpp
1664SRCS_MIN+=	Target/X86/X86MCInstLower.cpp
1665SRCS_MIN+=	Target/X86/X86MachineFunctionInfo.cpp
1666SRCS_MIN+=	Target/X86/X86MacroFusion.cpp
1667SRCS_MIN+=	Target/X86/X86OptimizeLEAs.cpp
1668SRCS_MIN+=	Target/X86/X86PadShortFunction.cpp
1669SRCS_MIN+=	Target/X86/X86PartialReduction.cpp
1670SRCS_MIN+=	Target/X86/X86PreTileConfig.cpp
1671SRCS_MIN+=	Target/X86/X86RegisterInfo.cpp
1672SRCS_MIN+=	Target/X86/X86ReturnThunks.cpp
1673SRCS_MIN+=	Target/X86/X86SelectionDAGInfo.cpp
1674SRCS_MIN+=	Target/X86/X86ShuffleDecodeConstantPool.cpp
1675SRCS_MIN+=	Target/X86/X86SpeculativeExecutionSideEffectSuppression.cpp
1676SRCS_MIN+=	Target/X86/X86SpeculativeLoadHardening.cpp
1677SRCS_MIN+=	Target/X86/X86Subtarget.cpp
1678SRCS_MIN+=	Target/X86/X86TargetMachine.cpp
1679SRCS_MIN+=	Target/X86/X86TargetObjectFile.cpp
1680SRCS_MIN+=	Target/X86/X86TargetTransformInfo.cpp
1681SRCS_MIN+=	Target/X86/X86TileConfig.cpp
1682SRCS_MIN+=	Target/X86/X86VZeroUpper.cpp
1683SRCS_MIN+=	Target/X86/X86WinEHState.cpp
1684SRCS_MIN+=	Target/X86/X86WinFixupBufferSecurityCheck.cpp
1685.endif # MK_LLVM_TARGET_X86
1686SRCS_MIN+=	TargetParser/AArch64TargetParser.cpp
1687SRCS_MIN+=	TargetParser/ARMTargetParser.cpp
1688SRCS_MIN+=	TargetParser/ARMTargetParserCommon.cpp
1689SRCS_MIN+=	TargetParser/CSKYTargetParser.cpp
1690SRCS_MIN+=	TargetParser/Host.cpp
1691SRCS_MIN+=	TargetParser/LoongArchTargetParser.cpp
1692SRCS_MIN+=	TargetParser/RISCVISAInfo.cpp
1693SRCS_MIN+=	TargetParser/RISCVTargetParser.cpp
1694SRCS_MIN+=	TargetParser/SubtargetFeature.cpp
1695SRCS_MIN+=	TargetParser/TargetParser.cpp
1696SRCS_MIN+=	TargetParser/Triple.cpp
1697SRCS_MIN+=	TargetParser/X86TargetParser.cpp
1698SRCS_MIW+=	TextAPI/Architecture.cpp
1699SRCS_MIW+=	TextAPI/ArchitectureSet.cpp
1700SRCS_MIW+=	TextAPI/BinaryReader/DylibReader.cpp
1701SRCS_MIW+=	TextAPI/InterfaceFile.cpp
1702SRCS_MIW+=	TextAPI/PackedVersion.cpp
1703SRCS_MIW+=	TextAPI/Platform.cpp
1704SRCS_MIW+=	TextAPI/RecordVisitor.cpp
1705SRCS_MIW+=	TextAPI/Symbol.cpp
1706SRCS_MIW+=	TextAPI/SymbolSet.cpp
1707SRCS_MIW+=	TextAPI/Target.cpp
1708SRCS_MIW+=	TextAPI/TextAPIError.cpp
1709SRCS_MIW+=	TextAPI/TextStub.cpp
1710SRCS_MIW+=	TextAPI/TextStubCommon.cpp
1711SRCS_MIW+=	TextAPI/TextStubV5.cpp
1712SRCS_MIW+=	TextAPI/Utils.cpp
1713SRCS_MIN+=	ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
1714SRCS_MIW+=	ToolDrivers/llvm-lib/LibDriver.cpp
1715SRCS_MIN+=	Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
1716SRCS_MIN+=	Transforms/AggressiveInstCombine/TruncInstCombine.cpp
1717SRCS_MIN+=	Transforms/CFGuard/CFGuard.cpp
1718SRCS_MIN+=	Transforms/Coroutines/CoroCleanup.cpp
1719SRCS_MIN+=	Transforms/Coroutines/CoroConditionalWrapper.cpp
1720SRCS_MIN+=	Transforms/Coroutines/CoroEarly.cpp
1721SRCS_MIN+=	Transforms/Coroutines/CoroElide.cpp
1722SRCS_MIN+=	Transforms/Coroutines/CoroFrame.cpp
1723SRCS_MIN+=	Transforms/Coroutines/CoroSplit.cpp
1724SRCS_MIN+=	Transforms/Coroutines/Coroutines.cpp
1725SRCS_MIN+=	Transforms/HipStdPar/HipStdPar.cpp
1726SRCS_MIN+=	Transforms/IPO/AlwaysInliner.cpp
1727SRCS_MIN+=	Transforms/IPO/Annotation2Metadata.cpp
1728SRCS_MIN+=	Transforms/IPO/ArgumentPromotion.cpp
1729SRCS_MIN+=	Transforms/IPO/Attributor.cpp
1730SRCS_MIN+=	Transforms/IPO/AttributorAttributes.cpp
1731SRCS_MIN+=	Transforms/IPO/BarrierNoopPass.cpp
1732SRCS_MIN+=	Transforms/IPO/BlockExtractor.cpp
1733SRCS_MIN+=	Transforms/IPO/CalledValuePropagation.cpp
1734SRCS_MIN+=	Transforms/IPO/ConstantMerge.cpp
1735SRCS_MIN+=	Transforms/IPO/CrossDSOCFI.cpp
1736SRCS_MIN+=	Transforms/IPO/DeadArgumentElimination.cpp
1737SRCS_MIN+=	Transforms/IPO/ElimAvailExtern.cpp
1738SRCS_MIN+=	Transforms/IPO/EmbedBitcodePass.cpp
1739SRCS_MIN+=	Transforms/IPO/ExpandVariadics.cpp
1740SRCS_MIN+=	Transforms/IPO/ExtractGV.cpp
1741SRCS_MIN+=	Transforms/IPO/ForceFunctionAttrs.cpp
1742SRCS_MIN+=	Transforms/IPO/FunctionAttrs.cpp
1743SRCS_MIN+=	Transforms/IPO/FunctionImport.cpp
1744SRCS_MIN+=	Transforms/IPO/FunctionSpecialization.cpp
1745SRCS_MIN+=	Transforms/IPO/GlobalDCE.cpp
1746SRCS_MIN+=	Transforms/IPO/GlobalOpt.cpp
1747SRCS_MIN+=	Transforms/IPO/GlobalSplit.cpp
1748SRCS_MIN+=	Transforms/IPO/HotColdSplitting.cpp
1749SRCS_EXT+=	Transforms/IPO/IPO.cpp
1750SRCS_MIN+=	Transforms/IPO/IROutliner.cpp
1751SRCS_MIN+=	Transforms/IPO/InferFunctionAttrs.cpp
1752SRCS_MIN+=	Transforms/IPO/Inliner.cpp
1753SRCS_MIN+=	Transforms/IPO/Internalize.cpp
1754SRCS_MIN+=	Transforms/IPO/LoopExtractor.cpp
1755SRCS_MIN+=	Transforms/IPO/LowerTypeTests.cpp
1756SRCS_MIN+=	Transforms/IPO/MemProfContextDisambiguation.cpp
1757SRCS_MIN+=	Transforms/IPO/MergeFunctions.cpp
1758SRCS_MIN+=	Transforms/IPO/ModuleInliner.cpp
1759SRCS_MIN+=	Transforms/IPO/OpenMPOpt.cpp
1760SRCS_MIN+=	Transforms/IPO/PartialInlining.cpp
1761SRCS_MIN+=	Transforms/IPO/SCCP.cpp
1762SRCS_MIN+=	Transforms/IPO/SampleContextTracker.cpp
1763SRCS_MIN+=	Transforms/IPO/SampleProfile.cpp
1764SRCS_MIN+=	Transforms/IPO/SampleProfileMatcher.cpp
1765SRCS_MIN+=	Transforms/IPO/SampleProfileProbe.cpp
1766SRCS_MIN+=	Transforms/IPO/StripDeadPrototypes.cpp
1767SRCS_MIN+=	Transforms/IPO/StripSymbols.cpp
1768SRCS_MIN+=	Transforms/IPO/SyntheticCountsPropagation.cpp
1769SRCS_MIN+=	Transforms/IPO/ThinLTOBitcodeWriter.cpp
1770SRCS_MIN+=	Transforms/IPO/WholeProgramDevirt.cpp
1771SRCS_MIN+=	Transforms/InstCombine/InstCombineAddSub.cpp
1772SRCS_MIN+=	Transforms/InstCombine/InstCombineAndOrXor.cpp
1773SRCS_MIN+=	Transforms/InstCombine/InstCombineAtomicRMW.cpp
1774SRCS_MIN+=	Transforms/InstCombine/InstCombineCalls.cpp
1775SRCS_MIN+=	Transforms/InstCombine/InstCombineCasts.cpp
1776SRCS_MIN+=	Transforms/InstCombine/InstCombineCompares.cpp
1777SRCS_MIN+=	Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
1778SRCS_MIN+=	Transforms/InstCombine/InstCombineMulDivRem.cpp
1779SRCS_MIN+=	Transforms/InstCombine/InstCombineNegator.cpp
1780SRCS_MIN+=	Transforms/InstCombine/InstCombinePHI.cpp
1781SRCS_MIN+=	Transforms/InstCombine/InstCombineSelect.cpp
1782SRCS_MIN+=	Transforms/InstCombine/InstCombineShifts.cpp
1783SRCS_MIN+=	Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
1784SRCS_MIN+=	Transforms/InstCombine/InstCombineVectorOps.cpp
1785SRCS_MIN+=	Transforms/InstCombine/InstructionCombining.cpp
1786SRCS_MIN+=	Transforms/Instrumentation/AddressSanitizer.cpp
1787SRCS_MIN+=	Transforms/Instrumentation/BlockCoverageInference.cpp
1788SRCS_MIN+=	Transforms/Instrumentation/BoundsChecking.cpp
1789SRCS_MIN+=	Transforms/Instrumentation/CGProfile.cpp
1790SRCS_MIN+=	Transforms/Instrumentation/ControlHeightReduction.cpp
1791SRCS_MIN+=	Transforms/Instrumentation/DataFlowSanitizer.cpp
1792SRCS_MIN+=	Transforms/Instrumentation/GCOVProfiling.cpp
1793SRCS_MIN+=	Transforms/Instrumentation/HWAddressSanitizer.cpp
1794SRCS_MIN+=	Transforms/Instrumentation/IndirectCallPromotion.cpp
1795SRCS_MIN+=	Transforms/Instrumentation/InstrOrderFile.cpp
1796SRCS_MIN+=	Transforms/Instrumentation/InstrProfiling.cpp
1797SRCS_MIN+=	Transforms/Instrumentation/Instrumentation.cpp
1798SRCS_MIN+=	Transforms/Instrumentation/KCFI.cpp
1799SRCS_MIN+=	Transforms/Instrumentation/LowerAllowCheckPass.cpp
1800SRCS_MIN+=	Transforms/Instrumentation/MemProfiler.cpp
1801SRCS_MIN+=	Transforms/Instrumentation/MemorySanitizer.cpp
1802SRCS_MIN+=	Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
1803SRCS_MIN+=	Transforms/Instrumentation/PGOCtxProfLowering.cpp
1804SRCS_MIN+=	Transforms/Instrumentation/PGOForceFunctionAttrs.cpp
1805SRCS_MIN+=	Transforms/Instrumentation/PGOInstrumentation.cpp
1806SRCS_MIN+=	Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
1807SRCS_MIN+=	Transforms/Instrumentation/PoisonChecking.cpp
1808SRCS_MIN+=	Transforms/Instrumentation/SanitizerBinaryMetadata.cpp
1809SRCS_MIN+=	Transforms/Instrumentation/SanitizerCoverage.cpp
1810SRCS_MIN+=	Transforms/Instrumentation/ThreadSanitizer.cpp
1811SRCS_MIN+=	Transforms/Instrumentation/ValueProfileCollector.cpp
1812SRCS_MIN+=	Transforms/ObjCARC/DependencyAnalysis.cpp
1813SRCS_MIN+=	Transforms/ObjCARC/ObjCARC.cpp
1814SRCS_MIN+=	Transforms/ObjCARC/ObjCARCAPElim.cpp
1815SRCS_MIN+=	Transforms/ObjCARC/ObjCARCContract.cpp
1816SRCS_MIN+=	Transforms/ObjCARC/ObjCARCExpand.cpp
1817SRCS_MIN+=	Transforms/ObjCARC/ObjCARCOpts.cpp
1818SRCS_MIN+=	Transforms/ObjCARC/ProvenanceAnalysis.cpp
1819SRCS_MIN+=	Transforms/ObjCARC/ProvenanceAnalysisEvaluator.cpp
1820SRCS_MIN+=	Transforms/ObjCARC/PtrState.cpp
1821SRCS_MIN+=	Transforms/Scalar/ADCE.cpp
1822SRCS_MIN+=	Transforms/Scalar/AlignmentFromAssumptions.cpp
1823SRCS_MIN+=	Transforms/Scalar/AnnotationRemarks.cpp
1824SRCS_MIN+=	Transforms/Scalar/BDCE.cpp
1825SRCS_MIN+=	Transforms/Scalar/CallSiteSplitting.cpp
1826SRCS_MIN+=	Transforms/Scalar/ConstantHoisting.cpp
1827SRCS_MIN+=	Transforms/Scalar/ConstraintElimination.cpp
1828SRCS_MIN+=	Transforms/Scalar/CorrelatedValuePropagation.cpp
1829SRCS_MIN+=	Transforms/Scalar/DCE.cpp
1830SRCS_MIN+=	Transforms/Scalar/DFAJumpThreading.cpp
1831SRCS_MIN+=	Transforms/Scalar/DeadStoreElimination.cpp
1832SRCS_MIN+=	Transforms/Scalar/DivRemPairs.cpp
1833SRCS_MIN+=	Transforms/Scalar/EarlyCSE.cpp
1834SRCS_MIN+=	Transforms/Scalar/FlattenCFGPass.cpp
1835SRCS_MIN+=	Transforms/Scalar/Float2Int.cpp
1836SRCS_MIN+=	Transforms/Scalar/GVN.cpp
1837SRCS_MIN+=	Transforms/Scalar/GVNHoist.cpp
1838SRCS_MIN+=	Transforms/Scalar/GVNSink.cpp
1839SRCS_MIN+=	Transforms/Scalar/GuardWidening.cpp
1840SRCS_MIN+=	Transforms/Scalar/IVUsersPrinter.cpp
1841SRCS_MIN+=	Transforms/Scalar/IndVarSimplify.cpp
1842SRCS_MIN+=	Transforms/Scalar/InductiveRangeCheckElimination.cpp
1843SRCS_MIN+=	Transforms/Scalar/InferAddressSpaces.cpp
1844SRCS_MIN+=	Transforms/Scalar/InferAlignment.cpp
1845SRCS_MIN+=	Transforms/Scalar/InstSimplifyPass.cpp
1846SRCS_MIN+=	Transforms/Scalar/JumpTableToSwitch.cpp
1847SRCS_MIN+=	Transforms/Scalar/JumpThreading.cpp
1848SRCS_MIN+=	Transforms/Scalar/LICM.cpp
1849SRCS_MIN+=	Transforms/Scalar/LoopAccessAnalysisPrinter.cpp
1850SRCS_MIN+=	Transforms/Scalar/LoopBoundSplit.cpp
1851SRCS_MIN+=	Transforms/Scalar/LoopDataPrefetch.cpp
1852SRCS_MIN+=	Transforms/Scalar/LoopDeletion.cpp
1853SRCS_MIN+=	Transforms/Scalar/LoopDistribute.cpp
1854SRCS_MIN+=	Transforms/Scalar/LoopFlatten.cpp
1855SRCS_MIN+=	Transforms/Scalar/LoopFuse.cpp
1856SRCS_MIN+=	Transforms/Scalar/LoopIdiomRecognize.cpp
1857SRCS_MIN+=	Transforms/Scalar/LoopInstSimplify.cpp
1858SRCS_MIN+=	Transforms/Scalar/LoopInterchange.cpp
1859SRCS_MIN+=	Transforms/Scalar/LoopLoadElimination.cpp
1860SRCS_MIN+=	Transforms/Scalar/LoopPassManager.cpp
1861SRCS_MIN+=	Transforms/Scalar/LoopPredication.cpp
1862SRCS_MIN+=	Transforms/Scalar/LoopRotation.cpp
1863SRCS_MIN+=	Transforms/Scalar/LoopSimplifyCFG.cpp
1864SRCS_MIN+=	Transforms/Scalar/LoopSink.cpp
1865SRCS_MIN+=	Transforms/Scalar/LoopStrengthReduce.cpp
1866SRCS_MIN+=	Transforms/Scalar/LoopUnrollAndJamPass.cpp
1867SRCS_MIN+=	Transforms/Scalar/LoopUnrollPass.cpp
1868SRCS_MIN+=	Transforms/Scalar/LoopVersioningLICM.cpp
1869SRCS_MIN+=	Transforms/Scalar/LowerAtomicPass.cpp
1870SRCS_MIN+=	Transforms/Scalar/LowerConstantIntrinsics.cpp
1871SRCS_MIN+=	Transforms/Scalar/LowerExpectIntrinsic.cpp
1872SRCS_MIN+=	Transforms/Scalar/LowerGuardIntrinsic.cpp
1873SRCS_MIN+=	Transforms/Scalar/LowerMatrixIntrinsics.cpp
1874SRCS_MIN+=	Transforms/Scalar/LowerWidenableCondition.cpp
1875SRCS_MIN+=	Transforms/Scalar/MakeGuardsExplicit.cpp
1876SRCS_MIN+=	Transforms/Scalar/MemCpyOptimizer.cpp
1877SRCS_MIN+=	Transforms/Scalar/MergeICmps.cpp
1878SRCS_MIN+=	Transforms/Scalar/MergedLoadStoreMotion.cpp
1879SRCS_MIN+=	Transforms/Scalar/NaryReassociate.cpp
1880SRCS_MIN+=	Transforms/Scalar/NewGVN.cpp
1881SRCS_MIN+=	Transforms/Scalar/PartiallyInlineLibCalls.cpp
1882SRCS_MIN+=	Transforms/Scalar/PlaceSafepoints.cpp
1883SRCS_MIN+=	Transforms/Scalar/Reassociate.cpp
1884SRCS_MIN+=	Transforms/Scalar/Reg2Mem.cpp
1885SRCS_MIN+=	Transforms/Scalar/RewriteStatepointsForGC.cpp
1886SRCS_MIN+=	Transforms/Scalar/SCCP.cpp
1887SRCS_MIN+=	Transforms/Scalar/SROA.cpp
1888SRCS_EXT+=	Transforms/Scalar/Scalar.cpp
1889SRCS_MIN+=	Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
1890SRCS_MIN+=	Transforms/Scalar/Scalarizer.cpp
1891SRCS_MIN+=	Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
1892SRCS_MIN+=	Transforms/Scalar/SimpleLoopUnswitch.cpp
1893SRCS_MIN+=	Transforms/Scalar/SimplifyCFGPass.cpp
1894SRCS_MIN+=	Transforms/Scalar/Sink.cpp
1895SRCS_MIN+=	Transforms/Scalar/SpeculativeExecution.cpp
1896SRCS_MIN+=	Transforms/Scalar/StraightLineStrengthReduce.cpp
1897SRCS_MIN+=	Transforms/Scalar/StructurizeCFG.cpp
1898SRCS_MIN+=	Transforms/Scalar/TLSVariableHoist.cpp
1899SRCS_MIN+=	Transforms/Scalar/TailRecursionElimination.cpp
1900SRCS_MIN+=	Transforms/Scalar/WarnMissedTransforms.cpp
1901SRCS_MIN+=	Transforms/Utils/AMDGPUEmitPrintf.cpp
1902SRCS_MIN+=	Transforms/Utils/ASanStackFrameLayout.cpp
1903SRCS_MIN+=	Transforms/Utils/AddDiscriminators.cpp
1904SRCS_MIN+=	Transforms/Utils/AssumeBundleBuilder.cpp
1905SRCS_MIN+=	Transforms/Utils/BasicBlockUtils.cpp
1906SRCS_MIN+=	Transforms/Utils/BreakCriticalEdges.cpp
1907SRCS_MIN+=	Transforms/Utils/BuildLibCalls.cpp
1908SRCS_MIN+=	Transforms/Utils/BypassSlowDivision.cpp
1909SRCS_MIN+=	Transforms/Utils/CallGraphUpdater.cpp
1910SRCS_MIN+=	Transforms/Utils/CallPromotionUtils.cpp
1911SRCS_MIN+=	Transforms/Utils/CanonicalizeAliases.cpp
1912SRCS_MIN+=	Transforms/Utils/CanonicalizeFreezeInLoops.cpp
1913SRCS_MIN+=	Transforms/Utils/CloneFunction.cpp
1914SRCS_MIN+=	Transforms/Utils/CloneModule.cpp
1915SRCS_MIN+=	Transforms/Utils/CodeExtractor.cpp
1916SRCS_MIN+=	Transforms/Utils/CodeLayout.cpp
1917SRCS_MIN+=	Transforms/Utils/CodeMoverUtils.cpp
1918SRCS_MIN+=	Transforms/Utils/CountVisits.cpp
1919SRCS_MIN+=	Transforms/Utils/CtorUtils.cpp
1920SRCS_MIN+=	Transforms/Utils/DXILUpgrade.cpp
1921SRCS_MIN+=	Transforms/Utils/Debugify.cpp
1922SRCS_MIN+=	Transforms/Utils/DemoteRegToStack.cpp
1923SRCS_MIN+=	Transforms/Utils/EntryExitInstrumenter.cpp
1924SRCS_MIN+=	Transforms/Utils/EscapeEnumerator.cpp
1925SRCS_MIN+=	Transforms/Utils/Evaluator.cpp
1926SRCS_MIN+=	Transforms/Utils/FixIrreducible.cpp
1927SRCS_MIN+=	Transforms/Utils/FlattenCFG.cpp
1928SRCS_MIN+=	Transforms/Utils/FunctionComparator.cpp
1929SRCS_MIN+=	Transforms/Utils/FunctionImportUtils.cpp
1930SRCS_MIN+=	Transforms/Utils/GlobalStatus.cpp
1931SRCS_MIN+=	Transforms/Utils/GuardUtils.cpp
1932SRCS_MIN+=	Transforms/Utils/HelloWorld.cpp
1933SRCS_MIN+=	Transforms/Utils/InjectTLIMappings.cpp
1934SRCS_MIN+=	Transforms/Utils/InlineFunction.cpp
1935SRCS_MIN+=	Transforms/Utils/InstructionNamer.cpp
1936SRCS_MIN+=	Transforms/Utils/IntegerDivision.cpp
1937SRCS_MIN+=	Transforms/Utils/LCSSA.cpp
1938SRCS_MIN+=	Transforms/Utils/LibCallsShrinkWrap.cpp
1939SRCS_MIN+=	Transforms/Utils/Local.cpp
1940SRCS_MIN+=	Transforms/Utils/LoopConstrainer.cpp
1941SRCS_MIN+=	Transforms/Utils/LoopPeel.cpp
1942SRCS_MIN+=	Transforms/Utils/LoopRotationUtils.cpp
1943SRCS_MIN+=	Transforms/Utils/LoopSimplify.cpp
1944SRCS_MIN+=	Transforms/Utils/LoopUnroll.cpp
1945SRCS_MIN+=	Transforms/Utils/LoopUnrollAndJam.cpp
1946SRCS_MIN+=	Transforms/Utils/LoopUnrollRuntime.cpp
1947SRCS_MIN+=	Transforms/Utils/LoopUtils.cpp
1948SRCS_MIN+=	Transforms/Utils/LoopVersioning.cpp
1949SRCS_MIN+=	Transforms/Utils/LowerAtomic.cpp
1950SRCS_MIN+=	Transforms/Utils/LowerGlobalDtors.cpp
1951SRCS_MIN+=	Transforms/Utils/LowerIFunc.cpp
1952SRCS_MIN+=	Transforms/Utils/LowerInvoke.cpp
1953SRCS_MIN+=	Transforms/Utils/LowerMemIntrinsics.cpp
1954SRCS_MIN+=	Transforms/Utils/LowerSwitch.cpp
1955SRCS_MIN+=	Transforms/Utils/MatrixUtils.cpp
1956SRCS_MIN+=	Transforms/Utils/Mem2Reg.cpp
1957SRCS_MIN+=	Transforms/Utils/MemoryOpRemark.cpp
1958SRCS_MIN+=	Transforms/Utils/MemoryTaggingSupport.cpp
1959SRCS_MIN+=	Transforms/Utils/MetaRenamer.cpp
1960SRCS_MIN+=	Transforms/Utils/MisExpect.cpp
1961SRCS_MIN+=	Transforms/Utils/ModuleUtils.cpp
1962SRCS_MIN+=	Transforms/Utils/MoveAutoInit.cpp
1963SRCS_MIN+=	Transforms/Utils/NameAnonGlobals.cpp
1964SRCS_MIN+=	Transforms/Utils/PredicateInfo.cpp
1965SRCS_MIN+=	Transforms/Utils/PromoteMemoryToRegister.cpp
1966SRCS_MIN+=	Transforms/Utils/RelLookupTableConverter.cpp
1967SRCS_MIN+=	Transforms/Utils/SCCPSolver.cpp
1968SRCS_MIN+=	Transforms/Utils/SSAUpdater.cpp
1969SRCS_MIN+=	Transforms/Utils/SSAUpdaterBulk.cpp
1970SRCS_MIN+=	Transforms/Utils/SampleProfileInference.cpp
1971SRCS_MIN+=	Transforms/Utils/SampleProfileLoaderBaseUtil.cpp
1972SRCS_MIN+=	Transforms/Utils/SanitizerStats.cpp
1973SRCS_MIN+=	Transforms/Utils/ScalarEvolutionExpander.cpp
1974SRCS_MIN+=	Transforms/Utils/SimplifyCFG.cpp
1975SRCS_MIN+=	Transforms/Utils/SimplifyIndVar.cpp
1976SRCS_MIN+=	Transforms/Utils/SimplifyLibCalls.cpp
1977SRCS_MIN+=	Transforms/Utils/SizeOpts.cpp
1978SRCS_MIN+=	Transforms/Utils/SplitModule.cpp
1979SRCS_MIN+=	Transforms/Utils/StripGCRelocates.cpp
1980SRCS_MIN+=	Transforms/Utils/StripNonLineTableDebugInfo.cpp
1981SRCS_MIN+=	Transforms/Utils/SymbolRewriter.cpp
1982SRCS_MIN+=	Transforms/Utils/UnifyFunctionExitNodes.cpp
1983SRCS_MIN+=	Transforms/Utils/UnifyLoopExits.cpp
1984SRCS_EXT+=	Transforms/Utils/Utils.cpp
1985SRCS_MIN+=	Transforms/Utils/VNCoercion.cpp
1986SRCS_MIN+=	Transforms/Utils/ValueMapper.cpp
1987SRCS_MIN+=	Transforms/Vectorize/LoadStoreVectorizer.cpp
1988SRCS_MIN+=	Transforms/Vectorize/LoopIdiomVectorize.cpp
1989SRCS_MIN+=	Transforms/Vectorize/LoopVectorizationLegality.cpp
1990SRCS_MIN+=	Transforms/Vectorize/LoopVectorize.cpp
1991SRCS_MIN+=	Transforms/Vectorize/SLPVectorizer.cpp
1992SRCS_MIN+=	Transforms/Vectorize/VPlan.cpp
1993SRCS_MIN+=	Transforms/Vectorize/VPlanAnalysis.cpp
1994SRCS_MIN+=	Transforms/Vectorize/VPlanHCFGBuilder.cpp
1995SRCS_MIN+=	Transforms/Vectorize/VPlanRecipes.cpp
1996SRCS_MIN+=	Transforms/Vectorize/VPlanTransforms.cpp
1997SRCS_MIN+=	Transforms/Vectorize/VPlanVerifier.cpp
1998SRCS_MIN+=	Transforms/Vectorize/VectorCombine.cpp
1999SRCS_EXT+=	Transforms/Vectorize/Vectorize.cpp
2000SRCS_MIN+=	WindowsDriver/MSVCPaths.cpp
2001SRCS_EXT+=	XRay/BlockIndexer.cpp
2002SRCS_EXT+=	XRay/BlockVerifier.cpp
2003SRCS_EXT+=	XRay/FDRRecordProducer.cpp
2004SRCS_EXT+=	XRay/FDRRecords.cpp
2005SRCS_EXT+=	XRay/FDRTraceExpander.cpp
2006SRCS_EXT+=	XRay/FileHeaderReader.cpp
2007SRCS_EXT+=	XRay/InstrumentationMap.cpp
2008SRCS_EXT+=	XRay/LogBuilderConsumer.cpp
2009SRCS_EXT+=	XRay/RecordInitializer.cpp
2010SRCS_EXT+=	XRay/Trace.cpp
2011
2012SRCS_ALL+=	${SRCS_MIN}
2013.if !defined(TOOLS_PREFIX) || ${MK_LLD_BOOTSTRAP} != "no"
2014SRCS_ALL+=	${SRCS_MIW}
2015.endif
2016.if ${MK_CLANG_EXTRAS} != "no"
2017SRCS_ALL+=	${SRCS_EXT}
2018.endif
2019.if ${MK_CLANG_FULL} != "no"
2020SRCS_ALL+=	${SRCS_FUL}
2021.endif
2022.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLD} != "no" || \
2023    (defined(TOOLS_PREFIX) && ${MK_LLD_BOOTSTRAP} != "no")
2024SRCS_ALL+=	${SRCS_EXL}
2025.endif
2026.if ${MK_LLD} != "no" || \
2027    (defined(TOOLS_PREFIX) && ${MK_LLD_BOOTSTRAP} != "no")
2028SRCS_ALL+=	${SRCS_LLD}
2029.endif
2030.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no"
2031SRCS_ALL+=	${SRCS_XDB}
2032.endif
2033.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" || ${MK_LLD} != "no" || \
2034    (defined(TOOLS_PREFIX) && ${MK_LLD_BOOTSTRAP} != "no")
2035SRCS_ALL+=	${SRCS_XDL}
2036.endif
2037.if ${MK_CLANG_EXTRAS} != "no" || ${MK_LLDB} != "no" || !defined(TOOLS_PREFIX)
2038SRCS_ALL+=	${SRCS_XDW}
2039.endif
2040.if ${MK_LLVM_COV} != "no"
2041SRCS_ALL+=	${SRCS_COV}
2042.endif
2043SRCS+=		${GENSRCS}
2044SRCS+=		${SRCS_ALL:O}
2045
2046llvm/CodeGen/GenVT.inc: ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td
2047	${LLVM_MIN_TBLGEN} -gen-vt \
2048	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2049	    ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td
2050TGHDRS+=	llvm/CodeGen/GenVT.inc
2051
2052llvm/Frontend/OpenMP/OMP.h.inc: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
2053	${LLVM_TBLGEN} --gen-directive-decl \
2054	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2055	    ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
2056TGHDRS+=	llvm/Frontend/OpenMP/OMP.h.inc
2057
2058llvm/Frontend/OpenMP/OMP.inc: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
2059	${LLVM_TBLGEN} --gen-directive-impl \
2060	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2061	    ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
2062TGHDRS+=	llvm/Frontend/OpenMP/OMP.inc
2063
2064llvm/IR/Attributes.inc: ${LLVM_SRCS}/include/llvm/IR/Attributes.td
2065	${LLVM_TBLGEN} -gen-attrs \
2066	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2067	    ${LLVM_SRCS}/include/llvm/IR/Attributes.td
2068TGHDRS+=	llvm/IR/Attributes.inc
2069
2070llvm/IR/IntrinsicEnums.inc: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
2071	${LLVM_TBLGEN} -gen-intrinsic-enums \
2072	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2073	    ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
2074TGHDRS+=	llvm/IR/IntrinsicEnums.inc
2075
2076llvm/IR/IntrinsicImpl.inc: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
2077	${LLVM_TBLGEN} -gen-intrinsic-impl \
2078	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2079	    ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
2080TGHDRS+=	llvm/IR/IntrinsicImpl.inc
2081
2082.for arch in \
2083	AArch64/aarch64 AMDGPU/amdgcn ARM/arm BPF/bpf DirectX/dx \
2084	Hexagon/hexagon LoongArch/loongarch Mips/mips NVPTX/nvvm PowerPC/ppc \
2085	R600/r600 RISCV/riscv S390/s390 SPIRV/spv VE/ve WebAssembly/wasm \
2086	X86/x86 XCore/xcore
2087llvm/IR/Intrinsics${arch:H}.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
2088	${LLVM_TBLGEN} -gen-intrinsic-enums -intrinsic-prefix=${arch:T} \
2089	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2090	    ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
2091TGHDRS+=	llvm/IR/Intrinsics${arch:H}.h
2092.endfor
2093
2094.for arch in AArch64/arm ARM/arm RISCV/riscv
2095llvm/TargetParser/${arch:H}TargetParserDef.inc: ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:H}.td
2096	${LLVM_TBLGEN} -gen-${arch:T}-target-def \
2097	    -I ${LLVM_SRCS}/include -I ${LLVM_SRCS}/lib/Target/${arch:H} \
2098	    -d ${.TARGET}.d -o ${.TARGET} ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:H}.td
2099TGHDRS+=	llvm/TargetParser/${arch:H}TargetParserDef.inc
2100.endfor
2101
2102llvm-lib/Options.inc: ${LLVM_SRCS}/lib/ToolDrivers/llvm-lib/Options.td
2103	${LLVM_TBLGEN} -gen-opt-parser-defs \
2104	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2105	    ${LLVM_SRCS}/lib/ToolDrivers/llvm-lib/Options.td
2106TGHDRS+=	llvm-lib/Options.inc
2107CFLAGS.LibDriver.cpp+=	-I${.OBJDIR}/llvm-lib
2108
2109llvm-dlltool/Options.inc: ${LLVM_SRCS}/lib/ToolDrivers/llvm-dlltool/Options.td
2110	${LLVM_TBLGEN} -gen-opt-parser-defs \
2111	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2112	    ${LLVM_SRCS}/lib/ToolDrivers/llvm-dlltool/Options.td
2113TGHDRS+=	llvm-dlltool/Options.inc
2114CFLAGS.DlltoolDriver.cpp+=	-I${.OBJDIR}/llvm-dlltool
2115
2116.if ${MK_CLANG_EXTRAS} != "no"
2117COFFOptions.inc: ${LLVM_SRCS}/lib/ExecutionEngine/JITLink/COFFOptions.td
2118	${LLVM_TBLGEN} -gen-opt-parser-defs \
2119	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
2120	    ${LLVM_SRCS}/lib/ExecutionEngine/JITLink/COFFOptions.td
2121TGHDRS+=	COFFOptions.inc
2122.endif
2123
2124beforebuild:
2125# 20170724 remove stale Options.inc file, of which there are two different
2126# versions after upstream r308421, one for llvm-lib, one for llvm-dlltool
2127.for f in Options.inc
2128.if exists(${f}) || exists(${f}.d)
2129	@echo Removing stale generated ${f} files
2130	@rm -f ${f} ${f}.d
2131.endif
2132.endfor
2133
2134# Note: some rules are superfluous, not every combination is valid.
2135.for arch in \
2136	AArch64/AArch64 ARM/ARM BPF/BPF Mips/Mips PowerPC/PPC RISCV/RISCV \
2137	X86/X86
2138. for hdr in \
2139	AsmMatcher/-gen-asm-matcher \
2140	AsmWriter/-gen-asm-writer \
2141	AsmWriter1/-gen-asm-writer,-asmwriternum=1 \
2142	CallingConv/-gen-callingconv \
2143	CodeEmitter/-gen-emitter \
2144	CompressInstEmitter/-gen-compress-inst-emitter \
2145	DAGISel/-gen-dag-isel \
2146	DisassemblerTables/-gen-disassembler \
2147	FastISel/-gen-fast-isel \
2148	FoldTables/-gen-x86-fold-tables,-asmwriternum=1 \
2149	GlobalISel/-gen-global-isel \
2150	InstrInfo/-gen-instr-info${arch:MX86/X86:C/X86\/X86/,-instr-info-expand-mi-operand-info=0/} \
2151	InstrMapping/-gen-x86-instr-mapping \
2152	MCCodeEmitter/-gen-emitter \
2153	MCPseudoLowering/-gen-pseudo-lowering \
2154	MacroFusion/-gen-macro-fusion-pred \
2155	MnemonicTables/-gen-x86-mnemonic-tables,-asmwriternum=1 \
2156	O0PreLegalizeGICombiner/-gen-global-isel-combiner,-combiners=${arch:H}O0PreLegalizerCombiner \
2157	PostLegalizeGICombiner/-gen-global-isel-combiner,-combiners=${arch:H}PostLegalizerCombiner \
2158	PostLegalizeGILowering/-gen-global-isel-combiner,-combiners=${arch:H}PostLegalizerLowering \
2159	PreLegalizeGICombiner/-gen-global-isel-combiner,-combiners=${arch:H}PreLegalizerCombiner \
2160	RegisterBank/-gen-register-bank \
2161	RegisterInfo/-gen-register-info \
2162	SearchableTables/-gen-searchable-tables \
2163	SubtargetInfo/-gen-subtarget \
2164	SystemOperands/-gen-searchable-tables \
2165	SystemRegister/-gen-searchable-tables
2166.  if "${arch:T}" == "RISCV" && "${hdr:T:C/(-gen-global-isel).*/\1/}" == "-gen-global-isel"
2167tdfile_${arch:T}_${hdr:H}=	${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}GISel.td
2168.  else
2169tdfile_${arch:T}_${hdr:H}=	${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td
2170.endif
2171${arch:T}Gen${hdr:H}.inc: ${tdfile_${arch:T}_${hdr:H}}
2172	${LLVM_TBLGEN} ${hdr:T:C/,/ /g} \
2173	    -I ${LLVM_SRCS}/include -I ${LLVM_SRCS}/lib/Target/${arch:H} \
2174	    -d ${.TARGET}.d -o ${.TARGET} \
2175	    ${tdfile_${arch:T}_${hdr:H}}
2176. endfor
2177.endfor
2178.if ${MK_LLVM_TARGET_AARCH64} != "no"
2179TGHDRS+=	AArch64GenAsmMatcher.inc
2180TGHDRS+=	AArch64GenAsmWriter.inc
2181TGHDRS+=	AArch64GenAsmWriter1.inc
2182TGHDRS+=	AArch64GenCallingConv.inc
2183TGHDRS+=	AArch64GenDAGISel.inc
2184TGHDRS+=	AArch64GenDisassemblerTables.inc
2185TGHDRS+=	AArch64GenFastISel.inc
2186TGHDRS+=	AArch64GenGlobalISel.inc
2187TGHDRS+=	AArch64GenInstrInfo.inc
2188TGHDRS+=	AArch64GenMCCodeEmitter.inc
2189TGHDRS+=	AArch64GenMCPseudoLowering.inc
2190TGHDRS+=	AArch64GenO0PreLegalizeGICombiner.inc
2191TGHDRS+=	AArch64GenPostLegalizeGICombiner.inc
2192TGHDRS+=	AArch64GenPostLegalizeGILowering.inc
2193TGHDRS+=	AArch64GenPreLegalizeGICombiner.inc
2194TGHDRS+=	AArch64GenRegisterBank.inc
2195TGHDRS+=	AArch64GenRegisterInfo.inc
2196TGHDRS+=	AArch64GenSubtargetInfo.inc
2197TGHDRS+=	AArch64GenSystemOperands.inc
2198.endif # MK_LLVM_TARGET_AARCH64
2199.if ${MK_LLVM_TARGET_ARM} != "no"
2200TGHDRS+=	ARMGenAsmMatcher.inc
2201TGHDRS+=	ARMGenAsmWriter.inc
2202TGHDRS+=	ARMGenCallingConv.inc
2203TGHDRS+=	ARMGenDAGISel.inc
2204TGHDRS+=	ARMGenDisassemblerTables.inc
2205TGHDRS+=	ARMGenFastISel.inc
2206TGHDRS+=	ARMGenGlobalISel.inc
2207TGHDRS+=	ARMGenInstrInfo.inc
2208TGHDRS+=	ARMGenMCCodeEmitter.inc
2209TGHDRS+=	ARMGenMCPseudoLowering.inc
2210TGHDRS+=	ARMGenRegisterBank.inc
2211TGHDRS+=	ARMGenRegisterInfo.inc
2212TGHDRS+=	ARMGenSubtargetInfo.inc
2213TGHDRS+=	ARMGenSystemRegister.inc
2214.endif # MK_LLVM_TARGET_ARM
2215.if ${MK_LLVM_TARGET_BPF} != "no"
2216TGHDRS+=	BPFGenAsmMatcher.inc
2217TGHDRS+=	BPFGenAsmWriter.inc
2218TGHDRS+=	BPFGenCallingConv.inc
2219TGHDRS+=	BPFGenDAGISel.inc
2220TGHDRS+=	BPFGenDisassemblerTables.inc
2221TGHDRS+=	BPFGenGlobalISel.inc
2222TGHDRS+=	BPFGenInstrInfo.inc
2223TGHDRS+=	BPFGenMCCodeEmitter.inc
2224TGHDRS+=	BPFGenRegisterBank.inc
2225TGHDRS+=	BPFGenRegisterInfo.inc
2226TGHDRS+=	BPFGenSubtargetInfo.inc
2227.endif # MK_LLVM_TARGET_BPF
2228.if ${MK_LLVM_TARGET_MIPS} != "no"
2229TGHDRS+=	MipsGenAsmMatcher.inc
2230TGHDRS+=	MipsGenAsmWriter.inc
2231TGHDRS+=	MipsGenCallingConv.inc
2232TGHDRS+=	MipsGenDAGISel.inc
2233TGHDRS+=	MipsGenDisassemblerTables.inc
2234TGHDRS+=	MipsGenFastISel.inc
2235TGHDRS+=	MipsGenGlobalISel.inc
2236TGHDRS+=	MipsGenInstrInfo.inc
2237TGHDRS+=	MipsGenMCCodeEmitter.inc
2238TGHDRS+=	MipsGenMCPseudoLowering.inc
2239TGHDRS+=	MipsGenPostLegalizeGICombiner.inc
2240TGHDRS+=	MipsGenRegisterBank.inc
2241TGHDRS+=	MipsGenRegisterInfo.inc
2242TGHDRS+=	MipsGenSubtargetInfo.inc
2243.endif # MK_LLVM_TARGET_MIPS
2244.if ${MK_LLVM_TARGET_POWERPC} != "no"
2245TGHDRS+=	PPCGenAsmMatcher.inc
2246TGHDRS+=	PPCGenAsmWriter.inc
2247TGHDRS+=	PPCGenCallingConv.inc
2248TGHDRS+=	PPCGenDAGISel.inc
2249TGHDRS+=	PPCGenDisassemblerTables.inc
2250TGHDRS+=	PPCGenFastISel.inc
2251TGHDRS+=	PPCGenGlobalISel.inc
2252TGHDRS+=	PPCGenInstrInfo.inc
2253TGHDRS+=	PPCGenMCCodeEmitter.inc
2254TGHDRS+=	PPCGenRegisterBank.inc
2255TGHDRS+=	PPCGenRegisterInfo.inc
2256TGHDRS+=	PPCGenSubtargetInfo.inc
2257.endif # MK_LLVM_TARGET_POWERPC
2258.if ${MK_LLVM_TARGET_RISCV} != "no"
2259TGHDRS+=	RISCVGenAsmMatcher.inc
2260TGHDRS+=	RISCVGenAsmWriter.inc
2261TGHDRS+=	RISCVGenCallingConv.inc
2262TGHDRS+=	RISCVGenCompressInstEmitter.inc
2263TGHDRS+=	RISCVGenDAGISel.inc
2264TGHDRS+=	RISCVGenDAGISel.inc
2265TGHDRS+=	RISCVGenDisassemblerTables.inc
2266TGHDRS+=	RISCVGenGlobalISel.inc
2267TGHDRS+=	RISCVGenInstrInfo.inc
2268TGHDRS+=	RISCVGenMCCodeEmitter.inc
2269TGHDRS+=	RISCVGenMCPseudoLowering.inc
2270TGHDRS+=	RISCVGenMacroFusion.inc
2271TGHDRS+=	RISCVGenO0PreLegalizeGICombiner.inc
2272TGHDRS+=	RISCVGenPostLegalizeGICombiner.inc
2273TGHDRS+=	RISCVGenPreLegalizeGICombiner.inc
2274TGHDRS+=	RISCVGenRegisterBank.inc
2275TGHDRS+=	RISCVGenRegisterInfo.inc
2276TGHDRS+=	RISCVGenSearchableTables.inc
2277TGHDRS+=	RISCVGenSubtargetInfo.inc
2278TGHDRS+=	RISCVGenSystemOperands.inc
2279.endif # MK_LLVM_TARGET_RISCV
2280.if ${MK_LLVM_TARGET_X86} != "no"
2281TGHDRS+=	X86GenAsmMatcher.inc
2282TGHDRS+=	X86GenAsmWriter.inc
2283TGHDRS+=	X86GenAsmWriter1.inc
2284TGHDRS+=	X86GenCallingConv.inc
2285TGHDRS+=	X86GenDAGISel.inc
2286TGHDRS+=	X86GenDisassemblerTables.inc
2287TGHDRS+=	X86GenFastISel.inc
2288TGHDRS+=	X86GenFoldTables.inc
2289TGHDRS+=	X86GenGlobalISel.inc
2290TGHDRS+=	X86GenInstrInfo.inc
2291TGHDRS+=	X86GenInstrMapping.inc
2292TGHDRS+=	X86GenMnemonicTables.inc
2293TGHDRS+=	X86GenRegisterBank.inc
2294TGHDRS+=	X86GenRegisterInfo.inc
2295TGHDRS+=	X86GenSubtargetInfo.inc
2296.endif # MK_LLVM_TARGET_X86
2297
2298DEPENDFILES+=	${TGHDRS:C/$/.d/}
2299DPSRCS+=	${TGHDRS}
2300CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
2301CLEANFILES+=	${GENSRCS} ${GENSRCS:C/$/.d/}
2302
2303.include "../llvm.build.mk"
2304.include <bsd.lib.mk>
2305