1 LOCAL_PATH:= $(call my-dir) 2 3 transforms_ipo_SRC_FILES := \ 4 ArgumentPromotion.cpp \ 5 BarrierNoopPass.cpp \ 6 ConstantMerge.cpp \ 7 DeadArgumentElimination.cpp \ 8 ExtractGV.cpp \ 9 FunctionAttrs.cpp \ 10 GlobalDCE.cpp \ 11 GlobalOpt.cpp \ 12 IPConstantPropagation.cpp \ 13 IPO.cpp \ 14 InlineAlways.cpp \ 15 InlineSimple.cpp \ 16 Inliner.cpp \ 17 Internalize.cpp \ 18 LoopExtractor.cpp \ 19 MergeFunctions.cpp \ 20 PartialInlining.cpp \ 21 PassManagerBuilder.cpp \ 22 PruneEH.cpp \ 23 StripDeadPrototypes.cpp \ 24 StripSymbols.cpp 25 26 # For the host 27 # ===================================================== 28 include $(CLEAR_VARS) 29 30 LOCAL_SRC_FILES := $(transforms_ipo_SRC_FILES) 31 LOCAL_MODULE:= libLLVMipo 32 33 LOCAL_MODULE_TAGS := optional 34 35 include $(LLVM_HOST_BUILD_MK) 36 include $(LLVM_GEN_INTRINSICS_MK) 37 include $(BUILD_HOST_STATIC_LIBRARY) 38 39 # For the device 40 # ===================================================== 41 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 42 include $(CLEAR_VARS) 43 44 LOCAL_SRC_FILES := $(transforms_ipo_SRC_FILES) 45 LOCAL_MODULE:= libLLVMipo 46 47 LOCAL_MODULE_TAGS := optional 48 49 include $(LLVM_DEVICE_BUILD_MK) 50 include $(LLVM_GEN_INTRINSICS_MK) 51 include $(BUILD_STATIC_LIBRARY) 52 endif 53