Search Results for

    Show / Hide Table of Contents

    Class Optimization

    Describes a method body optimization.

    Inheritance
    object
    Optimization
    Inlining
    IntraproceduralOptimization
    TailRecursionElimination
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Flame.Compiler.Pipeline
    Assembly: Flame.Compiler.dll
    Syntax
    public abstract class Optimization

    Properties

    | Edit this page View Source

    IsCheckpoint

    Tells if this optimization checkpoints its result. The optimizer takes care to always return the latest checkpointed method body is returned when a method's optimized method body is requested.

    Declaration
    public abstract bool IsCheckpoint { get; }
    Property Value
    Type Description
    bool

    Tells if this optimization performs a checkpoint.

    Methods

    | Edit this page View Source

    ApplyAsync(MethodBody, OptimizationState)

    Applies the optimization to a method body.

    Declaration
    public abstract Task<MethodBody> ApplyAsync(MethodBody body, OptimizationState state)
    Parameters
    Type Name Description
    MethodBody body

    A method body holder to optimize.

    OptimizationState state

    State associated with optimizations.

    Returns
    Type Description
    Task<MethodBody>

    A task that produces an optimized method body.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX