Show / Hide Table of Contents

    Class InstructionSimplification

    An intraprocedural transform that greedily applies instruction simplifications.

    Inheritance
    System.Object
    Optimization
    IntraproceduralOptimization
    InstructionSimplification
    Inherited Members
    IntraproceduralOptimization.IsCheckpoint
    IntraproceduralOptimization.ApplyAsync(MethodBody, OptimizationState)
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Flame.Compiler.Transforms
    Assembly: Flame.Compiler.dll
    Syntax
    public sealed class InstructionSimplification : IntraproceduralOptimization

    Fields

    | Improve this Doc View Source

    Instance

    An instance of the instruction simplification transform.

    Declaration
    public static readonly InstructionSimplification Instance
    Field Value
    Type Description
    InstructionSimplification

    Methods

    | Improve this Doc View Source

    Apply(FlowGraph)

    Applies this intraprocedural optimization to a flow graph.

    Declaration
    public override FlowGraph Apply(FlowGraph graph)
    Parameters
    Type Name Description
    FlowGraph graph

    The flow graph to transform.

    Returns
    Type Description
    FlowGraph

    A transformed flow graph.

    Overrides
    IntraproceduralOptimization.Apply(FlowGraph)
    | Improve this Doc View Source

    CanAlwaysConvert(IType, IType)

    Tells if a particular type can always be converted to another type, that is, if a checked conversion from to to will never throw.

    Declaration
    public static bool CanAlwaysConvert(IType from, IType to)
    Parameters
    Type Name Description
    IType from

    The type of the values to convert.

    IType to

    A target type to convert values to.

    Returns
    Type Description
    System.Boolean

    true if all values of type from can be safely converted to values of type to; otherwise false.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX