Class SelectedInstructions
A collection of selected instructions for a value.
Inheritance
System.Object
SelectedInstructions
Inherited Members
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.Target
Assembly: Flame.Compiler.dll
Syntax
public static class SelectedInstructions
Methods
| Improve this Doc View SourceCreate<TInstruction>(TInstruction, ValueTag[])
Creates a selected instruction container from a single instruction and a variable number of dependencies.
Declaration
public static SelectedInstructions<TInstruction> Create<TInstruction>(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. |
Returns
Type | Description |
---|---|
SelectedInstructions<TInstruction> |
Type Parameters
Name | Description |
---|---|
TInstruction |
Create<TInstruction>(IReadOnlyList<TInstruction>)
Creates a selected instruction container from a sequence of instructions and no dependencies.
Declaration
public static SelectedInstructions<TInstruction> Create<TInstruction>(IReadOnlyList<TInstruction> instructions)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IReadOnlyList<TInstruction> | instructions | A sequence of instructions as selected for a particular value. |
Returns
Type | Description |
---|---|
SelectedInstructions<TInstruction> |
Type Parameters
Name | Description |
---|---|
TInstruction |
Create<TInstruction>(IReadOnlyList<TInstruction>, IReadOnlyList<ValueTag>)
Creates a selected instruction container.
Declaration
public static SelectedInstructions<TInstruction> Create<TInstruction>(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. |
Returns
Type | Description |
---|---|
SelectedInstructions<TInstruction> |
Type Parameters
Name | Description |
---|---|
TInstruction |