Module org.kink_lang.kink
Class FunMcallToSymcallOptimizer
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.FunMcallToSymcallOptimizer
- All Implemented Interfaces:
Function<Itree,
,Itree> UnaryOperator<Itree>
,ItreeVisitor<Itree>
Converts method call of Fun.call to symcall.
For example:
{ callee }.call(R [X Y Z]) into { callee }!call![R](X Y Z)
This is a precursor of LetSymcallInliner.
-
Constructor Summary
-
Method Summary
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, visit
-
Constructor Details
-
FunMcallToSymcallOptimizer
public FunMcallToSymcallOptimizer()
-
-
Method Details
-
visit
Description copied from interface:ItreeVisitor
Visits a mcall itree.- Specified by:
visit
in interfaceItreeVisitor<Itree>
- Overrides:
visit
in classSkeltonItreeVisitor<Itree>
- Parameters:
mcall
- the mcall itree.- Returns:
- the result.
-