1LOCAL_PATH:= $(call my-dir) 2 3codegen_SRC_FILES := \ 4 AggressiveAntiDepBreaker.cpp \ 5 AllocationOrder.cpp \ 6 Analysis.cpp \ 7 BranchFolding.cpp \ 8 CalcSpillWeights.cpp \ 9 CallingConvLower.cpp \ 10 CodeGen.cpp \ 11 CodePlacementOpt.cpp \ 12 CriticalAntiDepBreaker.cpp \ 13 DFAPacketizer.cpp \ 14 DeadMachineInstructionElim.cpp \ 15 DwarfEHPrepare.cpp \ 16 EarlyIfConversion.cpp \ 17 EdgeBundles.cpp \ 18 ExecutionDepsFix.cpp \ 19 ExpandISelPseudos.cpp \ 20 ExpandPostRAPseudos.cpp \ 21 GCMetadata.cpp \ 22 GCMetadataPrinter.cpp \ 23 GCStrategy.cpp \ 24 IfConversion.cpp \ 25 InlineSpiller.cpp \ 26 InterferenceCache.cpp \ 27 IntrinsicLowering.cpp \ 28 LatencyPriorityQueue.cpp \ 29 LexicalScopes.cpp \ 30 LiveDebugVariables.cpp \ 31 LiveInterval.cpp \ 32 LiveIntervalAnalysis.cpp \ 33 LiveIntervalUnion.cpp \ 34 LiveRangeCalc.cpp \ 35 LiveRangeEdit.cpp \ 36 LiveRegMatrix.cpp \ 37 LiveStackAnalysis.cpp \ 38 LiveVariables.cpp \ 39 LLVMTargetMachine.cpp \ 40 LocalStackSlotAllocation.cpp \ 41 MachineBasicBlock.cpp \ 42 MachineBlockFrequencyInfo.cpp \ 43 MachineBlockPlacement.cpp \ 44 MachineBranchProbabilityInfo.cpp \ 45 MachineCSE.cpp \ 46 MachineCopyPropagation.cpp \ 47 MachineDominators.cpp \ 48 MachineFunction.cpp \ 49 MachineFunctionAnalysis.cpp \ 50 MachineFunctionPass.cpp \ 51 MachineFunctionPrinterPass.cpp \ 52 MachineInstr.cpp \ 53 MachineInstrBundle.cpp \ 54 MachineLICM.cpp \ 55 MachineLoopInfo.cpp \ 56 MachineLoopRanges.cpp \ 57 MachineModuleInfo.cpp \ 58 MachineModuleInfoImpls.cpp \ 59 MachinePassRegistry.cpp \ 60 MachineRegisterInfo.cpp \ 61 MachineSSAUpdater.cpp \ 62 MachineScheduler.cpp \ 63 MachineSink.cpp \ 64 MachineTraceMetrics.cpp \ 65 MachineVerifier.cpp \ 66 OcamlGC.cpp \ 67 OptimizePHIs.cpp \ 68 PHIElimination.cpp \ 69 PHIEliminationUtils.cpp \ 70 Passes.cpp \ 71 PeepholeOptimizer.cpp \ 72 PostRASchedulerList.cpp \ 73 ProcessImplicitDefs.cpp \ 74 PrologEpilogInserter.cpp \ 75 PseudoSourceValue.cpp \ 76 RegAllocBase.cpp \ 77 RegAllocBasic.cpp \ 78 RegAllocFast.cpp \ 79 RegAllocGreedy.cpp \ 80 RegAllocPBQP.cpp \ 81 RegisterClassInfo.cpp \ 82 RegisterCoalescer.cpp \ 83 RegisterPressure.cpp \ 84 RegisterScavenging.cpp \ 85 ScheduleDAG.cpp \ 86 ScheduleDAGInstrs.cpp \ 87 ScheduleDAGPrinter.cpp \ 88 ScoreboardHazardRecognizer.cpp \ 89 ShadowStackGC.cpp \ 90 ShrinkWrapping.cpp \ 91 SjLjEHPrepare.cpp \ 92 SlotIndexes.cpp \ 93 SpillPlacement.cpp \ 94 Spiller.cpp \ 95 SplitKit.cpp \ 96 StackColoring.cpp \ 97 StackProtector.cpp \ 98 StackSlotColoring.cpp \ 99 StrongPHIElimination.cpp \ 100 TailDuplication.cpp \ 101 TargetFrameLoweringImpl.cpp \ 102 TargetInstrInfoImpl.cpp \ 103 TargetLoweringObjectFileImpl.cpp \ 104 TargetOptionsImpl.cpp \ 105 TwoAddressInstructionPass.cpp \ 106 UnreachableBlockElim.cpp \ 107 VirtRegMap.cpp 108 109# For the host 110# ===================================================== 111include $(CLEAR_VARS) 112 113LOCAL_SRC_FILES := $(codegen_SRC_FILES) 114LOCAL_MODULE:= libLLVMCodeGen 115 116LOCAL_MODULE_TAGS := optional 117 118include $(LLVM_HOST_BUILD_MK) 119include $(LLVM_GEN_INTRINSICS_MK) 120include $(BUILD_HOST_STATIC_LIBRARY) 121 122# For the device 123# ===================================================== 124include $(CLEAR_VARS) 125 126LOCAL_SRC_FILES := $(codegen_SRC_FILES) 127LOCAL_MODULE:= libLLVMCodeGen 128 129LOCAL_MODULE_TAGS := optional 130 131include $(LLVM_DEVICE_BUILD_MK) 132include $(LLVM_GEN_INTRINSICS_MK) 133include $(BUILD_STATIC_LIBRARY) 134