1LOCAL_PATH:= $(call my-dir) 2 3transforms_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# ===================================================== 28include $(CLEAR_VARS) 29 30LOCAL_SRC_FILES := $(transforms_ipo_SRC_FILES) 31LOCAL_MODULE:= libLLVMipo 32 33LOCAL_MODULE_TAGS := optional 34 35include $(LLVM_HOST_BUILD_MK) 36include $(LLVM_GEN_INTRINSICS_MK) 37include $(BUILD_HOST_STATIC_LIBRARY) 38 39# For the device 40# ===================================================== 41ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 42include $(CLEAR_VARS) 43 44LOCAL_SRC_FILES := $(transforms_ipo_SRC_FILES) 45LOCAL_MODULE:= libLLVMipo 46 47LOCAL_MODULE_TAGS := optional 48 49include $(LLVM_DEVICE_BUILD_MK) 50include $(LLVM_GEN_INTRINSICS_MK) 51include $(BUILD_STATIC_LIBRARY) 52endif 53