Search Results for

    Show / Hide Table of Contents

    Struct RegisterAllocation<TRegister>

    An allocation of values to registers.

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

    The type of register allocated to values.

    Constructors

    | Edit this page View Source

    RegisterAllocation(IReadOnlyDictionary<ValueTag, TRegister>)

    Creates a register allocation container from a value-to-register map.

    Declaration
    public RegisterAllocation(IReadOnlyDictionary<ValueTag, TRegister> allocation)
    Parameters
    Type Name Description
    IReadOnlyDictionary<ValueTag, TRegister> allocation

    Properties

    | Edit this page View Source

    Allocation

    Gets a mapping of values to the registers they are allocated to.

    Declaration
    public readonly IReadOnlyDictionary<ValueTag, TRegister> Allocation { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<ValueTag, TRegister>

    A mapping of values to registers.

    Methods

    | Edit this page View Source

    GetRegister(ValueTag)

    Gets the register allocated to a particular value.

    Declaration
    public TRegister GetRegister(ValueTag value)
    Parameters
    Type Name Description
    ValueTag value

    The value to find a register for.

    Returns
    Type Description
    TRegister

    A register.

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