1 LOCAL_PATH:= $(call my-dir) 2 3 codegen_SRC_FILES := \ 4 AggressiveAntiDepBreaker.cpp \ 5 AllocationOrder.cpp \ 6 Analysis.cpp \ 7 AtomicExpandPass.cpp \ 8 BasicTargetTransformInfo.cpp \ 9 BranchFolding.cpp \ 10 CalcSpillWeights.cpp \ 11 CallingConvLower.cpp \ 12 CodeGen.cpp \ 13 CodeGenPrepare.cpp \ 14 CoreCLRGC.cpp \ 15 CriticalAntiDepBreaker.cpp \ 16 DeadMachineInstructionElim.cpp \ 17 DFAPacketizer.cpp \ 18 DwarfEHPrepare.cpp \ 19 EarlyIfConversion.cpp \ 20 EdgeBundles.cpp \ 21 ErlangGC.cpp \ 22 ExecutionDepsFix.cpp \ 23 ExpandISelPseudos.cpp \ 24 ExpandPostRAPseudos.cpp \ 25 FaultMaps.cpp \ 26 FuncletLayout.cpp \ 27 GCMetadata.cpp \ 28 GCMetadataPrinter.cpp \ 29 GCRootLowering.cpp \ 30 GCStrategy.cpp \ 31 GlobalMerge.cpp \ 32 IfConversion.cpp \ 33 ImplicitNullChecks.cpp \ 34 InlineSpiller.cpp \ 35 InterferenceCache.cpp \ 36 InterleavedAccessPass.cpp \ 37 IntrinsicLowering.cpp \ 38 LatencyPriorityQueue.cpp \ 39 LexicalScopes.cpp \ 40 LiveDebugValues.cpp \ 41 LiveDebugVariables.cpp \ 42 LiveIntervalAnalysis.cpp \ 43 LiveInterval.cpp \ 44 LiveIntervalUnion.cpp \ 45 LivePhysRegs.cpp \ 46 LiveRangeCalc.cpp \ 47 LiveRangeEdit.cpp \ 48 LiveRegMatrix.cpp \ 49 LiveStackAnalysis.cpp \ 50 LiveVariables.cpp \ 51 LLVMTargetMachine.cpp \ 52 LocalStackSlotAllocation.cpp \ 53 LowerEmuTLS.cpp \ 54 MachineBasicBlock.cpp \ 55 MachineBlockFrequencyInfo.cpp \ 56 MachineBlockPlacement.cpp \ 57 MachineBranchProbabilityInfo.cpp \ 58 MachineCombiner.cpp \ 59 MachineCopyPropagation.cpp \ 60 MachineCSE.cpp \ 61 MachineDominanceFrontier.cpp \ 62 MachineDominators.cpp \ 63 MachineFunctionAnalysis.cpp \ 64 MachineFunction.cpp \ 65 MachineFunctionPass.cpp \ 66 MachineFunctionPrinterPass.cpp \ 67 MachineInstrBundle.cpp \ 68 MachineInstr.cpp \ 69 MachineLICM.cpp \ 70 MachineLoopInfo.cpp \ 71 MachineModuleInfo.cpp \ 72 MachineModuleInfoImpls.cpp \ 73 MachinePassRegistry.cpp \ 74 MachinePostDominators.cpp \ 75 MachineRegionInfo.cpp \ 76 MachineRegisterInfo.cpp \ 77 MachineScheduler.cpp \ 78 MachineSink.cpp \ 79 MachineSSAUpdater.cpp \ 80 MachineTraceMetrics.cpp \ 81 MachineVerifier.cpp \ 82 MIRPrinter.cpp \ 83 MIRPrintingPass.cpp \ 84 OcamlGC.cpp \ 85 OptimizePHIs.cpp \ 86 ParallelCG.cpp \ 87 Passes.cpp \ 88 PeepholeOptimizer.cpp \ 89 PHIElimination.cpp \ 90 PHIEliminationUtils.cpp \ 91 PostRASchedulerList.cpp \ 92 ProcessImplicitDefs.cpp \ 93 PrologEpilogInserter.cpp \ 94 PseudoSourceValue.cpp \ 95 RegAllocBase.cpp \ 96 RegAllocBasic.cpp \ 97 RegAllocFast.cpp \ 98 RegAllocGreedy.cpp \ 99 RegAllocPBQP.cpp \ 100 RegisterClassInfo.cpp \ 101 RegisterCoalescer.cpp \ 102 RegisterPressure.cpp \ 103 RegisterScavenging.cpp \ 104 ScheduleDAG.cpp \ 105 ScheduleDAGInstrs.cpp \ 106 ScheduleDAGPrinter.cpp \ 107 ScoreboardHazardRecognizer.cpp \ 108 ShrinkWrap.cpp \ 109 ShadowStackGC.cpp \ 110 ShadowStackGCLowering.cpp \ 111 SjLjEHPrepare.cpp \ 112 SlotIndexes.cpp \ 113 SpillPlacement.cpp \ 114 SplitKit.cpp \ 115 StackColoring.cpp \ 116 StackMapLivenessAnalysis.cpp \ 117 StackMaps.cpp \ 118 StackProtector.cpp \ 119 StackSlotColoring.cpp \ 120 StatepointExampleGC.cpp \ 121 TailDuplication.cpp \ 122 TargetFrameLoweringImpl.cpp \ 123 TargetInstrInfo.cpp \ 124 TargetLoweringBase.cpp \ 125 TargetLoweringObjectFileImpl.cpp \ 126 TargetOptionsImpl.cpp \ 127 TargetRegisterInfo.cpp \ 128 TargetSchedule.cpp \ 129 TwoAddressInstructionPass.cpp \ 130 UnreachableBlockElim.cpp \ 131 VirtRegMap.cpp \ 132 WinEHPrepare.cpp 133 134 # For the host 135 # ===================================================== 136 include $(CLEAR_VARS) 137 138 LOCAL_SRC_FILES := $(codegen_SRC_FILES) 139 LOCAL_MODULE:= libLLVMCodeGen 140 141 LOCAL_MODULE_HOST_OS := darwin linux windows 142 143 include $(LLVM_HOST_BUILD_MK) 144 include $(LLVM_GEN_ATTRIBUTES_MK) 145 include $(LLVM_GEN_INTRINSICS_MK) 146 include $(BUILD_HOST_STATIC_LIBRARY) 147 148 # For the device 149 # ===================================================== 150 ifneq (true,$(DISABLE_LLVM_DEVICE_BUILDS)) 151 include $(CLEAR_VARS) 152 153 LOCAL_SRC_FILES := $(codegen_SRC_FILES) 154 LOCAL_MODULE:= libLLVMCodeGen 155 156 include $(LLVM_DEVICE_BUILD_MK) 157 include $(LLVM_GEN_ATTRIBUTES_MK) 158 include $(LLVM_GEN_INTRINSICS_MK) 159 include $(BUILD_STATIC_LIBRARY) 160 endif 161