2008-09-22 01:08:49 +00:00
|
|
|
add_llvm_library(LLVMCodeGen
|
2009-10-26 19:32:42 +00:00
|
|
|
AggressiveAntiDepBreaker.cpp
|
2010-12-10 18:36:02 +00:00
|
|
|
AllocationOrder.cpp
|
2010-06-15 04:08:14 +00:00
|
|
|
Analysis.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
BranchFolding.cpp
|
2009-12-14 07:43:25 +00:00
|
|
|
CalcSpillWeights.cpp
|
2010-07-07 15:15:27 +00:00
|
|
|
CallingConvLower.cpp
|
2010-10-07 18:41:20 +00:00
|
|
|
CodeGen.cpp
|
2009-05-07 05:42:24 +00:00
|
|
|
CodePlacementOpt.cpp
|
2009-10-26 16:59:04 +00:00
|
|
|
CriticalAntiDepBreaker.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
DeadMachineInstructionElim.cpp
|
2009-05-22 20:36:31 +00:00
|
|
|
DwarfEHPrepare.cpp
|
2011-01-04 21:10:05 +00:00
|
|
|
EdgeBundles.cpp
|
2009-06-03 17:47:27 +00:00
|
|
|
ELFCodeEmitter.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
ELFWriter.cpp
|
2011-09-28 00:01:54 +00:00
|
|
|
ExecutionDepsFix.cpp
|
2010-11-18 18:45:06 +00:00
|
|
|
ExpandISelPseudos.cpp
|
2011-09-25 16:46:00 +00:00
|
|
|
ExpandPostRAPseudos.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
GCMetadata.cpp
|
|
|
|
GCMetadataPrinter.cpp
|
|
|
|
GCStrategy.cpp
|
|
|
|
IfConversion.cpp
|
2010-06-29 23:58:39 +00:00
|
|
|
InlineSpiller.cpp
|
2011-04-02 06:03:35 +00:00
|
|
|
InterferenceCache.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
IntrinsicLowering.cpp
|
|
|
|
LLVMTargetMachine.cpp
|
2008-11-19 23:18:57 +00:00
|
|
|
LatencyPriorityQueue.cpp
|
2011-08-10 19:04:06 +00:00
|
|
|
LexicalScopes.cpp
|
2010-11-30 02:17:10 +00:00
|
|
|
LiveDebugVariables.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
LiveInterval.cpp
|
|
|
|
LiveIntervalAnalysis.cpp
|
2010-10-22 23:09:15 +00:00
|
|
|
LiveIntervalUnion.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
LiveStackAnalysis.cpp
|
|
|
|
LiveVariables.cpp
|
2011-09-13 01:34:21 +00:00
|
|
|
LiveRangeCalc.cpp
|
2010-10-14 23:49:52 +00:00
|
|
|
LiveRangeEdit.cpp
|
2010-08-14 01:55:09 +00:00
|
|
|
LocalStackSlotAllocation.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
MachineBasicBlock.cpp
|
2011-07-25 19:25:40 +00:00
|
|
|
MachineBlockFrequencyInfo.cpp
|
Implement a block placement pass based on the branch probability and
block frequency analyses. This differs substantially from the existing
block-placement pass in LLVM:
1) It operates on the Machine-IR in the CodeGen layer. This exposes much
more (and more precise) information and opportunities. Also, the
results are more stable due to fewer transforms ocurring after the
pass runs.
2) It uses the generalized probability and frequency analyses. These can
model static heuristics, code annotation derived heuristics as well
as eventual profile loading. By basing the optimization on the
analysis interface it can work from any (or a combination) of these
inputs.
3) It uses a more aggressive algorithm, both building chains from tho
bottom up to maximize benefit, and using an SCC-based walk to layout
chains of blocks in a profitable ordering without O(N^2) iterations
which the old pass involves.
The pass is currently gated behind a flag, and not enabled by default
because it still needs to grow some important features. Most notably, it
needs to support loop aligning and careful layout of loop structures
much as done by hand currently in CodePlacementOpt. Once it supports
these, and has sufficient testing and quality tuning, it should replace
both of these passes.
Thanks to Nick Lewycky and Richard Smith for help authoring & debugging
this, and to Jakob, Andy, Eric, Jim, and probably a few others I'm
forgetting for reviewing and answering all my questions. Writing
a backend pass is *sooo* much better now than it used to be. =D
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142641 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-21 06:46:38 +00:00
|
|
|
MachineBlockPlacement.cpp
|
2011-06-16 20:22:37 +00:00
|
|
|
MachineBranchProbabilityInfo.cpp
|
2010-03-02 02:49:43 +00:00
|
|
|
MachineCSE.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
MachineDominators.cpp
|
|
|
|
MachineFunction.cpp
|
2009-07-31 18:50:22 +00:00
|
|
|
MachineFunctionAnalysis.cpp
|
|
|
|
MachineFunctionPass.cpp
|
2010-04-02 23:17:14 +00:00
|
|
|
MachineFunctionPrinterPass.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
MachineInstr.cpp
|
|
|
|
MachineLICM.cpp
|
|
|
|
MachineLoopInfo.cpp
|
2010-12-15 23:41:23 +00:00
|
|
|
MachineLoopRanges.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
MachineModuleInfo.cpp
|
2009-09-16 10:18:36 +00:00
|
|
|
MachineModuleInfoImpls.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
MachinePassRegistry.cpp
|
|
|
|
MachineRegisterInfo.cpp
|
2009-12-02 22:19:31 +00:00
|
|
|
MachineSSAUpdater.cpp
|
2010-01-13 01:02:47 +00:00
|
|
|
MachineSink.cpp
|
2009-05-16 00:33:53 +00:00
|
|
|
MachineVerifier.cpp
|
2009-07-06 14:28:32 +00:00
|
|
|
ObjectCodeEmitter.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
OcamlGC.cpp
|
2010-02-12 01:30:21 +00:00
|
|
|
OptimizePHIs.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
PHIElimination.cpp
|
2010-12-05 19:51:05 +00:00
|
|
|
PHIEliminationUtils.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
Passes.cpp
|
2010-08-10 05:16:06 +00:00
|
|
|
PeepholeOptimizer.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
PostRASchedulerList.cpp
|
2009-11-04 01:32:06 +00:00
|
|
|
ProcessImplicitDefs.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
PrologEpilogInserter.cpp
|
|
|
|
PseudoSourceValue.cpp
|
2010-10-22 23:09:15 +00:00
|
|
|
RegAllocBasic.cpp
|
2010-04-21 18:02:42 +00:00
|
|
|
RegAllocFast.cpp
|
2010-12-08 03:26:16 +00:00
|
|
|
RegAllocGreedy.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
RegAllocLinearScan.cpp
|
2008-10-04 21:18:50 +00:00
|
|
|
RegAllocPBQP.cpp
|
2011-06-02 02:19:35 +00:00
|
|
|
RegisterClassInfo.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
RegisterCoalescer.cpp
|
|
|
|
RegisterScavenging.cpp
|
2010-07-19 15:37:03 +00:00
|
|
|
RenderMachineFunction.cpp
|
2008-11-19 23:18:57 +00:00
|
|
|
ScheduleDAG.cpp
|
|
|
|
ScheduleDAGEmit.cpp
|
|
|
|
ScheduleDAGInstrs.cpp
|
|
|
|
ScheduleDAGPrinter.cpp
|
2011-01-09 21:31:39 +00:00
|
|
|
ScoreboardHazardRecognizer.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
ShadowStackGC.cpp
|
2009-05-13 06:27:38 +00:00
|
|
|
ShrinkWrapping.cpp
|
2009-08-17 18:47:11 +00:00
|
|
|
SjLjEHPrepare.cpp
|
2009-11-04 01:32:06 +00:00
|
|
|
SlotIndexes.cpp
|
2009-05-19 00:18:14 +00:00
|
|
|
Spiller.cpp
|
2011-01-06 01:21:53 +00:00
|
|
|
SpillPlacement.cpp
|
2010-07-20 15:41:07 +00:00
|
|
|
SplitKit.cpp
|
2010-07-17 12:12:42 +00:00
|
|
|
Splitter.cpp
|
2008-11-04 03:24:04 +00:00
|
|
|
StackProtector.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
StackSlotColoring.cpp
|
|
|
|
StrongPHIElimination.cpp
|
2009-11-26 00:32:21 +00:00
|
|
|
TailDuplication.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
TargetInstrInfoImpl.cpp
|
2010-02-15 22:55:13 +00:00
|
|
|
TargetLoweringObjectFileImpl.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
TwoAddressInstructionPass.cpp
|
|
|
|
UnreachableBlockElim.cpp
|
|
|
|
VirtRegMap.cpp
|
2009-05-06 14:56:40 +00:00
|
|
|
VirtRegRewriter.cpp
|
2008-09-22 01:08:49 +00:00
|
|
|
)
|
2011-02-18 22:06:14 +00:00
|
|
|
|
Rewrite the CMake build to use explicit dependencies between libraries,
specified in the same file that the library itself is created. This is
more idiomatic for CMake builds, and also allows us to correctly specify
dependencies that are missed due to bugs in the GenLibDeps perl script,
or change from compiler to compiler. On Linux, this returns CMake to
a place where it can relably rebuild several targets of LLVM.
I have tried not to change the dependencies from the ones in the current
auto-generated file. The only places I've really diverged are in places
where I was seeing link failures, and added a dependency. The goal of
this patch is not to start changing the dependencies, merely to move
them into the correct location, and an explicit form that we can control
and change when necessary.
This also removes a serialization point in the build because we don't
have to scan all the libraries before we begin building various tools.
We no longer have a step of the build that regenerates a file inside the
source tree. A few other associated cleanups fall out of this.
This isn't really finished yet though. After talking to dgregor he urged
switching to a single CMake macro to construct libraries with both
sources and dependencies in the arguments. Migrating from the two macros
to that style will be a follow-up patch.
Also, llvm-config is still generated with GenLibDeps.pl, which means it
still has slightly buggy dependencies. The internal CMake
'llvm-config-like' macro uses the correct explicitly specified
dependencies however. A future patch will switch llvm-config generation
(when using CMake) to be based on these deps as well.
This may well break Windows. I'm getting a machine set up now to dig
into any failures there. If anyone can chime in with problems they see
or ideas of how to solve them for Windows, much appreciated.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136433 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-29 00:14:25 +00:00
|
|
|
add_llvm_library_dependencies(LLVMCodeGen
|
|
|
|
LLVMAnalysis
|
|
|
|
LLVMCore
|
|
|
|
LLVMMC
|
|
|
|
LLVMScalarOpts
|
|
|
|
LLVMSupport
|
|
|
|
LLVMTarget
|
|
|
|
LLVMTransformUtils
|
|
|
|
)
|
|
|
|
|
2011-02-18 22:06:14 +00:00
|
|
|
add_subdirectory(SelectionDAG)
|
|
|
|
add_subdirectory(AsmPrinter)
|