| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>org.apache.sysds.hops.rewrite (Apache SystemDS 3.2.0-SNAPSHOT API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.min.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery-ui.overrides.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../jquery/jquery-3.6.0.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-ui.min.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 (Apache SystemDS 3.2.0-SNAPSHOT API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var pathtoroot = "../../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.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" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <main role="main"> |
| <div class="header"> |
| <h1 title="Package" class="title">Package org.apache.sysds.hops.rewrite</h1> |
| </div> |
| <div class="contentContainer"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <table class="typeSummary"> |
| <caption><span>Class Summary</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tbody> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="HopDagValidator.html" title="class in org.apache.sysds.hops.rewrite">HopDagValidator</a></th> |
| <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"> |
| <th class="colFirst" scope="row"><a href="HopRewriteRule.html" title="class in org.apache.sysds.hops.rewrite">HopRewriteRule</a></th> |
| <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"> |
| <th class="colFirst" scope="row"><a href="HopRewriteUtils.html" title="class in org.apache.sysds.hops.rewrite">HopRewriteUtils</a></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="MarkForLineageReuse.html" title="class in org.apache.sysds.hops.rewrite">MarkForLineageReuse</a></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="ProgramRewriter.html" title="class in org.apache.sysds.hops.rewrite">ProgramRewriter</a></th> |
| <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"> |
| <th class="colFirst" scope="row"><a href="ProgramRewriteStatus.html" title="class in org.apache.sysds.hops.rewrite">ProgramRewriteStatus</a></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteAlgebraicSimplificationDynamic.html" title="class in org.apache.sysds.hops.rewrite">RewriteAlgebraicSimplificationDynamic</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Algebraic Simplifications.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteAlgebraicSimplificationStatic.html" title="class in org.apache.sysds.hops.rewrite">RewriteAlgebraicSimplificationStatic</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Algebraic Simplifications.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteBlockSizeAndReblock.html" title="class in org.apache.sysds.hops.rewrite">RewriteBlockSizeAndReblock</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: BlockSizeAndReblock.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteCommonSubexpressionElimination.html" title="class in org.apache.sysds.hops.rewrite">RewriteCommonSubexpressionElimination</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: CommonSubexpressionElimination.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteCompressedReblock.html" title="class in org.apache.sysds.hops.rewrite">RewriteCompressedReblock</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Compressed Re block if config compressed.linalg is enabled, we inject compression directions after read of |
| matrices if number of rows is above 1000 and cols at least 1.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteConstantFolding.html" title="class in org.apache.sysds.hops.rewrite">RewriteConstantFolding</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Constant Folding.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteElementwiseMultChainOptimization.html" title="class in org.apache.sysds.hops.rewrite">RewriteElementwiseMultChainOptimization</a></th> |
| <td class="colLast"> |
| <div class="block">Prerequisite: RewriteCommonSubexpressionElimination must run before this rule.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteForLoopVectorization.html" title="class in org.apache.sysds.hops.rewrite">RewriteForLoopVectorization</a></th> |
| <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="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteGPUSpecificOps.html" title="class in org.apache.sysds.hops.rewrite">RewriteGPUSpecificOps</a></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteHoistLoopInvariantOperations.html" title="class in org.apache.sysds.hops.rewrite">RewriteHoistLoopInvariantOperations</a></th> |
| <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="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteIndexingVectorization.html" title="class in org.apache.sysds.hops.rewrite">RewriteIndexingVectorization</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Indexing vectorization.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteInjectSparkLoopCheckpointing.html" title="class in org.apache.sysds.hops.rewrite">RewriteInjectSparkLoopCheckpointing</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Insert checkpointing operations for caching purposes.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteInjectSparkPReadCheckpointing.html" title="class in org.apache.sysds.hops.rewrite">RewriteInjectSparkPReadCheckpointing</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Inject checkpointing on reading in data in all cases where the operand is used in more than one operation.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteMarkLoopVariablesUpdateInPlace.html" title="class in org.apache.sysds.hops.rewrite">RewriteMarkLoopVariablesUpdateInPlace</a></th> |
| <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="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteMatrixMultChainOptimization.html" title="class in org.apache.sysds.hops.rewrite">RewriteMatrixMultChainOptimization</a></th> |
| <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="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteMatrixMultChainOptimizationSparse.html" title="class in org.apache.sysds.hops.rewrite">RewriteMatrixMultChainOptimizationSparse</a></th> |
| <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="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteMergeBlockSequence.html" title="class in org.apache.sysds.hops.rewrite">RewriteMergeBlockSequence</a></th> |
| <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="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteRemoveDanglingParentReferences.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveDanglingParentReferences</a></th> |
| <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="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteRemoveEmptyBasicBlocks.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveEmptyBasicBlocks</a></th> |
| <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="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteRemoveForLoopEmptySequence.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveForLoopEmptySequence</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Simplify program structure by removing (par)for statements iterating over |
| an empty sequence, i.e., (par)for-loops without a single iteration.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteRemovePersistentReadWrite.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemovePersistentReadWrite</a></th> |
| <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"> |
| <th class="colFirst" scope="row"><a href="RewriteRemoveReadAfterWrite.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveReadAfterWrite</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: RemoveReadAfterWrite.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteRemoveUnnecessaryBranches.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveUnnecessaryBranches</a></th> |
| <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"> |
| <th class="colFirst" scope="row"><a href="RewriteRemoveUnnecessaryCasts.html" title="class in org.apache.sysds.hops.rewrite">RewriteRemoveUnnecessaryCasts</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: RemoveUnnecessaryCasts.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteSplitDagDataDependentOperators.html" title="class in org.apache.sysds.hops.rewrite">RewriteSplitDagDataDependentOperators</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Split Hop DAG after specific data-dependent operators.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <th class="colFirst" scope="row"><a href="RewriteSplitDagUnknownCSVRead.html" title="class in org.apache.sysds.hops.rewrite">RewriteSplitDagUnknownCSVRead</a></th> |
| <td class="colLast"> |
| <div class="block">Rule: Split Hop DAG after CSV reads with unknown size.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <th class="colFirst" scope="row"><a href="RewriteTransientWriteParentHandling.html" title="class in org.apache.sysds.hops.rewrite">RewriteTransientWriteParentHandling</a></th> |
| <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"> |
| <th class="colFirst" scope="row"><a href="StatementBlockRewriteRule.html" title="class in org.apache.sysds.hops.rewrite">StatementBlockRewriteRule</a></th> |
| <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> |
| </main> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.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" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses.html">All 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> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |