Search Results for

    Show / Hide Table of Contents

    Struct SelectedInstructions<TInstruction>

    A collection of selected instructions for a value.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Flame.Compiler.Target
    Assembly: Flame.Compiler.dll
    Syntax
    public struct SelectedInstructions<TInstruction>
    Type Parameters
    Name Description
    TInstruction

    The type of a target instruction.

    Constructors

    | Edit this page View Source

    SelectedInstructions(IReadOnlyList<TInstruction>, IReadOnlyList<ValueTag>)

    Creates a selected instruction container.

    Declaration
    public SelectedInstructions(IReadOnlyList<TInstruction> instructions, IReadOnlyList<ValueTag> dependencies)
    Parameters
    Type Name Description
    IReadOnlyList<TInstruction> instructions

    The instructions selected for a particular value.

    IReadOnlyList<ValueTag> dependencies

    The list of values the selected instructions depend on.

    | Edit this page View Source

    SelectedInstructions(TInstruction, params ValueTag[])

    Creates a selected instruction container from a single instruction and a variable number of dependencies.

    Declaration
    public SelectedInstructions(TInstruction instruction, params ValueTag[] dependencies)
    Parameters
    Type Name Description
    TInstruction instruction

    The instruction selected for a particular value.

    ValueTag[] dependencies

    The list of values the selected instructions depend on.

    Properties

    | Edit this page View Source

    Dependencies

    Gets the list of values these selected instructions depend on.

    Declaration
    public readonly IReadOnlyList<ValueTag> Dependencies { get; }
    Property Value
    Type Description
    IReadOnlyList<ValueTag>

    A list of values.

    | Edit this page View Source

    Instructions

    Gets the list of instructions in this container.

    Declaration
    public readonly IReadOnlyList<TInstruction> Instructions { get; }
    Property Value
    Type Description
    IReadOnlyList<TInstruction>

    A list of instructions.

    Methods

    | Edit this page View Source

    Prepend(IReadOnlyList<TInstruction>)

    Prepends a sequence of instructions to these selected instructions, returning the new selected instructions as a new object.

    Declaration
    public SelectedInstructions<TInstruction> Prepend(IReadOnlyList<TInstruction> prefix)
    Parameters
    Type Name Description
    IReadOnlyList<TInstruction> prefix

    The selected instructions to prepend.

    Returns
    Type Description
    SelectedInstructions<TInstruction>

    A collection of selected instructions that is identical to these, but with prefix prepended to the instructions.

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