Class IrInstruction.LoadGlobal
Loads a provider global into a slot.
public sealed record IrInstruction.LoadGlobal : IrInstruction, IEquatable<IrInstruction>, IEquatable<IrInstruction.LoadGlobal>
- Inheritance
-
IrInstruction.LoadGlobal
- Implements
- Inherited Members
Constructors
LoadGlobal(TextSpan, int, string)
Loads a provider global into a slot.
public LoadGlobal(TextSpan Span, int Destination, string GlobalId)
Parameters
SpanTextSpanThe source span.
DestinationintThe destination slot.
GlobalIdstringThe provider global identifier.
Properties
Destination
The destination slot.
public int Destination { get; init; }
Property Value
EqualityContract
protected override Type EqualityContract { get; }
Property Value
GlobalId
The provider global identifier.
public string GlobalId { get; init; }
Property Value
Methods
Deconstruct(out TextSpan, out int, out string)
public void Deconstruct(out TextSpan Span, out int Destination, out string GlobalId)
Parameters
Equals(IrInstruction?)
public override sealed bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(LoadGlobal?)
public bool Equals(IrInstruction.LoadGlobal? other)
Parameters
otherIrInstruction.LoadGlobal
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(LoadGlobal?, LoadGlobal?)
public static bool operator ==(IrInstruction.LoadGlobal? left, IrInstruction.LoadGlobal? right)
Parameters
leftIrInstruction.LoadGlobalrightIrInstruction.LoadGlobal
Returns
operator !=(LoadGlobal?, LoadGlobal?)
public static bool operator !=(IrInstruction.LoadGlobal? left, IrInstruction.LoadGlobal? right)
Parameters
leftIrInstruction.LoadGlobalrightIrInstruction.LoadGlobal