Android.mk revision ead8d02a509cd69a74e01e4af90d8b237f30ed1c
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  Reassociate.cpp \
27  Reg2Mem.cpp \
28  SCCP.cpp \
29  SROA.cpp \
30  Scalar.cpp \
31  ScalarReplAggregates.cpp \
32  SimplifyCFGPass.cpp \
33  Sink.cpp \
34  StructurizeCFG.cpp \
35  TailRecursionElimination.cpp
36
37# For the host
38# =====================================================
39include $(CLEAR_VARS)
40
41LOCAL_SRC_FILES :=	\
42	$(transforms_scalar_SRC_FILES)
43
44LOCAL_MODULE:= libLLVMScalarOpts
45
46LOCAL_MODULE_TAGS := optional
47
48include $(LLVM_HOST_BUILD_MK)
49include $(LLVM_GEN_INTRINSICS_MK)
50include $(BUILD_HOST_STATIC_LIBRARY)
51
52# For the device
53# =====================================================
54include $(CLEAR_VARS)
55
56LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES)
57LOCAL_MODULE:= libLLVMScalarOpts
58
59# Override the default optimization level to work around a SIGSEGV
60# on x86 target builds for SROA.cpp.
61# Bug: 8047767
62ifeq ($(TARGET_ARCH),x86)
63LOCAL_CFLAGS += -O1
64endif
65
66LOCAL_MODULE_TAGS := optional
67
68include $(LLVM_DEVICE_BUILD_MK)
69include $(LLVM_GEN_INTRINSICS_MK)
70include $(BUILD_STATIC_LIBRARY)
71