LLVM  8.0.1
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | List of all members
llvm::AttributeImpl Class Reference

#include "IR/AttributeImpl.h"

Inheritance diagram for llvm::AttributeImpl:
Inheritance graph
[legend]
Collaboration diagram for llvm::AttributeImpl:
Collaboration graph
[legend]

Public Member Functions

 AttributeImpl (const AttributeImpl &)=delete
 
AttributeImploperator= (const AttributeImpl &)=delete
 
virtual ~AttributeImpl ()
 
bool isEnumAttribute () const
 
bool isIntAttribute () const
 
bool isStringAttribute () const
 
bool hasAttribute (Attribute::AttrKind A) const
 
bool hasAttribute (StringRef Kind) const
 
Attribute::AttrKind getKindAsEnum () const
 
uint64_t getValueAsInt () const
 
StringRef getKindAsString () const
 
StringRef getValueAsString () const
 
bool operator< (const AttributeImpl &AI) const
 Used when sorting the attributes. More...
 
void Profile (FoldingSetNodeID &ID) const
 
- Public Member Functions inherited from llvm::FoldingSetBase::Node
 Node ()=default
 
void * getNextInBucket () const
 
void SetNextInBucket (void *N)
 

Static Public Member Functions

static void Profile (FoldingSetNodeID &ID, Attribute::AttrKind Kind, uint64_t Val)
 
static void Profile (FoldingSetNodeID &ID, StringRef Kind, StringRef Values)
 

Protected Types

enum  AttrEntryKind { EnumAttrEntry, IntAttrEntry, StringAttrEntry }
 

Protected Member Functions

 AttributeImpl (AttrEntryKind KindID)
 

Detailed Description

Definition at line 38 of file AttributeImpl.h.

Member Enumeration Documentation

◆ AttrEntryKind

Enumerator
EnumAttrEntry 
IntAttrEntry 
StringAttrEntry 

Definition at line 42 of file AttributeImpl.h.

Constructor & Destructor Documentation

◆ AttributeImpl() [1/2]

llvm::AttributeImpl::AttributeImpl ( AttrEntryKind  KindID)
inlineprotected

Definition at line 48 of file AttributeImpl.h.

References operator=(), and ~AttributeImpl().

◆ AttributeImpl() [2/2]

llvm::AttributeImpl::AttributeImpl ( const AttributeImpl )
delete

◆ ~AttributeImpl()

AttributeImpl::~AttributeImpl ( )
virtualdefault

Member Function Documentation

◆ getKindAsEnum()

Attribute::AttrKind AttributeImpl::getKindAsEnum ( ) const

◆ getKindAsString()

StringRef AttributeImpl::getKindAsString ( ) const

◆ getValueAsInt()

uint64_t AttributeImpl::getValueAsInt ( ) const

◆ getValueAsString()

StringRef AttributeImpl::getValueAsString ( ) const

◆ hasAttribute() [1/2]

bool AttributeImpl::hasAttribute ( Attribute::AttrKind  A) const

◆ hasAttribute() [2/2]

bool AttributeImpl::hasAttribute ( StringRef  Kind) const

◆ isEnumAttribute()

bool llvm::AttributeImpl::isEnumAttribute ( ) const
inline

Definition at line 57 of file AttributeImpl.h.

References EnumAttrEntry.

Referenced by llvm::Attribute::isEnumAttribute(), operator<(), and Profile().

◆ isIntAttribute()

bool llvm::AttributeImpl::isIntAttribute ( ) const
inline

Definition at line 58 of file AttributeImpl.h.

References IntAttrEntry.

Referenced by llvm::Attribute::isIntAttribute(), operator<(), and Profile().

◆ isStringAttribute()

bool llvm::AttributeImpl::isStringAttribute ( ) const
inline

◆ operator<()

bool AttributeImpl::operator< ( const AttributeImpl AI) const

◆ operator=()

AttributeImpl& llvm::AttributeImpl::operator= ( const AttributeImpl )
delete

Referenced by AttributeImpl().

◆ Profile() [1/3]

void llvm::AttributeImpl::Profile ( FoldingSetNodeID ID) const
inline

◆ Profile() [2/3]

static void llvm::AttributeImpl::Profile ( FoldingSetNodeID ID,
Attribute::AttrKind  Kind,
uint64_t  Val 
)
inlinestatic

Definition at line 82 of file AttributeImpl.h.

References llvm::FoldingSetNodeID::AddInteger().

◆ Profile() [3/3]

static void llvm::AttributeImpl::Profile ( FoldingSetNodeID ID,
StringRef  Kind,
StringRef  Values 
)
inlinestatic

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