Struct SelectedInstructions<TInstruction>
A collection of selected instructions for a value.
Inherited Members
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 SourceSelectedInstructions(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. |
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 SourceDependencies
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. |
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 SourcePrepend(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 |