aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/RegAllocPBQP.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2010-07-19 15:22:28 +0000
committerLang Hames <lhames@gmail.com>2010-07-19 15:22:28 +0000
commit54cc2efb4e6ba3022ec297746b14a129d97fc07b (patch)
tree6cd60bbee224422d847ff0580f6981a476ce25e7 /lib/CodeGen/RegAllocPBQP.cpp
parentb68f7aea33fd8510e441a1a9a38f3920a9e5db0c (diff)
downloadexternal_llvm-54cc2efb4e6ba3022ec297746b14a129d97fc07b.zip
external_llvm-54cc2efb4e6ba3022ec297746b14a129d97fc07b.tar.gz
external_llvm-54cc2efb4e6ba3022ec297746b14a129d97fc07b.tar.bz2
Render MachineFunctions to HTML pages, with options to render register
pressure estimates and liveness alongside. Still experimental. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r--lib/CodeGen/RegAllocPBQP.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp
index ea2a02d..7b21ec3 100644
--- a/lib/CodeGen/RegAllocPBQP.cpp
+++ b/lib/CodeGen/RegAllocPBQP.cpp
@@ -34,6 +34,7 @@
#include "PBQP/HeuristicSolver.h"
#include "PBQP/Graph.h"
#include "PBQP/Heuristics/Briggs.h"
+#include "RenderMachineFunction.h"
#include "Splitter.h"
#include "VirtRegMap.h"
#include "VirtRegRewriter.h"
@@ -105,6 +106,7 @@ namespace {
if (pbqpPreSplitting)
au.addRequired<LoopSplitter>();
au.addRequired<VirtRegMap>();
+ au.addRequired<RenderMachineFunction>();
MachineFunctionPass::getAnalysisUsage(au);
}
@@ -866,6 +868,9 @@ bool PBQPRegAlloc::runOnMachineFunction(MachineFunction &MF) {
vrm = &getAnalysis<VirtRegMap>();
+ RenderMachineFunction *rmf = &getAnalysis<RenderMachineFunction>();
+ rmf->renderMachineFunction("Prior to PBQP register allocation.");
+
DEBUG(dbgs() << "PBQP Register Allocating for " << mf->getFunction()->getName() << "\n");
// Allocator main loop: