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