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