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 EdgeBundles.cpp \ 17 ExecutionDepsFix.cpp \ 18 ExpandISelPseudos.cpp \ 19 ExpandPostRAPseudos.cpp \ 20 GCMetadata.cpp \ 21 GCMetadataPrinter.cpp \ 22 GCStrategy.cpp \ 23 IfConversion.cpp \ 24 InlineSpiller.cpp \ 25 InterferenceCache.cpp \ 26 IntrinsicLowering.cpp \ 27 LLVMTargetMachine.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 LiveStackAnalysis.cpp \ 37 LiveVariables.cpp \ 38 LocalStackSlotAllocation.cpp \ 39 MachineBasicBlock.cpp \ 40 MachineBlockFrequencyInfo.cpp \ 41 MachineBlockPlacement.cpp \ 42 MachineBranchProbabilityInfo.cpp \ 43 MachineCSE.cpp \ 44 MachineCopyPropagation.cpp \ 45 MachineDominators.cpp \ 46 MachineFunction.cpp \ 47 MachineFunctionAnalysis.cpp \ 48 MachineFunctionPass.cpp \ 49 MachineFunctionPrinterPass.cpp \ 50 MachineInstr.cpp \ 51 MachineInstrBundle.cpp \ 52 MachineLICM.cpp \ 53 MachineLoopInfo.cpp \ 54 MachineLoopRanges.cpp \ 55 MachineModuleInfo.cpp \ 56 MachineModuleInfoImpls.cpp \ 57 MachinePassRegistry.cpp \ 58 MachineRegisterInfo.cpp \ 59 MachineSSAUpdater.cpp \ 60 MachineScheduler.cpp \ 61 MachineSink.cpp \ 62 MachineVerifier.cpp \ 63 OcamlGC.cpp \ 64 OptimizePHIs.cpp \ 65 PHIElimination.cpp \ 66 PHIEliminationUtils.cpp \ 67 Passes.cpp \ 68 PeepholeOptimizer.cpp \ 69 PostRASchedulerList.cpp \ 70 ProcessImplicitDefs.cpp \ 71 PrologEpilogInserter.cpp \ 72 PseudoSourceValue.cpp \ 73 RegAllocBase.cpp \ 74 RegAllocBasic.cpp \ 75 RegAllocFast.cpp \ 76 RegAllocGreedy.cpp \ 77 RegAllocPBQP.cpp \ 78 RegisterClassInfo.cpp \ 79 RegisterCoalescer.cpp \ 80 RegisterScavenging.cpp \ 81 RenderMachineFunction.cpp \ 82 ScheduleDAG.cpp \ 83 ScheduleDAGInstrs.cpp \ 84 ScheduleDAGPrinter.cpp \ 85 ScoreboardHazardRecognizer.cpp \ 86 ShadowStackGC.cpp \ 87 ShrinkWrapping.cpp \ 88 SjLjEHPrepare.cpp \ 89 SlotIndexes.cpp \ 90 SpillPlacement.cpp \ 91 Spiller.cpp \ 92 SplitKit.cpp \ 93 StackProtector.cpp \ 94 StackSlotColoring.cpp \ 95 StrongPHIElimination.cpp \ 96 TailDuplication.cpp \ 97 TargetFrameLoweringImpl.cpp \ 98 TargetInstrInfoImpl.cpp \ 99 TargetLoweringObjectFileImpl.cpp \ 100 TargetOptionsImpl.cpp \ 101 TwoAddressInstructionPass.cpp \ 102 UnreachableBlockElim.cpp \ 103 VirtRegMap.cpp 104 105# For the host 106# ===================================================== 107include $(CLEAR_VARS) 108 109LOCAL_SRC_FILES := $(codegen_SRC_FILES) 110LOCAL_MODULE:= libLLVMCodeGen 111 112LOCAL_MODULE_TAGS := optional 113 114include $(LLVM_HOST_BUILD_MK) 115include $(LLVM_GEN_INTRINSICS_MK) 116include $(BUILD_HOST_STATIC_LIBRARY) 117 118# For the device 119# ===================================================== 120include $(CLEAR_VARS) 121 122LOCAL_SRC_FILES := $(codegen_SRC_FILES) 123LOCAL_MODULE:= libLLVMCodeGen 124 125LOCAL_MODULE_TAGS := optional 126 127include $(LLVM_DEVICE_BUILD_MK) 128include $(LLVM_GEN_INTRINSICS_MK) 129include $(BUILD_STATIC_LIBRARY) 130