LLVM 22.0.0git
ActionCache.cpp
Go to the documentation of this file.
1//===----------------------------------------------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
10#include "llvm/CAS/CASID.h"
12
13using namespace llvm;
14using namespace llvm::cas;
15
16void ActionCache::anchor() {}
17
18CacheKey::CacheKey(const CASID &ID) : Key(toStringRef(ID.getHash()).str()) {}
20 : CacheKey(Proxy.getCAS(), Proxy.getRef()) {}
22 : Key(toStringRef(CAS.getID(Ref).getHash())) {}
This file contains the declaration of the ActionCache class, which is the base class for ActionCache ...
Unique identifier for a CAS object.
Definition: CASID.h:58
A key for caching an operation.
Definition: ActionCache.h:32
CacheKey(const CASID &ID)
Definition: ActionCache.cpp:18
Reference to an abstract hierarchical node, with data and references.
Definition: ObjectStore.h:236
Reference to an object in an ObjectStore instance.
Definition: CASReference.h:108
Content-addressable storage for objects.
Definition: ObjectStore.h:85
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
@ Ref
The access may reference the value stored in memory.