1LOCAL_PATH := $(call my-dir)
2
3aarch64_codegen_TBLGEN_TABLES := \
4  AArch64GenRegisterInfo.inc \
5  AArch64GenInstrInfo.inc \
6  AArch64GenAsmWriter.inc \
7  AArch64GenAsmWriter1.inc \
8  AArch64GenDAGISel.inc \
9  AArch64GenCallingConv.inc \
10  AArch64GenAsmMatcher.inc \
11  AArch64GenSubtargetInfo.inc \
12  AArch64GenMCCodeEmitter.inc \
13  AArch64GenFastISel.inc \
14  AArch64GenDisassemblerTables.inc \
15  AArch64GenMCPseudoLowering.inc \
16
17aarch64_codegen_SRC_FILES := \
18  AArch64A53Fix835769.cpp \
19  AArch64A57FPLoadBalancing.cpp \
20  AArch64AddressTypePromotion.cpp \
21  AArch64AdvSIMDScalarPass.cpp \
22  AArch64AsmPrinter.cpp \
23  AArch64BranchRelaxation.cpp \
24  AArch64CleanupLocalDynamicTLSPass.cpp \
25  AArch64CollectLOH.cpp \
26  AArch64ConditionalCompares.cpp \
27  AArch64DeadRegisterDefinitionsPass.cpp \
28  AArch64ExpandPseudoInsts.cpp \
29  AArch64FastISel.cpp \
30  AArch64FrameLowering.cpp \
31  AArch64InstrInfo.cpp \
32  AArch64ISelDAGToDAG.cpp \
33  AArch64ISelLowering.cpp \
34  AArch64LoadStoreOptimizer.cpp \
35  AArch64MCInstLower.cpp \
36  AArch64PromoteConstant.cpp \
37  AArch64RegisterInfo.cpp \
38  AArch64SelectionDAGInfo.cpp \
39  AArch64StorePairSuppress.cpp \
40  AArch64Subtarget.cpp \
41  AArch64TargetMachine.cpp \
42  AArch64TargetObjectFile.cpp \
43  AArch64TargetTransformInfo.cpp
44
45# For the host
46# =====================================================
47include $(CLEAR_VARS)
48include $(CLEAR_TBLGEN_VARS)
49
50LOCAL_MODULE:= libLLVMAArch64CodeGen
51LOCAL_MODULE_TAGS := optional
52
53LOCAL_SRC_FILES := $(aarch64_codegen_SRC_FILES)
54LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
55TBLGEN_TABLES := $(aarch64_codegen_TBLGEN_TABLES)
56
57include $(LLVM_HOST_BUILD_MK)
58include $(LLVM_TBLGEN_RULES_MK)
59include $(LLVM_GEN_INTRINSICS_MK)
60include $(BUILD_HOST_STATIC_LIBRARY)
61
62# For the device only
63# =====================================================
64ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
65include $(CLEAR_VARS)
66include $(CLEAR_TBLGEN_VARS)
67
68LOCAL_MODULE:= libLLVMAArch64CodeGen
69LOCAL_MODULE_TAGS := optional
70
71LOCAL_SRC_FILES := $(aarch64_codegen_SRC_FILES)
72LOCAL_C_INCLUDES := $(LOCAL_PATH)/MCTargetDesc
73TBLGEN_TABLES := $(aarch64_codegen_TBLGEN_TABLES)
74
75include $(LLVM_DEVICE_BUILD_MK)
76include $(LLVM_TBLGEN_RULES_MK)
77include $(LLVM_GEN_INTRINSICS_MK)
78include $(BUILD_STATIC_LIBRARY)
79endif
80