From 54cc2efb4e6ba3022ec297746b14a129d97fc07b Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Mon, 19 Jul 2010 15:22:28 +0000 Subject: 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 --- lib/CodeGen/RegAllocPBQP.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/CodeGen/RegAllocPBQP.cpp') diff --git a/lib/CodeGen/RegAllocPBQP.cpp b/lib/CodeGen/RegAllocPBQP.cpp index ea2a02ddff..7b21ec3c4f 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(); au.addRequired(); + au.addRequired(); MachineFunctionPass::getAnalysisUsage(au); } @@ -866,6 +868,9 @@ bool PBQPRegAlloc::runOnMachineFunction(MachineFunction &MF) { vrm = &getAnalysis(); + RenderMachineFunction *rmf = &getAnalysis(); + rmf->renderMachineFunction("Prior to PBQP register allocation."); + DEBUG(dbgs() << "PBQP Register Allocating for " << mf->getFunction()->getName() << "\n"); // Allocator main loop: -- cgit v1.2.3-70-g09d2