Android.mk revision fbe6c40c6744c36ef90937b5127e0d9259b6fcd7
1LOCAL_PATH:= $(call my-dir) 2 3transforms_scalar_SRC_FILES := \ 4 ADCE.cpp \ 5 BasicBlockPlacement.cpp \ 6 CodeGenPrepare.cpp \ 7 ConstantProp.cpp \ 8 CorrelatedValuePropagation.cpp \ 9 DCE.cpp \ 10 DeadStoreElimination.cpp \ 11 EarlyCSE.cpp \ 12 GlobalMerge.cpp \ 13 GVN.cpp \ 14 IndVarSimplify.cpp \ 15 JumpThreading.cpp \ 16 LICM.cpp \ 17 LoopDeletion.cpp \ 18 LoopIdiomRecognize.cpp \ 19 LoopInstSimplify.cpp \ 20 LoopRotation.cpp \ 21 LoopStrengthReduce.cpp \ 22 LoopUnrollPass.cpp \ 23 LoopUnswitch.cpp \ 24 LowerAtomic.cpp \ 25 MemCpyOptimizer.cpp \ 26 ObjCARC.cpp \ 27 Reassociate.cpp \ 28 Reg2Mem.cpp \ 29 SCCP.cpp \ 30 SROA.cpp \ 31 Scalar.cpp \ 32 ScalarReplAggregates.cpp \ 33 SimplifyCFGPass.cpp \ 34 SimplifyLibCalls.cpp \ 35 Sink.cpp \ 36 TailRecursionElimination.cpp 37 38# For the host 39# ===================================================== 40include $(CLEAR_VARS) 41 42LOCAL_SRC_FILES := \ 43 $(transforms_scalar_SRC_FILES) 44 45LOCAL_MODULE:= libLLVMScalarOpts 46 47LOCAL_MODULE_TAGS := optional 48 49include $(LLVM_HOST_BUILD_MK) 50include $(LLVM_GEN_INTRINSICS_MK) 51include $(BUILD_HOST_STATIC_LIBRARY) 52 53# For the device 54# ===================================================== 55include $(CLEAR_VARS) 56 57LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES) 58LOCAL_MODULE:= libLLVMScalarOpts 59 60# Override the default optimization level to work around a SIGSEGV 61# on x86 target builds for SROA.cpp. 62# Bug: 8047767 63ifeq ($(TARGET_ARCH),x86) 64LOCAL_CFLAGS += -O1 65endif 66 67LOCAL_MODULE_TAGS := optional 68 69include $(LLVM_DEVICE_BUILD_MK) 70include $(LLVM_GEN_INTRINSICS_MK) 71include $(BUILD_STATIC_LIBRARY) 72