source: icGREP/icgrep-devel/icgrep/toolchain/object_cache_manager.h @ 6184

Last change on this file since 6184 was 6184, checked in by nmedfort, 12 months ago

Initial version of PipelineKernel? + revised StreamSet? model.

File size: 648 bytes
Line 
1#ifndef PIPELINEDRIVER_H
2#define PIPELINEDRIVER_H
3
4#include <toolchain/object_cache.h>
5
6namespace kernel { class Kernel; }
7namespace kernel { class KernelBuilder; }
8
9class ParabixObjectCache;
10
11class ObjectCacheManager {
12public:
13
14    static bool checkForCachedKernel(const std::unique_ptr<kernel::KernelBuilder> & b, kernel::Kernel * const kernel) noexcept;
15
16    static void performIncrementalCacheCleanupStep() noexcept;
17
18    static void initializeCacheSystems();
19
20    static ParabixObjectCache * getObjectCache() {
21        return mCache.get();
22    }
23
24private:
25
26    static std::unique_ptr<ParabixObjectCache> mCache;
27};
28
29#endif // PIPELINEDRIVER_H
Note: See TracBrowser for help on using the repository browser.