Skip to main content

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.

Declared at: src/instruction_graph_generator.cc:344

Member Variables

std::vector<buffer_allocation_state> allocations
box_vector<3> anticipated_contiguous_boxes
size_t total_allocations_performed = 0
bool frequent_allocations_warning_emitted = false

Member Function Overview

Member Functions

void apply_epoch(instruction* epoch)

Description

Replace all tracked instructions that older than epoch with epoch.

Declared at: src/instruction_graph_generator.cc:390

Parameters

instruction* epoch

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.

Declared at: src/instruction_graph_generator.cc:367

Parameters

const box<3>& box

buffer_allocation_state*
find_contiguous_allocation(const box<3>& box)

Declared at: src/instruction_graph_generator.cc:372

Parameters

const box<3>& box

const buffer_allocation_state& get_allocation(
    allocation_id aid) const

Declared at: src/instruction_graph_generator.cc:358

Parameters

allocation_id aid

buffer_allocation_state& get_allocation(
    allocation_id aid)

Declared at: src/instruction_graph_generator.cc:364

Parameters

allocation_id aid

const buffer_allocation_state&
get_contiguous_allocation(const box<3>& box) const

Description

Returns the (unique) allocation covering box.

Declared at: src/instruction_graph_generator.cc:377

Parameters

const box<3>& box

buffer_allocation_state&
get_contiguous_allocation(const box<3>& box)

Declared at: src/instruction_graph_generator.cc:383

Parameters

const box<3>& box

bool is_allocated_contiguously(
    const box<3>& box) const

Declared at: src/instruction_graph_generator.cc:387

Parameters

const box<3>& box