Class IrLifetimeRegion
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
IdintThe region identifier within the function.
ParentRegionint?The parent region identifier, or
nullfor the root region.EntryBlockintThe region entry block identifier.
Properties
EntryBlock
The region entry block identifier.
public int EntryBlock { get; init; }
Property Value
Id
The region identifier within the function.
public int Id { get; init; }
Property Value
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
Equals(IrLifetimeRegion?)
public bool Equals(IrLifetimeRegion? other)
Parameters
otherIrLifetimeRegion
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(IrLifetimeRegion?, IrLifetimeRegion?)
public static bool operator ==(IrLifetimeRegion? left, IrLifetimeRegion? right)
Parameters
leftIrLifetimeRegionrightIrLifetimeRegion
Returns
operator !=(IrLifetimeRegion?, IrLifetimeRegion?)
public static bool operator !=(IrLifetimeRegion? left, IrLifetimeRegion? right)
Parameters
leftIrLifetimeRegionrightIrLifetimeRegion