Skip to main content
Log in

Mojo struct

AddressSpace

Address space of the pointer.

Aliases

  • GENERIC = 0: Generic address space.

Implemented traits

AnyType, Copyable, EqualityComparable, Movable

Methods

__init__

__init__(inout self: Self, value: Int)

Initializes the address space from the underlying integral value.

Args:

  • value (Int): The address space value.

__init__(inout self: Self, value: _GPUAddressSpace)

Initializes the address space from the underlying integral value.

Args:

  • value (_GPUAddressSpace): The address space value.

__eq__

__eq__(self: Self, other: Self) -> Bool

True if the two address spaces are equal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are equal and False otherwise.

__ne__

__ne__(self: Self, other: Self) -> Bool

True if the two address spaces are inequal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are inequal and False otherwise.

__is__

__is__(self: Self, other: Self) -> Bool

True if the two address spaces are equal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are equal and False otherwise.

__isnot__

__isnot__(self: Self, other: Self) -> Bool

True if the two address spaces are equal and False otherwise.

Args:

  • other (Self): The other address space value.

Returns:

True if the two address spaces are equal and False otherwise.

value

value(self: Self) -> Int

The integral value of the address space.

Returns:

The integral value of the address space.

__int__

__int__(self: Self) -> Int

The integral value of the address space.

Returns:

The integral value of the address space.

__mlir_index__

__mlir_index__(self: Self) -> index

Convert to index.

Returns:

The corresponding __mlir_type.index value.

Was this page helpful?