Peter Collingbourne | 79bf113 | 2015-08-29 22:34:34 +0000 | [diff] [blame] | 1 | set(system_libs) |
2 | if(CMAKE_HOST_UNIX AND LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD) | ||||
3 | set(system_libs ${system_libs} pthread) | ||||
4 | endif() | ||||
5 | |||||
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 6 | add_llvm_library(LLVMCodeGen |
David Goodwin | de11f36 | 2009-10-26 19:32:42 +0000 | [diff] [blame] | 7 | AggressiveAntiDepBreaker.cpp |
Jakob Stoklund Olesen | 0c67e01 | 2010-12-10 18:36:02 +0000 | [diff] [blame] | 8 | AllocationOrder.cpp |
Ted Kremenek | d52caa5 | 2010-06-15 04:08:14 +0000 | [diff] [blame] | 9 | Analysis.cpp |
Robin Morisset | 59c23cd | 2014-08-21 21:50:01 +0000 | [diff] [blame] | 10 | AtomicExpandPass.cpp |
Chandler Carruth | 664e354 | 2013-01-07 01:37:14 +0000 | [diff] [blame] | 11 | BasicTargetTransformInfo.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 12 | BranchFolding.cpp |
Philip Reames | 3195500 | 2016-01-19 03:57:18 +0000 | [diff] [blame] | 13 | BuiltinGCs.cpp |
Lang Hames | c73ca2b | 2009-12-14 07:43:25 +0000 | [diff] [blame] | 14 | CalcSpillWeights.cpp |
Dan Gohman | 498e5f8 | 2010-07-07 15:15:27 +0000 | [diff] [blame] | 15 | CallingConvLower.cpp |
Owen Anderson | 80fc076 | 2010-10-07 18:41:20 +0000 | [diff] [blame] | 16 | CodeGen.cpp |
Quentin Colombet | a349084 | 2014-02-22 00:07:45 +0000 | [diff] [blame] | 17 | CodeGenPrepare.cpp |
David Goodwin | 8370485 | 2009-10-26 16:59:04 +0000 | [diff] [blame] | 18 | CriticalAntiDepBreaker.cpp |
Benjamin Kramer | 56b31bd | 2013-01-11 20:05:37 +0000 | [diff] [blame] | 19 | DeadMachineInstructionElim.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 20 | DFAPacketizer.cpp |
Duncan Sands | d6fb650 | 2009-05-22 20:36:31 +0000 | [diff] [blame] | 21 | DwarfEHPrepare.cpp |
Jakob Stoklund Olesen | f8a63a1 | 2012-07-04 00:09:54 +0000 | [diff] [blame] | 22 | EarlyIfConversion.cpp |
Jakob Stoklund Olesen | f96ae68 | 2011-01-04 21:10:05 +0000 | [diff] [blame] | 23 | EdgeBundles.cpp |
Jakob Stoklund Olesen | 934b7d7 | 2011-09-28 00:01:54 +0000 | [diff] [blame] | 24 | ExecutionDepsFix.cpp |
Dan Gohman | c2b7861 | 2010-11-18 18:45:06 +0000 | [diff] [blame] | 25 | ExpandISelPseudos.cpp |
Jakob Stoklund Olesen | f152df1 | 2011-09-25 16:46:00 +0000 | [diff] [blame] | 26 | ExpandPostRAPseudos.cpp |
Sanjoy Das | c63244d | 2015-06-15 18:44:08 +0000 | [diff] [blame] | 27 | FaultMaps.cpp |
David Majnemer | 9789023 | 2015-09-17 20:45:18 +0000 | [diff] [blame] | 28 | FuncletLayout.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 29 | GCMetadata.cpp |
30 | GCMetadataPrinter.cpp | ||||
Philip Reames | f27f373 | 2015-01-15 19:29:42 +0000 | [diff] [blame] | 31 | GCRootLowering.cpp |
Philip Reames | 56a0393 | 2015-01-26 18:26:35 +0000 | [diff] [blame] | 32 | GCStrategy.cpp |
Jiangning Liu | 96e92c1 | 2014-06-13 22:57:59 +0000 | [diff] [blame] | 33 | GlobalMerge.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 34 | IfConversion.cpp |
Sanjoy Das | 69fad07 | 2015-06-15 18:44:27 +0000 | [diff] [blame] | 35 | ImplicitNullChecks.cpp |
Jakob Stoklund Olesen | f888911 | 2010-06-29 23:58:39 +0000 | [diff] [blame] | 36 | InlineSpiller.cpp |
Jakob Stoklund Olesen | 91cbcaf | 2011-04-02 06:03:35 +0000 | [diff] [blame] | 37 | InterferenceCache.cpp |
Hao Liu | 1c1e0c9 | 2015-06-26 02:10:27 +0000 | [diff] [blame] | 38 | InterleavedAccessPass.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 39 | IntrinsicLowering.cpp |
Dan Gohman | 60cb69e | 2008-11-19 23:18:57 +0000 | [diff] [blame] | 40 | LatencyPriorityQueue.cpp |
Devang Patel | e1649c3 | 2011-08-10 19:04:06 +0000 | [diff] [blame] | 41 | LexicalScopes.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 42 | LiveDebugValues.cpp |
Jakob Stoklund Olesen | d4900a6 | 2010-11-30 02:17:10 +0000 | [diff] [blame] | 43 | LiveDebugVariables.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 44 | LiveIntervalAnalysis.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 45 | LiveInterval.cpp |
Andrew Trick | 1c24605 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 46 | LiveIntervalUnion.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 47 | LivePhysRegs.cpp |
Benjamin Kramer | 56b31bd | 2013-01-11 20:05:37 +0000 | [diff] [blame] | 48 | LiveRangeCalc.cpp |
49 | LiveRangeEdit.cpp | ||||
Jakob Stoklund Olesen | c26fbbf | 2012-06-09 02:13:10 +0000 | [diff] [blame] | 50 | LiveRegMatrix.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 51 | LiveStackAnalysis.cpp |
52 | LiveVariables.cpp | ||||
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 53 | LLVMTargetMachine.cpp |
Ted Kremenek | da2eba5 | 2010-08-14 01:55:09 +0000 | [diff] [blame] | 54 | LocalStackSlotAllocation.cpp |
Chih-Hung Hsieh | 5788640 | 2016-01-13 23:56:37 +0000 | [diff] [blame] | 55 | LowerEmuTLS.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 56 | MachineBasicBlock.cpp |
Jakub Staszak | 875ebd5 | 2011-07-25 19:25:40 +0000 | [diff] [blame] | 57 | MachineBlockFrequencyInfo.cpp |
Chandler Carruth | 1028142 | 2011-10-21 06:46:38 +0000 | [diff] [blame] | 58 | MachineBlockPlacement.cpp |
Jakub Staszak | 12a43bd | 2011-06-16 20:22:37 +0000 | [diff] [blame] | 59 | MachineBranchProbabilityInfo.cpp |
Gerolf Hoflehner | 5e1207e | 2014-08-03 21:35:39 +0000 | [diff] [blame] | 60 | MachineCombiner.cpp |
Evan Cheng | 00b1a3c | 2012-01-07 03:02:36 +0000 | [diff] [blame] | 61 | MachineCopyPropagation.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 62 | MachineCSE.cpp |
Matt Arsenault | 4181ea3 | 2014-07-12 21:59:52 +0000 | [diff] [blame] | 63 | MachineDominanceFrontier.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 64 | MachineDominators.cpp |
Ted Kremenek | defdbdc | 2009-07-31 18:50:22 +0000 | [diff] [blame] | 65 | MachineFunctionAnalysis.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 66 | MachineFunction.cpp |
Ted Kremenek | defdbdc | 2009-07-31 18:50:22 +0000 | [diff] [blame] | 67 | MachineFunctionPass.cpp |
David Greene | 9b063df | 2010-04-02 23:17:14 +0000 | [diff] [blame] | 68 | MachineFunctionPrinterPass.cpp |
NAKAMURA Takumi | 4c5ab7b | 2011-12-14 03:50:53 +0000 | [diff] [blame] | 69 | MachineInstrBundle.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 70 | MachineInstr.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 71 | MachineLICM.cpp |
72 | MachineLoopInfo.cpp | ||||
73 | MachineModuleInfo.cpp | ||||
Xerxes Ranby | 230c717 | 2009-09-16 10:18:36 +0000 | [diff] [blame] | 74 | MachineModuleInfoImpls.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 75 | MachinePassRegistry.cpp |
Benjamin Kramer | 56b31bd | 2013-01-11 20:05:37 +0000 | [diff] [blame] | 76 | MachinePostDominators.cpp |
Matt Arsenault | 1b8d837 | 2014-07-19 18:29:29 +0000 | [diff] [blame] | 77 | MachineRegionInfo.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 78 | MachineRegisterInfo.cpp |
Andrew Trick | e77e84e | 2012-01-13 06:30:30 +0000 | [diff] [blame] | 79 | MachineScheduler.cpp |
Ted Kremenek | 451a965 | 2010-01-13 01:02:47 +0000 | [diff] [blame] | 80 | MachineSink.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 81 | MachineSSAUpdater.cpp |
Jakob Stoklund Olesen | f9029fe | 2012-07-26 18:38:11 +0000 | [diff] [blame] | 82 | MachineTraceMetrics.cpp |
Jakob Stoklund Olesen | 36c027a | 2009-05-16 00:33:53 +0000 | [diff] [blame] | 83 | MachineVerifier.cpp |
Alex Lorenz | 345c144 | 2015-06-15 23:52:35 +0000 | [diff] [blame] | 84 | MIRPrinter.cpp |
Alex Lorenz | 2bdb4e1 | 2015-05-27 18:02:19 +0000 | [diff] [blame] | 85 | MIRPrintingPass.cpp |
Bob Wilson | 0827e04 | 2010-02-12 01:30:21 +0000 | [diff] [blame] | 86 | OptimizePHIs.cpp |
Peter Collingbourne | c269ed5 | 2015-08-27 23:37:36 +0000 | [diff] [blame] | 87 | ParallelCG.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 88 | Passes.cpp |
Bill Wendling | 8845140 | 2010-08-10 05:16:06 +0000 | [diff] [blame] | 89 | PeepholeOptimizer.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 90 | PHIElimination.cpp |
91 | PHIEliminationUtils.cpp | ||||
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 92 | PostRASchedulerList.cpp |
Douglas Gregor | 90790c7 | 2009-11-04 01:32:06 +0000 | [diff] [blame] | 93 | ProcessImplicitDefs.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 94 | PrologEpilogInserter.cpp |
95 | PseudoSourceValue.cpp | ||||
Jakob Stoklund Olesen | a818d80 | 2012-01-11 22:28:30 +0000 | [diff] [blame] | 96 | RegAllocBase.cpp |
Andrew Trick | 1c24605 | 2010-10-22 23:09:15 +0000 | [diff] [blame] | 97 | RegAllocBasic.cpp |
Jakob Stoklund Olesen | 8a070a5 | 2010-04-21 18:02:42 +0000 | [diff] [blame] | 98 | RegAllocFast.cpp |
Jakob Stoklund Olesen | b8812a1 | 2010-12-08 03:26:16 +0000 | [diff] [blame] | 99 | RegAllocGreedy.cpp |
Oscar Fuentes | b5abd78 | 2008-10-04 21:18:50 +0000 | [diff] [blame] | 100 | RegAllocPBQP.cpp |
Jakob Stoklund Olesen | c58894b | 2011-06-02 02:19:35 +0000 | [diff] [blame] | 101 | RegisterClassInfo.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 102 | RegisterCoalescer.cpp |
Andrew Trick | 26bdff9 | 2012-04-24 18:06:49 +0000 | [diff] [blame] | 103 | RegisterPressure.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 104 | RegisterScavenging.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 105 | SafeStack.cpp |
Dan Gohman | 60cb69e | 2008-11-19 23:18:57 +0000 | [diff] [blame] | 106 | ScheduleDAG.cpp |
Dan Gohman | 60cb69e | 2008-11-19 23:18:57 +0000 | [diff] [blame] | 107 | ScheduleDAGInstrs.cpp |
108 | ScheduleDAGPrinter.cpp | ||||
Chris Lattner | 878665b | 2011-01-09 21:31:39 +0000 | [diff] [blame] | 109 | ScoreboardHazardRecognizer.cpp |
Philip Reames | 23cf2e2 | 2015-01-28 19:28:03 +0000 | [diff] [blame] | 110 | ShadowStackGCLowering.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 111 | ShrinkWrap.cpp |
Benjamin Kramer | 436bd9f | 2009-08-17 18:47:11 +0000 | [diff] [blame] | 112 | SjLjEHPrepare.cpp |
Douglas Gregor | 90790c7 | 2009-11-04 01:32:06 +0000 | [diff] [blame] | 113 | SlotIndexes.cpp |
Jakob Stoklund Olesen | 8e236ea | 2011-01-06 01:21:53 +0000 | [diff] [blame] | 114 | SpillPlacement.cpp |
Jakob Stoklund Olesen | 36d12c6 | 2010-07-20 15:41:07 +0000 | [diff] [blame] | 115 | SplitKit.cpp |
Benjamin Kramer | 56b31bd | 2013-01-11 20:05:37 +0000 | [diff] [blame] | 116 | StackColoring.cpp |
Juergen Ributzka | e829475 | 2013-12-14 06:53:06 +0000 | [diff] [blame] | 117 | StackMapLivenessAnalysis.cpp |
Andrew Trick | 153ebe6 | 2013-10-31 22:11:56 +0000 | [diff] [blame] | 118 | StackMaps.cpp |
Benjamin Kramer | 390c33c | 2016-01-27 16:53:42 +0000 | [diff] [blame] | 119 | StackProtector.cpp |
120 | StackSlotColoring.cpp | ||||
Bob Wilson | 2d4ff12 | 2009-11-26 00:32:21 +0000 | [diff] [blame] | 121 | TailDuplication.cpp |
Nick Lewycky | c9e935c | 2011-12-15 22:58:58 +0000 | [diff] [blame] | 122 | TargetFrameLoweringImpl.cpp |
Jakob Stoklund Olesen | fcf14e8 | 2012-11-28 02:35:09 +0000 | [diff] [blame] | 123 | TargetInstrInfo.cpp |
Benjamin Kramer | 56b31bd | 2013-01-11 20:05:37 +0000 | [diff] [blame] | 124 | TargetLoweringBase.cpp |
Anton Korobeynikov | 1be2063a | 2010-02-15 22:55:13 +0000 | [diff] [blame] | 125 | TargetLoweringObjectFileImpl.cpp |
Nick Lewycky | c9e935c | 2011-12-15 22:58:58 +0000 | [diff] [blame] | 126 | TargetOptionsImpl.cpp |
Jakob Stoklund Olesen | fcf14e8 | 2012-11-28 02:35:09 +0000 | [diff] [blame] | 127 | TargetRegisterInfo.cpp |
Andrew Trick | d2a19da | 2012-09-14 20:26:46 +0000 | [diff] [blame] | 128 | TargetSchedule.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 129 | TwoAddressInstructionPass.cpp |
130 | UnreachableBlockElim.cpp | ||||
131 | VirtRegMap.cpp | ||||
Reid Kleckner | 1185fce | 2015-01-29 00:41:44 +0000 | [diff] [blame] | 132 | WinEHPrepare.cpp |
Zachary Turner | 3bd47ce | 2015-02-11 03:28:02 +0000 | [diff] [blame] | 133 | |
134 | ADDITIONAL_HEADER_DIRS | ||||
135 | ${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen | ||||
136 | ${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen/PBQP | ||||
Peter Collingbourne | 79bf113 | 2015-08-29 22:34:34 +0000 | [diff] [blame] | 137 | |
138 | LINK_LIBS ${system_libs} | ||||
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 139 | ) |
Oscar Fuentes | 5ed9626 | 2011-02-18 22:06:14 +0000 | [diff] [blame] | 140 | |
NAKAMURA Takumi | 704de07 | 2012-06-24 13:32:01 +0000 | [diff] [blame] | 141 | add_dependencies(LLVMCodeGen intrinsics_gen) |
142 | |||||
Oscar Fuentes | 5ed9626 | 2011-02-18 22:06:14 +0000 | [diff] [blame] | 143 | add_subdirectory(SelectionDAG) |
144 | add_subdirectory(AsmPrinter) | ||||
Alex Lorenz | 2bdb4e1 | 2015-05-27 18:02:19 +0000 | [diff] [blame] | 145 | add_subdirectory(MIRParser) |
Quentin Colombet | bde158c | 2016-02-11 19:18:27 +0000 | [diff] [blame^] | 146 | add_subdirectory(GlobalISel) |