LLVM  16.0.0git
Classes | Namespaces
CachedHashString.h File Reference
#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/StringRef.h"
Include dependency graph for CachedHashString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  llvm::CachedHashStringRef
 A container which contains a StringRef plus a precomputed hash. More...
 
struct  llvm::DenseMapInfo< CachedHashStringRef >
 
class  llvm::CachedHashString
 A container which contains a string, which it owns, plus a precomputed hash. More...
 
struct  llvm::DenseMapInfo< CachedHashString >
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Detailed Description

This file defines CachedHashString and CachedHashStringRef. These are owning and not-owning string types that store their hash in addition to their string data.

Unlike std::string, CachedHashString can be used in DenseSet/DenseMap (because, unlike std::string, CachedHashString lets us have empty and tombstone values).

Definition in file CachedHashString.h.