Class SelectedInstructions
A collection of selected instructions for a value.
Inherited Members
Namespace: Flame.Compiler.Target
Assembly: Flame.Compiler.dll
Syntax
public static class SelectedInstructions
Methods
| Edit this page View SourceCreate<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 |
|---|---|---|
| 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 |
|---|---|---|
| IReadOnlyList<TInstruction> | instructions | The instructions selected for a particular value. |
| IReadOnlyList<ValueTag> | dependencies | The list of values the selected instructions depend on. |
Returns
| Type | Description |
|---|---|
| SelectedInstructions<TInstruction> |
Type Parameters
| Name | Description |
|---|---|
| TInstruction |
Create<TInstruction>(TInstruction, params 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 |