<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >RegAlloc.Linear.Stats</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ><SCRIPT TYPE="text/javascript" >window.onload = function () {setSynopsis("mini_RegAlloc-Linear-Stats.html")};</SCRIPT ></HEAD ><BODY ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="topbar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" " ></TD ><TD CLASS="title" >ghc-6.12.3: The GHC API</TD ><TD CLASS="topbut" ><A HREF="src/RegAlloc-Linear-Stats.html" >Source code</A ></TD ><TD CLASS="topbut" ><A HREF="index.html" >Contents</A ></TD ><TD CLASS="topbut" ><A HREF="doc-index.html" >Index</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="modulebar" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD ><FONT SIZE="6" >RegAlloc.Linear.Stats</FONT ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Synopsis</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="body" ><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0" ><TR ><TD CLASS="decl" ><A HREF="#v%3AbinSpillReasons" >binSpillReasons</A > :: [<A HREF="RegAlloc-Linear-Base.html#t%3ASpillReason" >SpillReason</A >] -> <A HREF="UniqFM.html#t%3AUniqFM" >UniqFM</A > [<A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A >]</TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3AcountRegRegMovesNat" >countRegRegMovesNat</A > :: <A HREF="Instruction.html#t%3AInstruction" >Instruction</A > instr => <A HREF="Instruction.html#t%3ANatCmmTop" >NatCmmTop</A > instr -> <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ></TR ><TR ><TD CLASS="s8" ></TD ></TR ><TR ><TD CLASS="decl" ><A HREF="#v%3ApprStats" >pprStats</A > :: <A HREF="Instruction.html#t%3AInstruction" >Instruction</A > instr => [<A HREF="Instruction.html#t%3ANatCmmTop" >NatCmmTop</A > instr] -> [<A HREF="RegAlloc-Linear-Base.html#t%3ARegAllocStats" >RegAllocStats</A >] -> <A HREF="Outputable.html#t%3ASDoc" >SDoc</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="section1" >Documentation</TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:binSpillReasons" ><A NAME="v%3AbinSpillReasons" ></A ></A ><B >binSpillReasons</B > :: [<A HREF="RegAlloc-Linear-Base.html#t%3ASpillReason" >SpillReason</A >] -> <A HREF="UniqFM.html#t%3AUniqFM" >UniqFM</A > [<A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A >]</TD ><TD CLASS="declbut" ><A HREF="src/RegAlloc-Linear-Stats.html#binSpillReasons" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Build a map of how many times each reg was alloced, clobbered, loaded etc. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:countRegRegMovesNat" ><A NAME="v%3AcountRegRegMovesNat" ></A ></A ><B >countRegRegMovesNat</B > :: <A HREF="Instruction.html#t%3AInstruction" >Instruction</A > instr => <A HREF="Instruction.html#t%3ANatCmmTop" >NatCmmTop</A > instr -> <A HREF="../base-4.2.0.2/Data-Int.html#t%3AInt" >Int</A ></TD ><TD CLASS="declbut" ><A HREF="src/RegAlloc-Linear-Stats.html#countRegRegMovesNat" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Count reg-reg moves remaining in this code. </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="topdecl" ><TABLE CLASS="declbar" ><TR ><TD CLASS="declname" ><A NAME="v:pprStats" ><A NAME="v%3ApprStats" ></A ></A ><B >pprStats</B > :: <A HREF="Instruction.html#t%3AInstruction" >Instruction</A > instr => [<A HREF="Instruction.html#t%3ANatCmmTop" >NatCmmTop</A > instr] -> [<A HREF="RegAlloc-Linear-Base.html#t%3ARegAllocStats" >RegAllocStats</A >] -> <A HREF="Outputable.html#t%3ASDoc" >SDoc</A ></TD ><TD CLASS="declbut" ><A HREF="src/RegAlloc-Linear-Stats.html#pprStats" >Source</A ></TD ></TR ></TABLE ></TD ></TR ><TR ><TD CLASS="doc" >Pretty print some RegAllocStats </TD ></TR ><TR ><TD CLASS="s15" ></TD ></TR ><TR ><TD CLASS="botbar" >Produced by <A HREF="http://www.haskell.org/haddock/" >Haddock</A > version 2.6.1</TD ></TR ></TABLE ></BODY ></HTML >