LLVM  8.0.1
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
llvm::MDNode::HasCachedHash< NodeTy > Struct Template Reference
Collaboration diagram for llvm::MDNode::HasCachedHash< NodeTy >:
Collaboration graph
[legend]

Classes

struct  SFINAE
 

Public Types

using Yes = char[1]
 
using No = char[2]
 

Static Public Member Functions

template<class U >
static Yescheck (SFINAE< void(U::*)(unsigned), &U::setHash > *)
 
template<class U >
static Nocheck (...)
 

Static Public Attributes

static const bool value = sizeof(check<NodeTy>(nullptr)) == sizeof(Yes)
 

Detailed Description

template<class NodeTy>
struct llvm::MDNode::HasCachedHash< NodeTy >

Definition at line 770 of file Metadata.cpp.

Member Typedef Documentation

◆ No

template<class NodeTy >
using llvm::MDNode::HasCachedHash< NodeTy >::No = char[2]

Definition at line 772 of file Metadata.cpp.

◆ Yes

template<class NodeTy >
using llvm::MDNode::HasCachedHash< NodeTy >::Yes = char[1]

Definition at line 771 of file Metadata.cpp.

Member Function Documentation

◆ check() [1/2]

template<class NodeTy >
template<class U >
static Yes& llvm::MDNode::HasCachedHash< NodeTy >::check ( SFINAE< void(U::*)(unsigned), &U::setHash > *  )
static

◆ check() [2/2]

template<class NodeTy >
template<class U >
static No& llvm::MDNode::HasCachedHash< NodeTy >::check (   ...)
static

Member Data Documentation

◆ value

template<class NodeTy >
const bool llvm::MDNode::HasCachedHash< NodeTy >::value = sizeof(check<NodeTy>(nullptr)) == sizeof(Yes)
static

Definition at line 779 of file Metadata.cpp.


The documentation for this struct was generated from the following file: