Halide  12.0.1
Halide compiler and libraries
Halide::Internal::Autoscheduler::Cache Struct Reference

#include <Cache.h>

Public Member Functions

 Cache ()=delete
 
 Cache (const CachingOptions &_options, size_t nodes_size)
 
 ~Cache ()=default
 
bool add_memoized_blocks (const State *state, std::function< void(IntrusivePtr< State > &&)> &accept_child, const FunctionDAG::Node *node, int &num_children, const FunctionDAG &dag, const MachineParams &params, CostModel *cost_model, int64_t memory_limit) const
 
void memoize_blocks (const FunctionDAG::Node *node, LoopNest *new_root)
 

Public Attributes

CachingOptions options
 
BlockCache memoized_compute_root_blocks
 
size_t cache_hits = 0
 
size_t cache_misses = 0
 

Detailed Description

Definition at line 100 of file Cache.h.

Constructor & Destructor Documentation

◆ Cache() [1/2]

Halide::Internal::Autoscheduler::Cache::Cache ( )
delete

◆ Cache() [2/2]

Halide::Internal::Autoscheduler::Cache::Cache ( const CachingOptions _options,
size_t  nodes_size 
)
inline

◆ ~Cache()

Halide::Internal::Autoscheduler::Cache::~Cache ( )
default

Member Function Documentation

◆ add_memoized_blocks()

bool Halide::Internal::Autoscheduler::Cache::add_memoized_blocks ( const State state,
std::function< void(IntrusivePtr< State > &&)> &  accept_child,
const FunctionDAG::Node node,
int &  num_children,
const FunctionDAG dag,
const MachineParams params,
CostModel cost_model,
int64_t  memory_limit 
) const

◆ memoize_blocks()

void Halide::Internal::Autoscheduler::Cache::memoize_blocks ( const FunctionDAG::Node node,
LoopNest new_root 
)

Member Data Documentation

◆ options

CachingOptions Halide::Internal::Autoscheduler::Cache::options

Definition at line 101 of file Cache.h.

Referenced by Cache().

◆ memoized_compute_root_blocks

BlockCache Halide::Internal::Autoscheduler::Cache::memoized_compute_root_blocks

Definition at line 102 of file Cache.h.

Referenced by Cache().

◆ cache_hits

size_t Halide::Internal::Autoscheduler::Cache::cache_hits = 0
mutable

Definition at line 104 of file Cache.h.

◆ cache_misses

size_t Halide::Internal::Autoscheduler::Cache::cache_misses = 0
mutable

Definition at line 105 of file Cache.h.


The documentation for this struct was generated from the following file: