1# $OpenBSD: Makefile,v 1.14 2021/12/17 14:55:46 patrick 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	CodeMoverUtils.cpp \
25	CtorUtils.cpp \
26	Debugify.cpp \
27	DemoteRegToStack.cpp \
28	EntryExitInstrumenter.cpp \
29	EscapeEnumerator.cpp \
30	Evaluator.cpp \
31	FixIrreducible.cpp \
32	FlattenCFG.cpp \
33	FunctionComparator.cpp \
34	FunctionImportUtils.cpp \
35	GlobalStatus.cpp \
36	TransformUtilsGuardUtils.cpp \
37	HelloWorld.cpp \
38	InlineFunction.cpp \
39	InjectTLIMappings.cpp \
40	InstructionNamer.cpp \
41	IntegerDivision.cpp \
42	LCSSA.cpp \
43	LibCallsShrinkWrap.cpp \
44	Local.cpp \
45	LoopPeel.cpp \
46	LoopRotationUtils.cpp \
47	LoopSimplify.cpp \
48	LoopUnroll.cpp \
49	LoopUnrollAndJam.cpp \
50	LoopUnrollRuntime.cpp \
51	LoopUtils.cpp \
52	LoopVersioning.cpp \
53	LowerInvoke.cpp \
54	LowerMemIntrinsics.cpp \
55	LowerSwitch.cpp \
56	MatrixUtils.cpp \
57	MemoryOpRemark.cpp \
58	Mem2Reg.cpp \
59	MetaRenamer.cpp \
60	ModuleUtils.cpp \
61	NameAnonGlobals.cpp \
62	PredicateInfo.cpp \
63	PromoteMemoryToRegister.cpp \
64	RelLookupTableConverter.cpp \
65	ScalarEvolutionExpander.cpp \
66	SCCPSolver.cpp \
67	StripGCRelocates.cpp \
68	SSAUpdater.cpp \
69	SSAUpdaterBulk.cpp \
70	SampleProfileLoaderBaseUtil.cpp \
71	SanitizerStats.cpp \
72	SimplifyCFG.cpp \
73	SimplifyIndVar.cpp \
74	SimplifyLibCalls.cpp \
75	SizeOpts.cpp \
76	SplitModule.cpp \
77	StripNonLineTableDebugInfo.cpp \
78	SymbolRewriter.cpp \
79	UnifyFunctionExitNodes.cpp \
80	UnifyLoopExits.cpp \
81	TransformUtilsUtils.cpp \
82	ValueMapper.cpp \
83	VNCoercion.cpp
84
85TransformUtilsGuardUtils.cpp:
86	ln -s ${LLVM_SRCS}/lib/Transforms/Utils/GuardUtils.cpp $@
87
88TransformUtilsUtils.cpp:
89	ln -s ${LLVM_SRCS}/lib/Transforms/Utils/Utils.cpp $@
90
91.PATH:	${.CURDIR}/../../../llvm/llvm/lib/Transforms/Utils
92
93CLEANFILES+= TransformUtilsUtils.cpp
94