MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / lookup

Method lookup

mllm/engine/prefix_cache/TLB.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24void TLB::remove(vp_addr_t addr) { addr_space_.erase(addr); }
25
26char* TLB::lookup(vp_addr_t addr) {
27 auto it = addr_space_.find(addr);
28 if (it != addr_space_.end()) {
29 return it->second;
30 } else {
31 return nullptr;
32 }
33}
34
35} // namespace mllm::prefix_cache

Callers 1

physicalAddrMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected