Table of Contents

Class IrInstruction

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents an executable operation in a MuLang IR basic block.

public abstract record IrInstruction : IEquatable<IrInstruction>
Inheritance
IrInstruction
Implements
Derived
Inherited Members

Constructors

IrInstruction(TextSpan)

Represents an executable operation in a MuLang IR basic block.

protected IrInstruction(TextSpan Span)

Parameters

Span TextSpan

The source span associated with the operation.

IrInstruction(IrInstruction)

protected IrInstruction(IrInstruction original)

Parameters

original IrInstruction

Properties

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Span

The source span associated with the operation.

public TextSpan Span { get; init; }

Property Value

TextSpan

Methods

Deconstruct(out TextSpan)

public void Deconstruct(out TextSpan Span)

Parameters

Span TextSpan

Equals(IrInstruction?)

public virtual bool Equals(IrInstruction? other)

Parameters

other IrInstruction

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 virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(IrInstruction?, IrInstruction?)

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

Parameters

left IrInstruction
right IrInstruction

Returns

bool

operator !=(IrInstruction?, IrInstruction?)

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

Parameters

left IrInstruction
right IrInstruction

Returns

bool