blob: 9b70b43f12d3ce84311a5ebde9338033a31f2a8f [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_252) on Thu Jun 18 13:32:49 CEST 2020 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>org.apache.sysds.hops.rewrite (SystemDS 2.0.0-SNAPSHOT API)</title>
<meta name="date" content="2020-06-18">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.sysds.hops.rewrite (SystemDS 2.0.0-SNAPSHOT API)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/sysds/hops/recompile/package-summary.html">Prev&nbsp;Package</a></li>
<li><a href="../../../../../org/apache/sysds/lops/package-summary.html">Next&nbsp;Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/sysds/hops/rewrite/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package&nbsp;org.apache.sysds.hops.rewrite</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="typeSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/HopDagValidator.html" title="class in org.apache.sysds.hops.rewrite">HopDagValidator</a></td>
<td class="colLast">
<div class="block">This class allows to check hop dags for validity, e.g., parent-child linking.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/HopRewriteRule.html" title="class in org.apache.sysds.hops.rewrite">HopRewriteRule</a></td>
<td class="colLast">
<div class="block">Base class for all hop rewrites in order to enable generic
application of all rules.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/HopRewriteUtils.html" title="class in org.apache.sysds.hops.rewrite">HopRewriteUtils</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/MarkForLineageReuse.html" title="class in org.apache.sysds.hops.rewrite">MarkForLineageReuse</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/ProgramRewriter.html" title="class in org.apache.sysds.hops.rewrite">ProgramRewriter</a></td>
<td class="colLast">
<div class="block">This program rewriter applies a variety of rule-based rewrites
on all hop dags of the given program in one pass over the entire
program.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/ProgramRewriteStatus.html" title="class in org.apache.sysds.hops.rewrite">ProgramRewriteStatus</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteAlgebraicSimplificationDynamic.html" title="class in org.apache.sysds.hops.rewrite">RewriteAlgebraicSimplificationDynamic</a></td>
<td class="colLast">
<div class="block">Rule: Algebraic Simplifications.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteAlgebraicSimplificationStatic.html" title="class in org.apache.sysds.hops.rewrite">RewriteAlgebraicSimplificationStatic</a></td>
<td class="colLast">
<div class="block">Rule: Algebraic Simplifications.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteBlockSizeAndReblock.html" title="class in org.apache.sysds.hops.rewrite">RewriteBlockSizeAndReblock</a></td>
<td class="colLast">
<div class="block">Rule: BlockSizeAndReblock.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteCommonSubexpressionElimination.html" title="class in org.apache.sysds.hops.rewrite">RewriteCommonSubexpressionElimination</a></td>
<td class="colLast">
<div class="block">Rule: CommonSubexpressionElimination.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteCommonSubexpressionElimination.LiteralKey.html" title="class in org.apache.sysds.hops.rewrite">RewriteCommonSubexpressionElimination.LiteralKey</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteCompressedReblock.html" title="class in org.apache.sysds.hops.rewrite">RewriteCompressedReblock</a></td>
<td class="colLast">
<div class="block">Rule: CompressedReblock: If config compressed.linalg is enabled, we
inject compression directions after pread of matrices w/ both dims &gt; 1
(i.e., multi-column matrices).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteConstantFolding.html" title="class in org.apache.sysds.hops.rewrite">RewriteConstantFolding</a></td>
<td class="colLast">
<div class="block">Rule: Constant Folding.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteElementwiseMultChainOptimization.html" title="class in org.apache.sysds.hops.rewrite">RewriteElementwiseMultChainOptimization</a></td>
<td class="colLast">
<div class="block">Prerequisite: RewriteCommonSubexpressionElimination must run before this rule.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteForLoopVectorization.html" title="class in org.apache.sysds.hops.rewrite">RewriteForLoopVectorization</a></td>
<td class="colLast">
<div class="block">Rule: Simplify program structure by pulling if or else statement body out
(removing the if statement block ifself) in order to allow intra-procedure
analysis to propagate exact statistics.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteGPUSpecificOps.html" title="class in org.apache.sysds.hops.rewrite">RewriteGPUSpecificOps</a></td>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteHoistLoopInvariantOperations.html" title="class in org.apache.sysds.hops.rewrite">RewriteHoistLoopInvariantOperations</a></td>
<td class="colLast">
<div class="block">Rule: Simplify program structure by hoisting loop-invariant operations
out of while, for, or parfor loops.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteIndexingVectorization.html" title="class in org.apache.sysds.hops.rewrite">RewriteIndexingVectorization</a></td>
<td class="colLast">
<div class="block">Rule: Indexing vectorization.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteInjectSparkLoopCheckpointing.html" title="class in org.apache.sysds.hops.rewrite">RewriteInjectSparkLoopCheckpointing</a></td>
<td class="colLast">
<div class="block">Rule: Insert checkpointing operations for caching purposes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteInjectSparkPReadCheckpointing.html" title="class in org.apache.sysds.hops.rewrite">RewriteInjectSparkPReadCheckpointing</a></td>
<td class="colLast">
<div class="block">Rule: BlockSizeAndReblock.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteMarkLoopVariablesUpdateInPlace.html" title="class in org.apache.sysds.hops.rewrite">RewriteMarkLoopVariablesUpdateInPlace</a></td>
<td class="colLast">
<div class="block">Rule: Mark loop variables that are only read/updated through cp left indexing
for update in-place.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteMatrixMultChainOptimization.html" title="class in org.apache.sysds.hops.rewrite">RewriteMatrixMultChainOptimization</a></td>
<td class="colLast">
<div class="block">Rule: Determine the optimal order of execution for a chain of
matrix multiplications
Solution: Classic Dynamic Programming
Approach: Currently, the approach based only on matrix dimensions
Goal: To reduce the number of computations in the run-time
(map-reduce) layer</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteMatrixMultChainOptimizationSparse.html" title="class in org.apache.sysds.hops.rewrite">RewriteMatrixMultChainOptimizationSparse</a></td>
<td class="colLast">
<div class="block">Rule: Determine the optimal order of execution for a chain of
matrix multiplications
Solution: Classic Dynamic Programming
Approach: Currently, the approach based only on matrix dimensions
and sparsity estimates using the MNC sketch
Goal: To reduce the number of computations in the run-time
(map-reduce) layer</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteMergeBlockSequence.html" title="class in org.apache.sysds.hops.rewrite">RewriteMergeBlockSequence</a></td>
<td class="colLast">
<div class="block">Rule: Simplify program structure by merging sequences of last-level
statement blocks in order to create optimization opportunities.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteRemoveDanglingParentReferences.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveDanglingParentReferences</a></td>
<td class="colLast">
<div class="block">This rewrite is a general-purpose cleanup pass that removes any
dangling parent references in one pass through the hop DAG.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteRemoveEmptyBasicBlocks.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveEmptyBasicBlocks</a></td>
<td class="colLast">
<div class="block">Rule: Simplify program structure by removing empty last-level blocks,
which may originate from the original program or due to a sequence of
rewrites (e.g., checkpoint injection and subsequent IPA).</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteRemovePersistentReadWrite.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemovePersistentReadWrite</a></td>
<td class="colLast">
<div class="block">This rewrite is a custom rewrite for JMLC in order to replace all persistent reads
and writes with transient reads and writes from the symbol table.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteRemoveReadAfterWrite.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveReadAfterWrite</a></td>
<td class="colLast">
<div class="block">Rule: RemoveReadAfterWrite.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteRemoveUnnecessaryBranches.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveUnnecessaryBranches</a></td>
<td class="colLast">
<div class="block">Rule: Simplify program structure by pulling if or else statement body out
(removing the if statement block ifself) in order to allow intra-procedure
analysis to propagate exact statistics.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteRemoveUnnecessaryCasts.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveUnnecessaryCasts</a></td>
<td class="colLast">
<div class="block">Rule: RemoveUnnecessaryCasts.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteSplitDagDataDependentOperators.html" title="class in org.apache.sysds.hops.rewrite">RewriteSplitDagDataDependentOperators</a></td>
<td class="colLast">
<div class="block">Rule: Split Hop DAG after specific data-dependent operators.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteSplitDagUnknownCSVRead.html" title="class in org.apache.sysds.hops.rewrite">RewriteSplitDagUnknownCSVRead</a></td>
<td class="colLast">
<div class="block">Rule: Split Hop DAG after CSV reads with unknown size.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/RewriteTransientWriteParentHandling.html" title="class in org.apache.sysds.hops.rewrite">RewriteTransientWriteParentHandling</a></td>
<td class="colLast">
<div class="block">Rule: Eliminate for Transient Write DataHops to have no parents
Solution: Move parent edges of Transient Write Hop to parent of
its child
Reason: Transient Write not being a root messes up
analysis for Lop's to Instruction translation (according to Amol)</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../../org/apache/sysds/hops/rewrite/StatementBlockRewriteRule.html" title="class in org.apache.sysds.hops.rewrite">StatementBlockRewriteRule</a></td>
<td class="colLast">
<div class="block">Base class for all hop rewrites in order to enable generic
application of all rules.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/sysds/hops/recompile/package-summary.html">Prev&nbsp;Package</a></li>
<li><a href="../../../../../org/apache/sysds/lops/package-summary.html">Next&nbsp;Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/sysds/hops/rewrite/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 2020 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>