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
CacheKey(const CASID &ID)
Reference to an abstract hierarchical node, with data and references.
Reference to an object in an ObjectStore instance.
Content-addressable storage for objects.
Definition ObjectStore.h:85
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
Definition CallingConv.h:24
This is an optimization pass for GlobalISel generic memory operations.
@ Ref
The access may reference the value stored in memory.
Definition ModRef.h:32
StringRef toStringRef(bool B)
Construct a string ref from a boolean.