1 LOCAL_PATH:= $(call my-dir) 2 3 transforms_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 LoopUtils.cpp \ 26 LoopVersioning.cpp \ 27 LowerInvoke.cpp \ 28 LowerSwitch.cpp \ 29 Mem2Reg.cpp \ 30 MetaRenamer.cpp \ 31 ModuleUtils.cpp \ 32 PromoteMemoryToRegister.cpp \ 33 SSAUpdater.cpp \ 34 SimplifyCFG.cpp \ 35 SimplifyIndVar.cpp \ 36 SimplifyInstructions.cpp \ 37 SimplifyLibCalls.cpp \ 38 SplitModule.cpp \ 39 SymbolRewriter.cpp \ 40 UnifyFunctionExitNodes.cpp \ 41 Utils.cpp \ 42 ValueMapper.cpp 43 44 # For the host 45 # ===================================================== 46 include $(CLEAR_VARS) 47 48 LOCAL_SRC_FILES := $(transforms_utils_SRC_FILES) 49 LOCAL_MODULE:= libLLVMTransformUtils 50 51 LOCAL_MODULE_HOST_OS := darwin linux windows 52 53 include $(LLVM_HOST_BUILD_MK) 54 include $(LLVM_GEN_ATTRIBUTES_MK) 55 include $(LLVM_GEN_INTRINSICS_MK) 56 include $(BUILD_HOST_STATIC_LIBRARY) 57 58 # For the device 59 # ===================================================== 60 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 61 include $(CLEAR_VARS) 62 63 LOCAL_SRC_FILES := $(transforms_utils_SRC_FILES) 64 LOCAL_MODULE:= libLLVMTransformUtils 65 66 include $(LLVM_DEVICE_BUILD_MK) 67 include $(LLVM_GEN_ATTRIBUTES_MK) 68 include $(LLVM_GEN_INTRINSICS_MK) 69 include $(BUILD_STATIC_LIBRARY) 70 endif 71