Skip to main content

struct allocation_with_offset

Declaration

struct allocation_with_offset { /* full declaration omitted */ };

Description

Instruction-graph equivalent of a USM pointer that permits pointer arithmetic. The offset will be applied by the executor once the allocation pointer is known.

Member Variables

allocation_id id = null_allocation_id
size_t offset_bytes = 0

Member Function Overview

Friend Function Overview

  • operator!=(const allocation_with_offset & lhs, const allocation_with_offset & rhs) → friend bool
  • operator==(const allocation_with_offset & lhs, const allocation_with_offset & rhs) → friend bool

Member Functions

allocation_with_offset()

Description

Constructs the equivalent of a null pointer.


allocation_with_offset(detail::allocation_id aid,
                       size_t offset_bytes = 0)

Parameters

detail::allocation_id aid
size_t offset_bytes = 0

Friend Functions

friend bool operator!=(
    const allocation_with_offset& lhs,
    const allocation_with_offset& rhs)

Parameters

const allocation_with_offset& lhs
const allocation_with_offset& rhs

friend bool operator==(
    const allocation_with_offset& lhs,
    const allocation_with_offset& rhs)

Parameters

const allocation_with_offset& lhs
const allocation_with_offset& rhs