1# $OpenBSD: Makefile,v 1.15 2023/11/11 18:35:38 robert Exp $
2
3LIB=	LLVMTransformUtils
4NOPROFILE=
5
6CPPFLAGS+=	-I${LLVM_SRCS}/include/llvm/Transforms
7CPPFLAGS+=	-I${LLVM_SRCS}/include/llvm/Transforms/Utils
8
9SRCS+=	AddDiscriminators.cpp \
10	AMDGPUEmitPrintf.cpp \
11	ASanStackFrameLayout.cpp \
12	AssumeBundleBuilder.cpp \
13	BasicBlockUtils.cpp \
14	BreakCriticalEdges.cpp \
15	BuildLibCalls.cpp \
16	BypassSlowDivision.cpp \
17	CallPromotionUtils.cpp \
18	CallGraphUpdater.cpp \
19	CanonicalizeAliases.cpp \
20	CanonicalizeFreezeInLoops.cpp \
21	CloneFunction.cpp \
22	CloneModule.cpp \
23	CodeExtractor.cpp \
24	CodeLayout.cpp \
25	CodeMoverUtils.cpp \
26	CtorUtils.cpp \
27	Debugify.cpp \
28	DemoteRegToStack.cpp \
29	EntryExitInstrumenter.cpp \
30	EscapeEnumerator.cpp \
31	Evaluator.cpp \
32	FixIrreducible.cpp \
33	FlattenCFG.cpp \
34	FunctionComparator.cpp \
35	FunctionImportUtils.cpp \
36	GlobalStatus.cpp \
37	TransformUtilsGuardUtils.cpp \
38	HelloWorld.cpp \
39	InlineFunction.cpp \
40	InjectTLIMappings.cpp \
41	InstructionNamer.cpp \
42	IntegerDivision.cpp \
43	LCSSA.cpp \
44	LibCallsShrinkWrap.cpp \
45	TransformUtilsLocal.cpp \
46	LoopPeel.cpp \
47	LoopRotationUtils.cpp \
48	LoopSimplify.cpp \
49	LoopUnroll.cpp \
50	LoopUnrollAndJam.cpp \
51	LoopUnrollRuntime.cpp \
52	LoopUtils.cpp \
53	LoopVersioning.cpp \
54	LowerAtomic.cpp \
55	LowerGlobalDtors.cpp \
56	LowerIFunc.cpp \
57	LowerInvoke.cpp \
58	LowerMemIntrinsics.cpp \
59	LowerSwitch.cpp \
60	MatrixUtils.cpp \
61	MemoryOpRemark.cpp \
62	MemoryTaggingSupport.cpp \
63	Mem2Reg.cpp \
64	MetaRenamer.cpp \
65	MisExpect.cpp \
66	ModuleUtils.cpp \
67	NameAnonGlobals.cpp \
68	PredicateInfo.cpp \
69	PromoteMemoryToRegister.cpp \
70	RelLookupTableConverter.cpp \
71	ScalarEvolutionExpander.cpp \
72	SCCPSolver.cpp \
73	StripGCRelocates.cpp \
74	SSAUpdater.cpp \
75	SSAUpdaterBulk.cpp \
76	SampleProfileInference.cpp \
77	SampleProfileLoaderBaseUtil.cpp \
78	SanitizerStats.cpp \
79	SimplifyCFG.cpp \
80	SimplifyIndVar.cpp \
81	SimplifyLibCalls.cpp \
82	SizeOpts.cpp \
83	SplitModule.cpp \
84	StripNonLineTableDebugInfo.cpp \
85	SymbolRewriter.cpp \
86	UnifyFunctionExitNodes.cpp \
87	UnifyLoopExits.cpp \
88	TransformUtilsUtils.cpp \
89	ValueMapper.cpp \
90	VNCoercion.cpp
91
92TransformUtilsGuardUtils.cpp:
93	ln -s ${LLVM_SRCS}/lib/Transforms/Utils/GuardUtils.cpp $@
94
95TransformUtilsLocal.cpp:
96	ln -s ${LLVM_SRCS}/lib/Transforms/Utils/Local.cpp $@
97
98TransformUtilsUtils.cpp:
99	ln -s ${LLVM_SRCS}/lib/Transforms/Utils/Utils.cpp $@
100
101.PATH:	${.CURDIR}/../../../llvm/llvm/lib/Transforms/Utils
102
103CLEANFILES+= TransformUtilsUtils.cpp TransformUtilsGuardUtils.cpp TransformUtilsLocal.cpp
104