• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:= $(call my-dir)
2
3transforms_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  LoopDistribute.cpp \
23  LoopIdiomRecognize.cpp \
24  LoopInstSimplify.cpp \
25  LoopInterchange.cpp \
26  LoopLoadElimination.cpp \
27  LoopRerollPass.cpp \
28  LoopRotation.cpp \
29  LoopStrengthReduce.cpp \
30  LoopUnrollPass.cpp \
31  LoopUnswitch.cpp \
32  LowerAtomic.cpp \
33  LowerExpectIntrinsic.cpp \
34  MemCpyOptimizer.cpp \
35  MergedLoadStoreMotion.cpp \
36  NaryReassociate.cpp \
37  PartiallyInlineLibCalls.cpp \
38  PlaceSafepoints.cpp \
39  Reassociate.cpp \
40  Reg2Mem.cpp \
41  RewriteStatepointsForGC.cpp \
42  SCCP.cpp \
43  SROA.cpp \
44  Scalar.cpp \
45  Scalarizer.cpp \
46  ScalarReplAggregates.cpp \
47  SeparateConstOffsetFromGEP.cpp \
48  SimplifyCFGPass.cpp \
49  Sink.cpp \
50  SpeculativeExecution.cpp \
51  StraightLineStrengthReduce.cpp \
52  StructurizeCFG.cpp \
53  TailRecursionElimination.cpp
54
55# For the host
56# =====================================================
57include $(CLEAR_VARS)
58
59LOCAL_SRC_FILES :=	\
60	$(transforms_scalar_SRC_FILES)
61
62LOCAL_MODULE:= libLLVMScalarOpts
63
64LOCAL_MODULE_HOST_OS := darwin linux windows
65
66include $(LLVM_HOST_BUILD_MK)
67include $(LLVM_GEN_ATTRIBUTES_MK)
68include $(LLVM_GEN_INTRINSICS_MK)
69include $(BUILD_HOST_STATIC_LIBRARY)
70
71# For the device
72# =====================================================
73ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS))
74include $(CLEAR_VARS)
75
76LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES)
77LOCAL_MODULE:= libLLVMScalarOpts
78
79include $(LLVM_DEVICE_BUILD_MK)
80include $(LLVM_GEN_ATTRIBUTES_MK)
81include $(LLVM_GEN_INTRINSICS_MK)
82include $(BUILD_STATIC_LIBRARY)
83endif
84