LLVM 20.0.0git
|
Structure for hashing arbitrary MDNode operands. More...
#include "IR/LLVMContextImpl.h"
Public Member Functions | |
unsigned | getHash () const |
Protected Member Functions | |
MDNodeOpsKey (ArrayRef< Metadata * > Ops) | |
template<class NodeTy > | |
MDNodeOpsKey (const NodeTy *N, unsigned Offset=0) | |
template<class NodeTy > | |
bool | compareOps (const NodeTy *RHS, unsigned Offset=0) const |
Static Protected Member Functions | |
static unsigned | calculateHash (MDNode *N, unsigned Offset=0) |
Structure for hashing arbitrary MDNode operands.
Definition at line 244 of file LLVMContextImpl.h.
Definition at line 250 of file LLVMContextImpl.h.
|
inlineprotected |
Definition at line 254 of file LLVMContextImpl.h.
Definition at line 196 of file LLVMContextImpl.cpp.
References assert(), calculateHash(), llvm::drop_begin(), llvm::hash_combine_range(), N, and llvm::Offset.
Referenced by llvm::MDNodeKeyImpl< GenericDINode >::calculateHash(), calculateHash(), and llvm::MDNodeKeyImpl< MDTuple >::calculateHash().
|
inlineprotected |
Definition at line 258 of file LLVMContextImpl.h.
References assert(), compareOps(), llvm::ArrayRef< T >::empty(), getHash(), llvm::Offset, and RHS.
Referenced by compareOps().
|
inline |
Definition at line 280 of file LLVMContextImpl.h.
Referenced by compareOps().