Show / Hide Table of Contents

    Struct SelectedInstructions<TInstruction>

    A collection of selected instructions for a value.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    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

    | Improve this Doc View Source

    SelectedInstructions(TInstruction, 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.

    | Improve this Doc 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
    System.Collections.Generic.IReadOnlyList<TInstruction> instructions

    The instructions selected for a particular value.

    System.Collections.Generic.IReadOnlyList<ValueTag> dependencies

    The list of values the selected instructions depend on.

    Properties

    | Improve this Doc View Source

    Dependencies

    Gets the list of values these selected instructions depend on.

    Declaration
    public IReadOnlyList<ValueTag> Dependencies { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<ValueTag>

    A list of values.

    | Improve this Doc View Source

    Instructions

    Gets the list of instructions in this container.

    Declaration
    public IReadOnlyList<TInstruction> Instructions { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<TInstruction>

    A list of instructions.

    Methods

    | Improve this Doc 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
    System.Collections.Generic.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.

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