Module org.kink_lang.kink
Class TemplateArgsPassingOptimizer<S extends ItreeWithRhs,D extends Itree>
java.lang.Object
org.kink_lang.kink.internal.program.itree.SkeltonItreeVisitor<Itree>
org.kink_lang.kink.internal.program.itreeoptimize.BaseOptimizer
org.kink_lang.kink.internal.program.itreeoptimize.TemplateArgsPassingOptimizer<S,D>
- Type Parameters:
S
- the type of assignment.D
- the type of args passing.
- All Implemented Interfaces:
Function<Itree,
,Itree> UnaryOperator<Itree>
,ItreeVisitor<Itree>
- Direct Known Subclasses:
ArgsPassingOptimizer
,NestedArgsPassingOptimizer
public abstract class TemplateArgsPassingOptimizer<S extends ItreeWithRhs,D extends Itree>
extends BaseOptimizer
Converts an assignment to args passing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvisit
(FastFunItree fun) Visits an indexable fun itree.visit
(SlowFunItree fun) Visits a fun itree.Methods inherited from class org.kink_lang.kink.internal.program.itreeoptimize.BaseOptimizer
apply
Methods inherited from class org.kink_lang.kink.internal.program.itree.SkeltonItreeVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Constructor Details
-
TemplateArgsPassingOptimizer
public TemplateArgsPassingOptimizer()
-
-
Method Details
-
visit
Description copied from interface:ItreeVisitor
Visits an indexable fun itree.- Specified by:
visit
in interfaceItreeVisitor<S extends ItreeWithRhs>
- Overrides:
visit
in classSkeltonItreeVisitor<Itree>
- Parameters:
fun
- the indexable fun itree.- Returns:
- the result.
-
visit
Description copied from interface:ItreeVisitor
Visits a fun itree.- Specified by:
visit
in interfaceItreeVisitor<S extends ItreeWithRhs>
- Overrides:
visit
in classSkeltonItreeVisitor<Itree>
- Parameters:
fun
- the fun itree.- Returns:
- the result.
-