1LOCAL_PATH:= $(call my-dir) 2 3transforms_scalar_SRC_FILES := \ 4 ADCE.cpp \ 5 ConstantProp.cpp \ 6 ConstantHoisting.cpp \ 7 CorrelatedValuePropagation.cpp \ 8 DCE.cpp \ 9 DeadStoreElimination.cpp \ 10 EarlyCSE.cpp \ 11 GVN.cpp \ 12 IndVarSimplify.cpp \ 13 JumpThreading.cpp \ 14 LICM.cpp \ 15 LoadCombine.cpp \ 16 LoopDeletion.cpp \ 17 LoopIdiomRecognize.cpp \ 18 LoopInstSimplify.cpp \ 19 LoopRerollPass.cpp \ 20 LoopRotation.cpp \ 21 LoopStrengthReduce.cpp \ 22 LoopUnrollPass.cpp \ 23 LoopUnswitch.cpp \ 24 LowerAtomic.cpp \ 25 MemCpyOptimizer.cpp \ 26 PartiallyInlineLibCalls.cpp \ 27 Reassociate.cpp \ 28 Reg2Mem.cpp \ 29 SCCP.cpp \ 30 SROA.cpp \ 31 SampleProfile.cpp \ 32 Scalar.cpp \ 33 Scalarizer.cpp \ 34 ScalarReplAggregates.cpp \ 35 SeparateConstOffsetFromGEP.cpp \ 36 SimplifyCFGPass.cpp \ 37 Sink.cpp \ 38 StructurizeCFG.cpp \ 39 TailRecursionElimination.cpp 40 41# For the host 42# ===================================================== 43include $(CLEAR_VARS) 44 45LOCAL_SRC_FILES := \ 46 $(transforms_scalar_SRC_FILES) 47 48LOCAL_MODULE:= libLLVMScalarOpts 49 50LOCAL_MODULE_TAGS := optional 51 52include $(LLVM_HOST_BUILD_MK) 53include $(LLVM_GEN_INTRINSICS_MK) 54include $(BUILD_HOST_STATIC_LIBRARY) 55 56# For the device 57# ===================================================== 58ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 59include $(CLEAR_VARS) 60 61LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES) 62LOCAL_MODULE:= libLLVMScalarOpts 63 64LOCAL_MODULE_TAGS := optional 65 66include $(LLVM_DEVICE_BUILD_MK) 67include $(LLVM_GEN_INTRINSICS_MK) 68include $(BUILD_STATIC_LIBRARY) 69endif 70