Class IrInstruction
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
SpanTextSpanThe source span associated with the operation.
IrInstruction(IrInstruction)
protected IrInstruction(IrInstruction original)
Parameters
originalIrInstruction
Properties
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
Span
The source span associated with the operation.
public TextSpan Span { get; init; }
Property Value
Methods
Deconstruct(out TextSpan)
public void Deconstruct(out TextSpan Span)
Parameters
SpanTextSpan
Equals(IrInstruction?)
public virtual bool Equals(IrInstruction? other)
Parameters
otherIrInstruction
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IrInstruction?, IrInstruction?)
public static bool operator ==(IrInstruction? left, IrInstruction? right)
Parameters
leftIrInstructionrightIrInstruction
Returns
operator !=(IrInstruction?, IrInstruction?)
public static bool operator !=(IrInstruction? left, IrInstruction? right)
Parameters
leftIrInstructionrightIrInstruction