1LOCAL_PATH:= $(call my-dir) 2 3transforms_utils_SRC_FILES := \ 4 AddDiscriminators.cpp \ 5 ASanStackFrameLayout.cpp \ 6 BasicBlockUtils.cpp \ 7 BreakCriticalEdges.cpp \ 8 BuildLibCalls.cpp \ 9 BypassSlowDivision.cpp \ 10 CloneFunction.cpp \ 11 CloneModule.cpp \ 12 CmpInstAnalysis.cpp \ 13 CodeExtractor.cpp \ 14 CtorUtils.cpp \ 15 DemoteRegToStack.cpp \ 16 FlattenCFG.cpp \ 17 GlobalStatus.cpp \ 18 InlineFunction.cpp \ 19 InstructionNamer.cpp \ 20 LCSSA.cpp \ 21 Local.cpp \ 22 LoopSimplify.cpp \ 23 LoopUnroll.cpp \ 24 LoopUnrollRuntime.cpp \ 25 LowerInvoke.cpp \ 26 LowerSwitch.cpp \ 27 Mem2Reg.cpp \ 28 MetaRenamer.cpp \ 29 ModuleUtils.cpp \ 30 PromoteMemoryToRegister.cpp \ 31 SSAUpdater.cpp \ 32 SimplifyCFG.cpp \ 33 SimplifyIndVar.cpp \ 34 SimplifyInstructions.cpp \ 35 SimplifyLibCalls.cpp \ 36 SymbolRewriter.cpp \ 37 UnifyFunctionExitNodes.cpp \ 38 Utils.cpp \ 39 ValueMapper.cpp 40 41# For the host 42# ===================================================== 43include $(CLEAR_VARS) 44 45LOCAL_SRC_FILES := $(transforms_utils_SRC_FILES) 46LOCAL_MODULE:= libLLVMTransformUtils 47 48LOCAL_MODULE_TAGS := optional 49 50include $(LLVM_HOST_BUILD_MK) 51include $(LLVM_GEN_INTRINSICS_MK) 52include $(BUILD_HOST_STATIC_LIBRARY) 53 54# For the device 55# ===================================================== 56ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 57include $(CLEAR_VARS) 58 59LOCAL_SRC_FILES := $(transforms_utils_SRC_FILES) 60LOCAL_MODULE:= libLLVMTransformUtils 61 62LOCAL_MODULE_TAGS := optional 63 64include $(LLVM_DEVICE_BUILD_MK) 65include $(LLVM_GEN_INTRINSICS_MK) 66include $(BUILD_STATIC_LIBRARY) 67endif 68