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