1#	$NetBSD: Makefile,v 1.2 2021/05/30 01:56:54 joerg Exp $
2
3LIB=	LLVMPowerPCCodeGen
4
5.include <bsd.init.mk>
6
7CPPFLAGS+=	-I${LLVM_SRCDIR}/lib/Target/PowerPC
8
9.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC
10
11SRCS+=	PPCAsmPrinter.cpp \
12	PPCBoolRetToInt.cpp \
13	PPCBranchCoalescing.cpp \
14	PPCBranchSelector.cpp \
15	PPCCallingConv.cpp \
16	PPCCCState.cpp \
17	PPCCTRLoops.cpp \
18	PPCEarlyReturn.cpp \
19	PPCExpandISEL.cpp \
20	PPCFastISel.cpp \
21	PPCFrameLowering.cpp \
22	PPCHazardRecognizers.cpp \
23	PPCInstrInfo.cpp \
24	PPCISelDAGToDAG.cpp \
25	PPCISelLowering.cpp \
26	PPCLoopInstrFormPrep.cpp \
27	PPCLowerMASSVEntries.cpp \
28	PPCMachineFunctionInfo.cpp \
29	PPCMachineScheduler.cpp \
30	PPCMacroFusion.cpp \
31	PPCMCInstLower.cpp \
32	PPCMIPeephole.cpp \
33	PPCPreEmitPeephole.cpp \
34	PPCReduceCRLogicals.cpp \
35	PPCRegisterInfo.cpp \
36	PPCSubtarget.cpp \
37	PPCTargetMachine.cpp \
38	PPCTargetObjectFile.cpp \
39	PPCTargetTransformInfo.cpp \
40	PPCTLSDynamicCall.cpp \
41	PPCTOCRegDeps.cpp \
42	PPCVSXCopy.cpp \
43	PPCVSXFMAMutate.cpp \
44	PPCVSXSwapRemoval.cpp
45
46.PATH: ${LLVM_SRCDIR}/lib/Target/PowerPC/GISel
47
48SRCS+=	PPCCallLowering.cpp \
49	PPCInstructionSelector.cpp \
50	PPCLegalizerInfo.cpp \
51	PPCRegisterBankInfo.cpp
52
53TABLEGEN_SRC=		PPC.td
54TABLEGEN_INCLUDES=	-I${LLVM_SRCDIR}/lib/Target/PowerPC
55TABLEGEN_OUTPUT= \
56	PPCGenAsmMatcher.inc|-gen-asm-matcher \
57	PPCGenAsmWriter.inc|-gen-asm-writer \
58	PPCGenCallingConv.inc|-gen-callingconv \
59	PPCGenCodeEmitter.inc|-gen-emitter \
60	PPCGenDAGISel.inc|-gen-dag-isel \
61	PPCGenDisassemblerTables.inc|-gen-disassembler \
62	PPCGenFastISel.inc|-gen-fast-isel \
63	PPCGenGlobalISel.inc|-gen-global-isel \
64	PPCGenInstrInfo.inc|-gen-instr-info \
65	PPCGenMCCodeEmitter.inc|-gen-emitter \
66	PPCGenRegisterBank.inc|-gen-register-bank \
67	PPCGenRegisterInfo.inc|-gen-register-info \
68	PPCGenSubtargetInfo.inc|-gen-subtarget
69
70.include "${.PARSEDIR}/../../tablegen.mk"
71
72.if defined(HOSTLIB)
73.include <bsd.hostlib.mk>
74.else
75.include <bsd.lib.mk>
76.endif
77