LLVM  14.0.0git
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
llvm::MDNodeOpsKey Class Reference

Structure for hashing arbitrary MDNode operands. More...

#include "IR/LLVMContextImpl.h"

Inheritance diagram for llvm::MDNodeOpsKey:
Inheritance graph
[legend]

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)
 

Detailed Description

Structure for hashing arbitrary MDNode operands.

Definition at line 184 of file LLVMContextImpl.h.

Constructor & Destructor Documentation

◆ MDNodeOpsKey() [1/2]

llvm::MDNodeOpsKey::MDNodeOpsKey ( ArrayRef< Metadata * >  Ops)
inlineprotected

Definition at line 190 of file LLVMContextImpl.h.

◆ MDNodeOpsKey() [2/2]

template<class NodeTy >
llvm::MDNodeOpsKey::MDNodeOpsKey ( const NodeTy *  N,
unsigned  Offset = 0 
)
inlineprotected

Definition at line 194 of file LLVMContextImpl.h.

Member Function Documentation

◆ calculateHash()

unsigned MDNodeOpsKey::calculateHash ( MDNode N,
unsigned  Offset = 0 
)
staticprotected

◆ compareOps()

template<class NodeTy >
bool llvm::MDNodeOpsKey::compareOps ( const NodeTy *  RHS,
unsigned  Offset = 0 
) const
inlineprotected

Definition at line 198 of file LLVMContextImpl.h.

References assert(), llvm::ArrayRef< T >::empty(), getHash(), and Offset.

◆ getHash()

unsigned llvm::MDNodeOpsKey::getHash ( ) const
inline

Definition at line 220 of file LLVMContextImpl.h.

Referenced by compareOps().


The documentation for this class was generated from the following files: