Show / Hide Table of Contents

    Struct SelectedFlowInstructions<TInstruction>

    A collection of selected instructions for block flow.

    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 SelectedFlowInstructions<TInstruction>
    Type Parameters
    Name Description
    TInstruction

    The type of a target instruction.

    Constructors

    | Improve this Doc View Source

    SelectedFlowInstructions(IReadOnlyList<SelectedInstructions<TInstruction>>)

    Creates an instruction selection for block flow.

    Declaration
    public SelectedFlowInstructions(IReadOnlyList<SelectedInstructions<TInstruction>> chunks)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<SelectedInstructions<TInstruction>> chunks

    A sequence of instruction selection chunks. Every chunk represents an logical instruction that loads its dependencies in order and performs some action.

    Properties

    | Improve this Doc View Source

    Chunks

    Gets the sequence of instruction selection chunks that constitutes this instruction selection.

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

    A sequence of instruction selection chunks. Every chunk represents an logical instruction that loads its dependencies in order and performs some action.

    | Improve this Doc View Source

    Dependencies

    Gets the sequence of values these selected instructions depend on.

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

    A sequence of values.

    Methods

    | Improve this Doc View Source

    Append(TInstruction[])

    Appends a sequence of instructions to these selected flow instructions, producing a new flow instruction selection.

    Declaration
    public SelectedFlowInstructions<TInstruction> Append(params TInstruction[] extraInstructions)
    Parameters
    Type Name Description
    TInstruction[] extraInstructions

    Additional instructions to append.

    Returns
    Type Description
    SelectedFlowInstructions<TInstruction>

    A flow instruction selection.

    | Improve this Doc View Source

    Append(IEnumerable<TInstruction>)

    Appends a sequence of instructions to these selected flow instructions, producing a new flow instruction selection.

    Declaration
    public SelectedFlowInstructions<TInstruction> Append(IEnumerable<TInstruction> extraInstructions)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<TInstruction> extraInstructions

    Additional instructions to append.

    Returns
    Type Description
    SelectedFlowInstructions<TInstruction>

    A flow instruction selection.

    | Improve this Doc View Source

    Prepend(TInstruction[])

    Prepends a sequence of instructions to these selected flow instructions, producing a new flow instruction selection.

    Declaration
    public SelectedFlowInstructions<TInstruction> Prepend(params TInstruction[] extraInstructions)
    Parameters
    Type Name Description
    TInstruction[] extraInstructions

    Additional instructions to prepend.

    Returns
    Type Description
    SelectedFlowInstructions<TInstruction>

    A flow instruction selection.

    | Improve this Doc View Source

    Prepend(IEnumerable<TInstruction>)

    Prepends a sequence of instructions to these selected flow instructions, producing a new flow instruction selection.

    Declaration
    public SelectedFlowInstructions<TInstruction> Prepend(IEnumerable<TInstruction> extraInstructions)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<TInstruction> extraInstructions

    Additional instructions to prepend.

    Returns
    Type Description
    SelectedFlowInstructions<TInstruction>

    A flow instruction selection.

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