struct MemorySolver::Box

Overview

Representation of edge (size and live time) More…

#include <memory_solver.hpp>

struct Box
{
    // fields

    int start;
    int finish;
    int64_t size;
    int64_t id;
};

Detailed Documentation

Representation of edge (size and live time)

Fields

int start

Execution order index of first use. The data will be produced here.

int finish

The execution order index of last use. After that data will be released. -1 is a reserved value for “till to end”. The data will be alive to very end of execution.

int64_t size

Size of data. In abstract unit of measure (byte, simd, cache line, …)

int64_t id

Box identifier, unique for each box. Will be used to querying calculated offset.