MCPcopy Create free account
hub / github.com/MegEngine/MegCC / SearchItemStorage

Method SearchItemStorage

compiler/test/kernel/common/src/fast_run_cache.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace test;
6
7FastRunCache::SearchItemStorage::SearchItemStorage(const Algorithm::SearchItem& item) {
8 Algorithm::serialize_write_pod(item.opr_type, data_hold);
9 for (auto&& layout : item.layouts) {
10 data_hold += layout.serialize();
11 }
12 data_hold += item.param;
13}
14
15Algorithm::Info::Desc FastRunCache::get(const Algorithm::SearchItem& key) {
16 SearchItemStorage key_storage(key);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected