struct buffer_memory_state
Declaration
struct buffer_memory_state { /* full declaration omitted */ };
Description
Per-memory state for a single buffer. Dependencies and last writers are tracked on the contained allocations.
Member Variables
- std::vector<buffer_allocation_state> allocations
Member Function Overview
- apply_epoch(instruction * epoch) → void
- find_contiguous_allocation(const box<3> & box) const → const buffer_allocation_state *
- find_contiguous_allocation(const box<3> & box) → buffer_allocation_state *
- get_allocation(allocation_id aid) const → const buffer_allocation_state &
- get_allocation(allocation_id aid) → buffer_allocation_state &
- get_contiguous_allocation(const box<3> & box) const → const buffer_allocation_state &
- get_contiguous_allocation(const box<3> & box) → buffer_allocation_state &
- is_allocated_contiguously(const box<3> & box) const → bool
Member Functions
¶void apply_epoch(instruction* epoch)
void apply_epoch(instruction* epoch)
Description
Replace all tracked instructions that older than epoch
with epoch
.
Parameters
- instruction* epoch
¶const buffer_allocation_state*
find_contiguous_allocation(
const box<3>& box) const
const buffer_allocation_state*
find_contiguous_allocation(
const box<3>& box) const
Description
Returns the (unique) allocation covering box
if such an allocation exists, otherwise nullptr.
Parameters
- const box<3>& box
¶buffer_allocation_state*
find_contiguous_allocation(const box<3>& box)
buffer_allocation_state*
find_contiguous_allocation(const box<3>& box)
Parameters
- const box<3>& box
¶const buffer_allocation_state& get_allocation(
allocation_id aid) const
const buffer_allocation_state& get_allocation(
allocation_id aid) const
Parameters
- allocation_id aid
¶buffer_allocation_state& get_allocation(
allocation_id aid)
buffer_allocation_state& get_allocation(
allocation_id aid)
Parameters
- allocation_id aid
¶const buffer_allocation_state&
get_contiguous_allocation(const box<3>& box) const
const buffer_allocation_state&
get_contiguous_allocation(const box<3>& box) const
Description
Returns the (unique) allocation covering box
.
Parameters
- const box<3>& box
¶buffer_allocation_state&
get_contiguous_allocation(const box<3>& box)
buffer_allocation_state&
get_contiguous_allocation(const box<3>& box)
Parameters
- const box<3>& box
¶bool is_allocated_contiguously(
const box<3>& box) const
bool is_allocated_contiguously(
const box<3>& box) const
Parameters
- const box<3>& box