5#include "program_cache_key.hpp"
7#include <rexlib/core/platform/dynamic_shared_object.h>
102 std::shared_ptr<
void> value
106 class implementation;
107 std::unique_ptr<implementation> m_implementation;
Abstract base for keys stored in an program_cache.
Definition program_cache_key.hpp:16
Bounded associative store for backend-private resources reused across operation program builds.
Definition program_cache.hpp:42
void store(std::unique_ptr< const program_cache_key > key, std::shared_ptr< void > value)
Store a value under the given key, replacing any existing entry under a key of the same dynamic type ...
std::size_t get_capacity() const noexcept
Get the maximum number of entries this cache may hold.
std::shared_ptr< void > touch(const program_cache_key &key)
Look up a previously stored value and grant it amnesty.
program_cache(std::size_t capacity) noexcept
Construct a cache with the given capacity.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10