|
LLVM
10.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 | isTypeAttribute () 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 |
| Type * | getValueAsType () 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) |
| static void | Profile (FoldingSetNodeID &ID, Attribute::AttrKind Kind, Type *Ty) |
Protected Types | |
| enum | AttrEntryKind { EnumAttrEntry, IntAttrEntry, StringAttrEntry, TypeAttrEntry } |
Protected Member Functions | |
| AttributeImpl (AttrEntryKind KindID) | |
Definition at line 38 of file AttributeImpl.h.
|
protected |
| Enumerator | |
|---|---|
| EnumAttrEntry | |
| IntAttrEntry | |
| StringAttrEntry | |
| TypeAttrEntry | |
Definition at line 42 of file AttributeImpl.h.
|
inlineprotected |
Definition at line 49 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 519 of file Attributes.cpp.
References assert(), llvm::Attribute::isEnumAttribute(), llvm::Attribute::isIntAttribute(), and llvm::Attribute::isTypeAttribute().
Referenced by llvm::Attribute::getKindAsEnum(), isTypeAttribute(), operator<(), and Profile().
| StringRef AttributeImpl::getKindAsString | ( | ) | const |
Definition at line 529 of file Attributes.cpp.
References assert(), and llvm::Attribute::isStringAttribute().
Referenced by llvm::Attribute::getKindAsString(), isTypeAttribute(), operator<(), and Profile().
| uint64_t AttributeImpl::getValueAsInt | ( | ) | const |
Definition at line 524 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(), isTypeAttribute(), operator<(), and Profile().
| StringRef AttributeImpl::getValueAsString | ( | ) | const |
Definition at line 534 of file Attributes.cpp.
References assert(), and llvm::Attribute::isStringAttribute().
Referenced by llvm::Attribute::getAsString(), llvm::Attribute::getValueAsString(), isTypeAttribute(), operator<(), and Profile().
| Type * AttributeImpl::getValueAsType | ( | ) | const |
Definition at line 539 of file Attributes.cpp.
References assert(), and llvm::Attribute::isTypeAttribute().
Referenced by llvm::Attribute::getValueAsType(), isTypeAttribute(), and Profile().
| bool AttributeImpl::hasAttribute | ( | Attribute::AttrKind | A | ) | const |
Definition at line 509 of file Attributes.cpp.
References A, llvm::Attribute::getKindAsEnum(), and llvm::Attribute::isStringAttribute().
Referenced by llvm::Attribute::hasAttribute(), llvm::AttributeSetNode::hasAttribute(), and isTypeAttribute().
Definition at line 514 of file Attributes.cpp.
References llvm::Attribute::getKindAsString(), and llvm::Attribute::isStringAttribute().
|
inline |
Definition at line 58 of file AttributeImpl.h.
References EnumAttrEntry.
Referenced by llvm::Attribute::isEnumAttribute(), operator<(), and Profile().
|
inline |
Definition at line 59 of file AttributeImpl.h.
References IntAttrEntry.
Referenced by llvm::Attribute::isIntAttribute(), operator<(), and Profile().
|
inline |
Definition at line 60 of file AttributeImpl.h.
References StringAttrEntry.
Referenced by llvm::Attribute::isStringAttribute(), operator<(), and Profile().
|
inline |
Definition at line 61 of file AttributeImpl.h.
References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), getValueAsType(), hasAttribute(), operator<(), and TypeAttrEntry.
Referenced by llvm::Attribute::isTypeAttribute(), and operator<().
| bool AttributeImpl::operator< | ( | const AttributeImpl & | AI | ) | const |
Used when sorting the attributes.
Definition at line 544 of file Attributes.cpp.
References assert(), getKindAsEnum(), llvm::Attribute::getKindAsEnum(), getKindAsString(), llvm::Attribute::getKindAsString(), getValueAsInt(), llvm::Attribute::getValueAsInt(), getValueAsString(), llvm::Attribute::getValueAsString(), isEnumAttribute(), llvm::Attribute::isEnumAttribute(), isIntAttribute(), llvm::Attribute::isIntAttribute(), isStringAttribute(), llvm::Attribute::isStringAttribute(), isTypeAttribute(), and llvm::Attribute::isTypeAttribute().
Referenced by isTypeAttribute().
|
delete |
Referenced by AttributeImpl().
|
inline |
Definition at line 77 of file AttributeImpl.h.
References getKindAsEnum(), getKindAsString(), getValueAsInt(), getValueAsString(), getValueAsType(), isEnumAttribute(), isIntAttribute(), and isStringAttribute().
Referenced by llvm::AttributeListImpl::end(), and llvm::AttributeSetNode::Profile().
|
inlinestatic |
Definition at line 88 of file AttributeImpl.h.
References llvm::FoldingSetNodeID::AddInteger().
|
inlinestatic |
Definition at line 94 of file AttributeImpl.h.
References llvm::FoldingSetNodeID::AddString(), and llvm::StringRef::empty().
|
inlinestatic |
Definition at line 99 of file AttributeImpl.h.
References llvm::FoldingSetNodeID::AddInteger(), and llvm::FoldingSetNodeID::AddPointer().
1.8.13