Table of Contents

Class IrLifetimeRegion

Namespace
MuLang.IR
Assembly
MuLang.IR.dll

Represents a scoped slot lifetime region in a MuLang IR function.

public sealed record IrLifetimeRegion : IEquatable<IrLifetimeRegion>
Inheritance
IrLifetimeRegion
Implements
Inherited Members

Constructors

IrLifetimeRegion(int, int?, int)

Represents a scoped slot lifetime region in a MuLang IR function.

public IrLifetimeRegion(int Id, int? ParentRegion, int EntryBlock)

Parameters

Id int

The region identifier within the function.

ParentRegion int?

The parent region identifier, or null for the root region.

EntryBlock int

The region entry block identifier.

Properties

EntryBlock

The region entry block identifier.

public int EntryBlock { get; init; }

Property Value

int

Id

The region identifier within the function.

public int Id { get; init; }

Property Value

int

ParentRegion

The parent region identifier, or null for the root region.

public int? ParentRegion { get; init; }

Property Value

int?

Methods

Deconstruct(out int, out int?, out int)

public void Deconstruct(out int Id, out int? ParentRegion, out int EntryBlock)

Parameters

Id int
ParentRegion int?
EntryBlock int

Equals(IrLifetimeRegion?)

public bool Equals(IrLifetimeRegion? other)

Parameters

other IrLifetimeRegion

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(IrLifetimeRegion?, IrLifetimeRegion?)

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

Parameters

left IrLifetimeRegion
right IrLifetimeRegion

Returns

bool

operator !=(IrLifetimeRegion?, IrLifetimeRegion?)

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

Parameters

left IrLifetimeRegion
right IrLifetimeRegion

Returns

bool