Package org.apache.sysds.hops.ipa
Class IPAPassForwardFunctionCalls
java.lang.Object
org.apache.sysds.hops.ipa.IPAPass
org.apache.sysds.hops.ipa.IPAPassForwardFunctionCalls
This rewrite forwards a function call to a function with a simple
function call that only consumes function parameters and literals
into the original call location.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisApplicable(FunctionCallGraph fgraph) Indicates if an IPA pass is applicable for the current configuration such as global flags or the chosen execution mode (e.g., HYBRID).booleanrewriteProgram(DMLProgram prog, FunctionCallGraph fgraph, FunctionCallSizeInfo fcallSizes) Rewrites the given program or its functions in place, with access to the read-only function call graph.
-
Constructor Details
-
IPAPassForwardFunctionCalls
public IPAPassForwardFunctionCalls()
-
-
Method Details
-
isApplicable
Description copied from class:IPAPassIndicates if an IPA pass is applicable for the current configuration such as global flags or the chosen execution mode (e.g., HYBRID).- Specified by:
isApplicablein classIPAPass- Parameters:
fgraph- function call graph- Returns:
- true if applicable.
-
rewriteProgram
public boolean rewriteProgram(DMLProgram prog, FunctionCallGraph fgraph, FunctionCallSizeInfo fcallSizes) Description copied from class:IPAPassRewrites the given program or its functions in place, with access to the read-only function call graph.- Specified by:
rewriteProgramin classIPAPass- Parameters:
prog- dml programfgraph- function call graphfcallSizes- function call size infos- Returns:
- true if function call graph should be rebuild
-