2008-09-22 03:08:49 +02:00
|
|
|
add_llvm_library(LLVMCodeGen
|
2009-10-26 20:32:42 +01:00
|
|
|
AggressiveAntiDepBreaker.cpp
|
2010-12-10 19:36:02 +01:00
|
|
|
AllocationOrder.cpp
|
2010-06-15 06:08:14 +02:00
|
|
|
Analysis.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
BranchFolding.cpp
|
2009-12-14 08:43:25 +01:00
|
|
|
CalcSpillWeights.cpp
|
2010-07-07 17:15:27 +02:00
|
|
|
CallingConvLower.cpp
|
2010-10-07 20:41:20 +02:00
|
|
|
CodeGen.cpp
|
2009-05-07 07:42:24 +02:00
|
|
|
CodePlacementOpt.cpp
|
2009-10-26 17:59:04 +01:00
|
|
|
CriticalAntiDepBreaker.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
DeadMachineInstructionElim.cpp
|
2011-12-01 22:49:23 +01:00
|
|
|
DFAPacketizer.cpp
|
2009-05-22 22:36:31 +02:00
|
|
|
DwarfEHPrepare.cpp
|
2011-01-04 22:10:05 +01:00
|
|
|
EdgeBundles.cpp
|
2011-09-28 02:01:54 +02:00
|
|
|
ExecutionDepsFix.cpp
|
2010-11-18 19:45:06 +01:00
|
|
|
ExpandISelPseudos.cpp
|
2011-09-25 18:46:00 +02:00
|
|
|
ExpandPostRAPseudos.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
GCMetadata.cpp
|
|
|
|
GCMetadataPrinter.cpp
|
|
|
|
GCStrategy.cpp
|
|
|
|
IfConversion.cpp
|
2010-06-30 01:58:39 +02:00
|
|
|
InlineSpiller.cpp
|
2011-04-02 08:03:35 +02:00
|
|
|
InterferenceCache.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
IntrinsicLowering.cpp
|
2011-12-20 09:42:11 +01:00
|
|
|
JITCodeEmitter.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
LLVMTargetMachine.cpp
|
2008-11-20 00:18:57 +01:00
|
|
|
LatencyPriorityQueue.cpp
|
2011-08-10 21:04:06 +02:00
|
|
|
LexicalScopes.cpp
|
2010-11-30 03:17:10 +01:00
|
|
|
LiveDebugVariables.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
LiveInterval.cpp
|
|
|
|
LiveIntervalAnalysis.cpp
|
2010-10-23 01:09:15 +02:00
|
|
|
LiveIntervalUnion.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
LiveStackAnalysis.cpp
|
|
|
|
LiveVariables.cpp
|
2011-09-13 03:34:21 +02:00
|
|
|
LiveRangeCalc.cpp
|
2010-10-15 01:49:52 +02:00
|
|
|
LiveRangeEdit.cpp
|
2010-08-14 03:55:09 +02:00
|
|
|
LocalStackSlotAllocation.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
MachineBasicBlock.cpp
|
2011-07-25 21:25:40 +02: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
llvm-svn: 142641
2011-10-21 08:46:38 +02:00
|
|
|
MachineBlockPlacement.cpp
|
2011-06-16 22:22:37 +02:00
|
|
|
MachineBranchProbabilityInfo.cpp
|
2011-12-20 09:42:11 +01:00
|
|
|
MachineCodeEmitter.cpp
|
2012-01-07 04:02:36 +01:00
|
|
|
MachineCopyPropagation.cpp
|
2010-03-02 03:49:43 +01:00
|
|
|
MachineCSE.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
MachineDominators.cpp
|
|
|
|
MachineFunction.cpp
|
2009-07-31 20:50:22 +02:00
|
|
|
MachineFunctionAnalysis.cpp
|
|
|
|
MachineFunctionPass.cpp
|
2010-04-03 01:17:14 +02:00
|
|
|
MachineFunctionPrinterPass.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
MachineInstr.cpp
|
2011-12-14 04:50:53 +01:00
|
|
|
MachineInstrBundle.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
MachineLICM.cpp
|
|
|
|
MachineLoopInfo.cpp
|
2010-12-16 00:41:23 +01:00
|
|
|
MachineLoopRanges.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
MachineModuleInfo.cpp
|
2009-09-16 12:18:36 +02:00
|
|
|
MachineModuleInfoImpls.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
MachinePassRegistry.cpp
|
|
|
|
MachineRegisterInfo.cpp
|
2009-12-02 23:19:31 +01:00
|
|
|
MachineSSAUpdater.cpp
|
2012-01-13 07:30:30 +01:00
|
|
|
MachineScheduler.cpp
|
2010-01-13 02:02:47 +01:00
|
|
|
MachineSink.cpp
|
2009-05-16 02:33:53 +02:00
|
|
|
MachineVerifier.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
OcamlGC.cpp
|
2010-02-12 02:30:21 +01:00
|
|
|
OptimizePHIs.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
PHIElimination.cpp
|
2010-12-05 20:51:05 +01:00
|
|
|
PHIEliminationUtils.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
Passes.cpp
|
2010-08-10 07:16:06 +02:00
|
|
|
PeepholeOptimizer.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
PostRASchedulerList.cpp
|
2009-11-04 02:32:06 +01:00
|
|
|
ProcessImplicitDefs.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
PrologEpilogInserter.cpp
|
|
|
|
PseudoSourceValue.cpp
|
2012-01-11 23:28:30 +01:00
|
|
|
RegAllocBase.cpp
|
2010-10-23 01:09:15 +02:00
|
|
|
RegAllocBasic.cpp
|
2010-04-21 20:02:42 +02:00
|
|
|
RegAllocFast.cpp
|
2010-12-08 04:26:16 +01:00
|
|
|
RegAllocGreedy.cpp
|
2008-10-04 23:18:50 +02:00
|
|
|
RegAllocPBQP.cpp
|
2011-06-02 04:19:35 +02:00
|
|
|
RegisterClassInfo.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
RegisterCoalescer.cpp
|
2012-04-24 20:06:49 +02:00
|
|
|
RegisterPressure.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
RegisterScavenging.cpp
|
2010-07-19 17:37:03 +02:00
|
|
|
RenderMachineFunction.cpp
|
2008-11-20 00:18:57 +01:00
|
|
|
ScheduleDAG.cpp
|
|
|
|
ScheduleDAGInstrs.cpp
|
|
|
|
ScheduleDAGPrinter.cpp
|
2011-01-09 22:31:39 +01:00
|
|
|
ScoreboardHazardRecognizer.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
ShadowStackGC.cpp
|
2009-05-13 08:27:38 +02:00
|
|
|
ShrinkWrapping.cpp
|
2009-08-17 20:47:11 +02:00
|
|
|
SjLjEHPrepare.cpp
|
2009-11-04 02:32:06 +01:00
|
|
|
SlotIndexes.cpp
|
2009-05-19 02:18:14 +02:00
|
|
|
Spiller.cpp
|
2011-01-06 02:21:53 +01:00
|
|
|
SpillPlacement.cpp
|
2010-07-20 17:41:07 +02:00
|
|
|
SplitKit.cpp
|
2008-11-04 04:24:04 +01:00
|
|
|
StackProtector.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
StackSlotColoring.cpp
|
|
|
|
StrongPHIElimination.cpp
|
2009-11-26 01:32:21 +01:00
|
|
|
TailDuplication.cpp
|
2011-12-15 23:58:58 +01:00
|
|
|
TargetFrameLoweringImpl.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
TargetInstrInfoImpl.cpp
|
2010-02-15 23:55:13 +01:00
|
|
|
TargetLoweringObjectFileImpl.cpp
|
2011-12-15 23:58:58 +01:00
|
|
|
TargetOptionsImpl.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
TwoAddressInstructionPass.cpp
|
|
|
|
UnreachableBlockElim.cpp
|
|
|
|
VirtRegMap.cpp
|
|
|
|
)
|
2011-02-18 23:06:14 +01:00
|
|
|
|
|
|
|
add_subdirectory(SelectionDAG)
|
|
|
|
add_subdirectory(AsmPrinter)
|