Class StackDataSource<TInstruction>
Represents a data source that refers to a stack value produced by a node in a data flow graph.
public class StackDataSource<TInstruction> : DataSource<TInstruction> where TInstruction : notnull
Type Parameters
TInstructionThe type of data stored in each data flow node.
- Inheritance
-
DataSource<TInstruction>StackDataSource<TInstruction>
- Inherited Members
Constructors
StackDataSource(DataFlowNode<TInstruction>)
Creates a new stack data source, referencing the first stack value produced by the provided node.
public StackDataSource(DataFlowNode<TInstruction> node)
Parameters
nodeDataFlowNode<TInstruction>The node producing the value.
StackDataSource(DataFlowNode<TInstruction>, int)
Creates a new stack data source, referencing a stack value produced by the provided node.
public StackDataSource(DataFlowNode<TInstruction> node, int slotIndex)
Parameters
nodeDataFlowNode<TInstruction>The node producing the value.
slotIndexintThe index of the stack value that was produced by the node.
Properties
SlotIndex
Gets a value indicating the stack slot index that was pushed by the instruction referenced in Node.
public int SlotIndex { get; }
Property Value
Type
Gets the type of data dependency that this data source encodes.
public override DataDependencyType Type { get; }
Property Value
Methods
Equals(DataSource<TInstruction>)
Determines whether the data sources are considered equal.
protected override bool Equals(DataSource<TInstruction> other)
Parameters
otherDataSource<TInstruction>The other data source.
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()