LLVM
8.0.1
|
#include "IR/AttributeImpl.h"
Public Member Functions | |
AttributeImpl (const AttributeImpl &)=delete | |
AttributeImpl & | operator= (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) | |
Definition at line 38 of file AttributeImpl.h.
|
protected |
Enumerator | |
---|---|
EnumAttrEntry | |
IntAttrEntry | |
StringAttrEntry |
Definition at line 42 of file AttributeImpl.h.
|
inlineprotected |
Definition at line 48 of file AttributeImpl.h.
References operator=(), and ~AttributeImpl().
|
delete |
|
virtualdefault |
Referenced by AttributeImpl(), and llvm::Attribute::operator<().
Attribute::AttrKind AttributeImpl::getKindAsEnum | ( | ) | const |
Definition at line 463 of file Attributes.cpp.
References assert(), llvm::Attribute::isEnumAttribute(), and llvm::Attribute::isIntAttribute().
Referenced by llvm::Attribute::getKindAsEnum(), isStringAttribute(), operator<(), and Profile().
StringRef AttributeImpl::getKindAsString | ( | ) | const |
Definition at line 473 of file Attributes.cpp.
References assert(), and llvm::Attribute::isStringAttribute().
Referenced by llvm::Attribute::getKindAsString(), isStringAttribute(), operator<(), and Profile().
uint64_t AttributeImpl::getValueAsInt | ( | ) | const |
Definition at line 468 of file Attributes.cpp.
References assert(), and llvm::Attribute::isIntAttribute().
Referenced by llvm::Attribute::getAlignment(), llvm::Attribute::getAllocSizeArgs(), llvm::Attribute::getDereferenceableBytes(), llvm::Attribute::getDereferenceableOrNullBytes(), llvm::Attribute::getStackAlignment(), llvm::Attribute::getValueAsInt(), isStringAttribute(), operator<(), and Profile().
StringRef AttributeImpl::getValueAsString | ( | ) | const |
Definition at line 478 of file Attributes.cpp.
References assert(), and llvm::Attribute::isStringAttribute().
Referenced by llvm::Attribute::getAsString(), llvm::Attribute::getValueAsString(), isStringAttribute(), operator<(), and Profile().
bool AttributeImpl::hasAttribute | ( | Attribute::AttrKind | A | ) | const |
Definition at line 453 of file Attributes.cpp.
References A, llvm::Attribute::getKindAsEnum(), and llvm::Attribute::isStringAttribute().
Referenced by llvm::Attribute::hasAttribute(), llvm::AttributeSetNode::hasAttribute(), and isStringAttribute().
Definition at line 458 of file Attributes.cpp.
References llvm::Attribute::getKindAsString(), llvm::Attribute::isStringAttribute(), and Kind.
|
inline |
Definition at line 57 of file AttributeImpl.h.
References EnumAttrEntry.
Referenced by llvm::Attribute::isEnumAttribute(), operator<(), and Profile().
|
inline |
Definition at line 58 of file AttributeImpl.h.
References IntAttrEntry.
Referenced by llvm::Attribute::isIntAttribute(), operator<(), and Profile().
|
inline |
Definition at line 59 of file AttributeImpl.h.
References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), hasAttribute(), Kind, operator<(), and StringAttrEntry.
Referenced by llvm::Attribute::isStringAttribute(), and operator<().
bool AttributeImpl::operator< | ( | const AttributeImpl & | AI | ) | const |
Used when sorting the attributes.
Definition at line 483 of file Attributes.cpp.
References getKindAsEnum(), llvm::Attribute::getKindAsEnum(), getKindAsString(), llvm::Attribute::getKindAsString(), getValueAsInt(), llvm::Attribute::getValueAsInt(), getValueAsString(), llvm::Attribute::getValueAsString(), isEnumAttribute(), llvm::Attribute::isEnumAttribute(), isIntAttribute(), llvm::Attribute::isIntAttribute(), and isStringAttribute().
Referenced by isStringAttribute().
|
delete |
Referenced by AttributeImpl().
|
inline |
Definition at line 73 of file AttributeImpl.h.
References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), isEnumAttribute(), and isIntAttribute().
Referenced by llvm::AttributeListImpl::end(), and llvm::AttributeSetNode::Profile().
|
inlinestatic |
Definition at line 82 of file AttributeImpl.h.
References llvm::FoldingSetNodeID::AddInteger().
|
inlinestatic |
Definition at line 88 of file AttributeImpl.h.
References llvm::FoldingSetNodeID::AddString(), and llvm::StringRef::empty().