Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 6e204a966e8c42d976f99a1700ce5f20 > files > 3005

ghc-7.4.2-4.mga5.i586.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>RegAlloc.Graph.SpillCost</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_RegAlloc-Graph-SpillCost.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">ghc-7.4.2: The GHC API</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">RegAlloc.Graph.SpillCost</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">type</span> <a href="#t:SpillCostRecord">SpillCostRecord</a> = (<a href="Reg.html#t:VirtualReg">VirtualReg</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:plusSpillCostRecord">plusSpillCostRecord</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a></li><li class="src short"><a href="#v:pprSpillCostRecord">pprSpillCostRecord</a> :: (<a href="Reg.html#t:VirtualReg">VirtualReg</a> -&gt; <a href="RegClass.html#t:RegClass">RegClass</a>) -&gt; (<a href="Reg.html#t:Reg">Reg</a> -&gt; <a href="Outputable.html#t:SDoc">SDoc</a>) -&gt; <a href="GraphBase.html#t:Graph">Graph</a> <a href="Reg.html#t:VirtualReg">VirtualReg</a> <a href="RegClass.html#t:RegClass">RegClass</a> <a href="Reg.html#t:RealReg">RealReg</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a> -&gt; <a href="Outputable.html#t:SDoc">SDoc</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:SpillCostInfo">SpillCostInfo</a> = <a href="UniqFM.html#t:UniqFM">UniqFM</a> <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a></li><li class="src short"><a href="#v:zeroSpillCostInfo">zeroSpillCostInfo</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a></li><li class="src short"><a href="#v:plusSpillCostInfo">plusSpillCostInfo</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a></li><li class="src short"><a href="#v:slurpSpillCostInfo">slurpSpillCostInfo</a> :: (<a href="Outputable.html#t:PlatformOutputable">PlatformOutputable</a> instr, <a href="Instruction.html#t:Instruction">Instruction</a> instr) =&gt; <a href="Platform.html#t:Platform">Platform</a> -&gt; <a href="RegAlloc-Liveness.html#t:LiveCmmDecl">LiveCmmDecl</a> statics instr -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a></li><li class="src short"><a href="#v:chooseSpill">chooseSpill</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="GraphBase.html#t:Graph">Graph</a> <a href="Reg.html#t:VirtualReg">VirtualReg</a> <a href="RegClass.html#t:RegClass">RegClass</a> <a href="Reg.html#t:RealReg">RealReg</a> -&gt; <a href="Reg.html#t:VirtualReg">VirtualReg</a></li><li class="src short"><a href="#v:lifeMapFromSpillCostInfo">lifeMapFromSpillCostInfo</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="UniqFM.html#t:UniqFM">UniqFM</a> (<a href="Reg.html#t:VirtualReg">VirtualReg</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>)</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:SpillCostRecord" class="def">SpillCostRecord</a> = (<a href="Reg.html#t:VirtualReg">VirtualReg</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>)</p></div><div class="top"><p class="src"><a name="v:plusSpillCostRecord" class="def">plusSpillCostRecord</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a></p></div><div class="top"><p class="src"><a name="v:pprSpillCostRecord" class="def">pprSpillCostRecord</a> :: (<a href="Reg.html#t:VirtualReg">VirtualReg</a> -&gt; <a href="RegClass.html#t:RegClass">RegClass</a>) -&gt; (<a href="Reg.html#t:Reg">Reg</a> -&gt; <a href="Outputable.html#t:SDoc">SDoc</a>) -&gt; <a href="GraphBase.html#t:Graph">Graph</a> <a href="Reg.html#t:VirtualReg">VirtualReg</a> <a href="RegClass.html#t:RegClass">RegClass</a> <a href="Reg.html#t:RealReg">RealReg</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a> -&gt; <a href="Outputable.html#t:SDoc">SDoc</a></p><div class="doc"><p>Show a spill cost record, including the degree from the graph and final calulated spill cos
</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:SpillCostInfo" class="def">SpillCostInfo</a> = <a href="UniqFM.html#t:UniqFM">UniqFM</a> <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostRecord">SpillCostRecord</a></p></div><div class="top"><p class="src"><a name="v:zeroSpillCostInfo" class="def">zeroSpillCostInfo</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a></p></div><div class="top"><p class="src"><a name="v:plusSpillCostInfo" class="def">plusSpillCostInfo</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a></p><div class="doc"><p>Add two spillCostInfos
</p></div></div><div class="top"><p class="src"><a name="v:slurpSpillCostInfo" class="def">slurpSpillCostInfo</a> :: (<a href="Outputable.html#t:PlatformOutputable">PlatformOutputable</a> instr, <a href="Instruction.html#t:Instruction">Instruction</a> instr) =&gt; <a href="Platform.html#t:Platform">Platform</a> -&gt; <a href="RegAlloc-Liveness.html#t:LiveCmmDecl">LiveCmmDecl</a> statics instr -&gt; <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a></p><div class="doc"><p>Slurp out information used for determining spill costs
	for each vreg, the number of times it was written to, read from,
	and the number of instructions it was live on entry to (lifetime)
</p></div></div><div class="top"><p class="src"><a name="v:chooseSpill" class="def">chooseSpill</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="GraphBase.html#t:Graph">Graph</a> <a href="Reg.html#t:VirtualReg">VirtualReg</a> <a href="RegClass.html#t:RegClass">RegClass</a> <a href="Reg.html#t:RealReg">RealReg</a> -&gt; <a href="Reg.html#t:VirtualReg">VirtualReg</a></p><div class="doc"><p>Choose a node to spill from this graph
</p></div></div><div class="top"><p class="src"><a name="v:lifeMapFromSpillCostInfo" class="def">lifeMapFromSpillCostInfo</a> :: <a href="RegAlloc-Graph-SpillCost.html#t:SpillCostInfo">SpillCostInfo</a> -&gt; <a href="UniqFM.html#t:UniqFM">UniqFM</a> (<a href="Reg.html#t:VirtualReg">VirtualReg</a>, <a href="../base-4.5.1.0/Data-Int.html#t:Int">Int</a>)</p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>