Android.mk revision 373aa5c665fe6df6b9c5586d397dc3617f25aab5
1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_PATH:= $(call my-dir)
2868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
3868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)transforms_scalar_SRC_FILES := \
4868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  ADCE.cpp \
5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CodeGenPrepare.cpp \
6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  ConstantProp.cpp \
7868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  CorrelatedValuePropagation.cpp \
8868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  DCE.cpp \
9868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  DeadStoreElimination.cpp \
10868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  EarlyCSE.cpp \
111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  GlobalMerge.cpp \
12868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  GVN.cpp \
13868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  IndVarSimplify.cpp \
14868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  JumpThreading.cpp \
15868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LICM.cpp \
16868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopDeletion.cpp \
17868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopIdiomRecognize.cpp \
18868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopInstSimplify.cpp \
19868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopRerollPass.cpp \
20868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopRotation.cpp \
21868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopStrengthReduce.cpp \
22868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopUnrollPass.cpp \
23868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LoopUnswitch.cpp \
24868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  LowerAtomic.cpp \
25868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  MemCpyOptimizer.cpp \
26868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  PartiallyInlineLibCalls.cpp \
27868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  Reassociate.cpp \
28868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  Reg2Mem.cpp \
29868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  SCCP.cpp \
30868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  SROA.cpp \
31868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  SampleProfile.cpp \
32868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  Scalar.cpp \
33868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  ScalarReplAggregates.cpp \
34868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  SimplifyCFGPass.cpp \
35868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  Sink.cpp \
36868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  StructurizeCFG.cpp \
37868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)  TailRecursionElimination.cpp
38868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
39868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# For the host
40868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# =====================================================
41868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(CLEAR_VARS)
42868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
43868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_SRC_FILES :=	\
44868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)	$(transforms_scalar_SRC_FILES)
45868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
46868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_MODULE:= libLLVMScalarOpts
47868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
48868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_MODULE_TAGS := optional
49868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
50868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(LLVM_HOST_BUILD_MK)
51868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(LLVM_GEN_INTRINSICS_MK)
52868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(BUILD_HOST_STATIC_LIBRARY)
53868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
54868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# For the device
55868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# =====================================================
56868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(CLEAR_VARS)
57868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
58868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES)
59868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_MODULE:= libLLVMScalarOpts
60868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
61868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# Override the default optimization level to work around a SIGSEGV
62868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# on x86 target builds for SROA.cpp.
63868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)# Bug: 8047767
64868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)ifeq ($(TARGET_ARCH),x86)
65868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_CFLAGS += -O1
66868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)endif
67868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
68868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)LOCAL_MODULE_TAGS := optional
69868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
70868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(LLVM_DEVICE_BUILD_MK)
71868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(LLVM_GEN_INTRINSICS_MK)
72868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)include $(BUILD_STATIC_LIBRARY)
73868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)