|
LLVM
5.0.0
|
#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 () | |
| 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.
|
delete |
|
virtualdefault |
| Attribute::AttrKind AttributeImpl::getKindAsEnum | ( | ) | const |
Definition at line 451 of file Attributes.cpp.
References assert(), isEnumAttribute(), and isIntAttribute().
Referenced by llvm::Attribute::getKindAsEnum(), hasAttribute(), operator<(), and Profile().
| StringRef AttributeImpl::getKindAsString | ( | ) | const |
Definition at line 461 of file Attributes.cpp.
References assert(), and isStringAttribute().
Referenced by llvm::Attribute::getKindAsString(), hasAttribute(), operator<(), and Profile().
| uint64_t AttributeImpl::getValueAsInt | ( | ) | const |
Definition at line 456 of file Attributes.cpp.
References assert(), and isIntAttribute().
Referenced by llvm::Attribute::getAlignment(), llvm::Attribute::getAllocSizeArgs(), llvm::Attribute::getDereferenceableBytes(), llvm::Attribute::getDereferenceableOrNullBytes(), llvm::Attribute::getStackAlignment(), llvm::Attribute::getValueAsInt(), operator<(), and Profile().
| StringRef AttributeImpl::getValueAsString | ( | ) | const |
Definition at line 466 of file Attributes.cpp.
References assert(), and isStringAttribute().
Referenced by llvm::Attribute::getAsString(), llvm::Attribute::getValueAsString(), operator<(), and Profile().
| bool AttributeImpl::hasAttribute | ( | Attribute::AttrKind | A | ) | const |
Definition at line 441 of file Attributes.cpp.
References A, getKindAsEnum(), and isStringAttribute().
Referenced by llvm::Attribute::hasAttribute().
Definition at line 446 of file Attributes.cpp.
References getKindAsString(), isStringAttribute(), and Kind.
|
inline |
Definition at line 57 of file AttributeImpl.h.
References EnumAttrEntry.
Referenced by getKindAsEnum(), llvm::Attribute::isEnumAttribute(), operator<(), and Profile().
|
inline |
Definition at line 58 of file AttributeImpl.h.
References IntAttrEntry.
Referenced by getKindAsEnum(), getValueAsInt(), llvm::Attribute::isIntAttribute(), operator<(), and Profile().
|
inline |
Definition at line 59 of file AttributeImpl.h.
References StringAttrEntry.
Referenced by getKindAsString(), getValueAsString(), hasAttribute(), llvm::Attribute::isStringAttribute(), and operator<().
| bool AttributeImpl::operator< | ( | const AttributeImpl & | AI | ) | const |
Used when sorting the attributes.
Definition at line 471 of file Attributes.cpp.
References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), isEnumAttribute(), isIntAttribute(), and isStringAttribute().
|
delete |
|
inline |
Definition at line 73 of file AttributeImpl.h.
References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), isEnumAttribute(), and isIntAttribute().
|
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().
1.8.6