Table of Contents

Class IrInstruction.LoadGlobal

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

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

Span TextSpan

The source span.

Destination int

The destination slot.

GlobalId string

The provider global identifier.

Properties

Destination

The destination slot.

public int Destination { get; init; }

Property Value

int

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

GlobalId

The provider global identifier.

public string GlobalId { get; init; }

Property Value

string

Methods

Deconstruct(out TextSpan, out int, out string)

public void Deconstruct(out TextSpan Span, out int Destination, out string GlobalId)

Parameters

Span TextSpan
Destination int
GlobalId string

Equals(IrInstruction?)

public override sealed bool Equals(IrInstruction? other)

Parameters

other IrInstruction

Returns

bool

Equals(LoadGlobal?)

public bool Equals(IrInstruction.LoadGlobal? other)

Parameters

other IrInstruction.LoadGlobal

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(LoadGlobal?, LoadGlobal?)

public static bool operator ==(IrInstruction.LoadGlobal? left, IrInstruction.LoadGlobal? right)

Parameters

left IrInstruction.LoadGlobal
right IrInstruction.LoadGlobal

Returns

bool

operator !=(LoadGlobal?, LoadGlobal?)

public static bool operator !=(IrInstruction.LoadGlobal? left, IrInstruction.LoadGlobal? right)

Parameters

left IrInstruction.LoadGlobal
right IrInstruction.LoadGlobal

Returns

bool