#include "ruy/ctx.h"
#include <cstdlib>
#include <functional>
#include <string>
#include "ruy/check_macros.h"
#include "ruy/cpuinfo.h"
#include "ruy/ctx_impl.h"
#include "ruy/have_built_path_for.h"
#include "ruy/path.h"
#include "ruy/performance_advisory.h"
#include "ruy/platform.h"
#include "ruy/strategy_controls.h"
#include "ruy/prepacked_cache.h"
#include "ruy/trace.h"
namespace ruy {
const CtxImpl& Ctx::impl() const { … }
CtxImpl* Ctx::mutable_impl() { … }
Path Ctx::last_used_path() const { … }
Tuning Ctx::explicit_tuning() const { … }
void Ctx::set_explicit_tuning(Tuning value) { … }
const ThreadPool& Ctx::thread_pool() const { … }
ThreadPool* Ctx::mutable_thread_pool() { … }
int Ctx::max_num_threads() const { … }
void Ctx::set_max_num_threads(int value) { … }
void Ctx::clear_performance_advisories() { … }
void Ctx::set_performance_advisory(PerformanceAdvisory advisory) { … }
bool Ctx::performance_advisory(PerformanceAdvisory advisory) const { … }
void Ctx::set_num_threads_strategy(NumThreadsStrategy strategy) { … }
NumThreadsStrategy Ctx::num_threads_strategy() const { … }
void Ctx::SetRuntimeEnabledPaths(Path paths) { … }
CpuInfo* Ctx::mutable_cpuinfo() { … }
namespace {
int GetHexIntEnvVarOrZero(const char* name) { … }
Path DetectRuntimeSupportedPaths(Path paths_to_detect, CpuInfo* cpuinfo) { … }
}
Path Ctx::GetRuntimeEnabledPaths() { … }
Path Ctx::SelectPath(Path compiled_paths) { … }
void Ctx::EnsureThreadSpecificResources(int thread_count) { … }
TuningResolver* Ctx::GetThreadSpecificTuningResolver(int thread_index) const { … }
Allocator* Ctx::GetThreadSpecificAllocator(int thread_index) const { … }
Allocator* Ctx::GetMainAllocator() { … }
PrepackedCache* Ctx::GetPrepackedCache() { … }
Tuning Ctx::GetMainThreadTuning() { … }
void Ctx::ClearPrepackedCache() { … }
}