LLVM 20.0.0git
Classes | Namespaces
CachedHashString.h File Reference

This file defines CachedHashString and CachedHashStringRef. More...

#include "llvm/ADT/DenseMapInfo.h"
#include "llvm/ADT/StringRef.h"

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

namespace  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.