Home | History | Annotate | Download | only in Scalar
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 transforms_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 # =====================================================
     39 include $(CLEAR_VARS)
     40 
     41 LOCAL_SRC_FILES :=	\
     42 	$(transforms_scalar_SRC_FILES)
     43 
     44 LOCAL_MODULE:= libLLVMScalarOpts
     45 
     46 LOCAL_MODULE_TAGS := optional
     47 
     48 include $(LLVM_HOST_BUILD_MK)
     49 include $(LLVM_GEN_INTRINSICS_MK)
     50 include $(BUILD_HOST_STATIC_LIBRARY)
     51 
     52 # For the device
     53 # =====================================================
     54 include $(CLEAR_VARS)
     55 
     56 LOCAL_SRC_FILES := $(transforms_scalar_SRC_FILES)
     57 LOCAL_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
     62 ifeq ($(TARGET_ARCH),x86)
     63 LOCAL_CFLAGS += -O1
     64 endif
     65 
     66 LOCAL_MODULE_TAGS := optional
     67 
     68 include $(LLVM_DEVICE_BUILD_MK)
     69 include $(LLVM_GEN_INTRINSICS_MK)
     70 include $(BUILD_STATIC_LIBRARY)
     71