LLVM API Documentation
#include <AttributeImpl.h>
Public Types | |
typedef const Attribute * | iterator |
Public Member Functions | |
bool | hasAttribute (Attribute::AttrKind Kind) const |
bool | hasAttribute (StringRef Kind) const |
bool | hasAttributes () const |
Attribute | getAttribute (Attribute::AttrKind Kind) const |
Attribute | getAttribute (StringRef Kind) const |
unsigned | getAlignment () const |
unsigned | getStackAlignment () const |
uint64_t | getDereferenceableBytes () const |
std::string | getAsString (bool InAttrGrp) const |
iterator | begin () const |
iterator | end () const |
void | Profile (FoldingSetNodeID &ID) const |
Static Public Member Functions | |
static AttributeSetNode * | get (LLVMContext &C, ArrayRef< Attribute > Attrs) |
static void | Profile (FoldingSetNodeID &ID, ArrayRef< Attribute > AttrList) |
Definition at line 144 of file AttributeImpl.h.
Definition at line 171 of file AttributeImpl.h.
iterator llvm::AttributeSetNode::begin | ( | ) | const [inline] |
Definition at line 172 of file AttributeImpl.h.
Referenced by llvm::AttributeSetImpl::begin(), end(), getAlignment(), getAsString(), getAttribute(), getDereferenceableBytes(), getStackAlignment(), hasAttribute(), Profile(), and llvm::AttributeSetImpl::Raw().
iterator llvm::AttributeSetNode::end | ( | ) | const [inline] |
Definition at line 173 of file AttributeImpl.h.
References begin().
Referenced by llvm::AttributeSetImpl::end(), getAlignment(), getAsString(), getAttribute(), getDereferenceableBytes(), getStackAlignment(), hasAttribute(), Profile(), and llvm::AttributeSetImpl::Raw().
AttributeSetNode * AttributeSetNode::get | ( | LLVMContext & | C, |
ArrayRef< Attribute > | Attrs | ||
) | [static] |
Definition at line 439 of file Attributes.cpp.
References llvm::array_pod_sort(), llvm::LLVMContextImpl::AttrsSetNodes, llvm::ArrayRef< T >::begin(), llvm::ArrayRef< T >::empty(), llvm::ArrayRef< T >::end(), llvm::FoldingSet< T >::FindNodeOrInsertPos(), I, llvm::FoldingSetImpl::InsertNode(), and llvm::LLVMContext::pImpl.
unsigned AttributeSetNode::getAlignment | ( | ) | const |
Definition at line 501 of file Attributes.cpp.
References llvm::Attribute::Alignment, begin(), end(), and I.
Referenced by llvm::AttributeSet::getParamAlignment(), and llvm::AttributeSetImpl::Raw().
std::string AttributeSetNode::getAsString | ( | bool | InAttrGrp | ) | const |
Definition at line 522 of file Attributes.cpp.
References begin(), end(), and I.
Referenced by llvm::AttributeSet::getAsString().
Attribute AttributeSetNode::getAttribute | ( | Attribute::AttrKind | Kind | ) | const |
Definition at line 487 of file Attributes.cpp.
References begin(), end(), and I.
Referenced by llvm::AttributeSet::getAttribute().
Attribute AttributeSetNode::getAttribute | ( | StringRef | Kind | ) | const |
Definition at line 494 of file Attributes.cpp.
uint64_t AttributeSetNode::getDereferenceableBytes | ( | ) | const |
Definition at line 515 of file Attributes.cpp.
References begin(), llvm::Attribute::Dereferenceable, end(), and I.
Referenced by llvm::AttributeSet::getDereferenceableBytes().
unsigned AttributeSetNode::getStackAlignment | ( | ) | const |
Definition at line 508 of file Attributes.cpp.
References begin(), end(), I, and llvm::Attribute::StackAlignment.
Referenced by llvm::AttributeSet::getStackAlignment(), and llvm::AttributeSetImpl::Raw().
bool AttributeSetNode::hasAttribute | ( | Attribute::AttrKind | Kind | ) | const |
Definition at line 473 of file Attributes.cpp.
References begin(), end(), and I.
Referenced by llvm::AttributeSet::hasAttribute().
bool AttributeSetNode::hasAttribute | ( | StringRef | Kind | ) | const |
Definition at line 480 of file Attributes.cpp.
bool llvm::AttributeSetNode::hasAttributes | ( | ) | const [inline] |
Definition at line 161 of file AttributeImpl.h.
Referenced by llvm::AttributeSet::hasAttributes().
void llvm::AttributeSetNode::Profile | ( | FoldingSetNodeID & | ID | ) | const [inline] |
Definition at line 175 of file AttributeImpl.h.
References begin(), end(), and llvm::makeArrayRef().
Referenced by Profile().
static void llvm::AttributeSetNode::Profile | ( | FoldingSetNodeID & | ID, |
ArrayRef< Attribute > | AttrList | ||
) | [inline, static] |
Definition at line 178 of file AttributeImpl.h.
References I, Profile(), and llvm::ArrayRef< T >::size().