LLVM
16.0.0git
|
#include "IR/AttributeImpl.h"
Public Types | |
using | iterator = const AttributeSet * |
Public Member Functions | |
AttributeListImpl (ArrayRef< AttributeSet > Sets) | |
AttributeListImpl (const AttributeListImpl &)=delete | |
AttributeListImpl & | operator= (const AttributeListImpl &)=delete |
bool | hasFnAttribute (Attribute::AttrKind Kind) const |
Return true if the AttributeSet or the FunctionIndex has an enum attribute of the given kind. More... | |
bool | hasAttrSomewhere (Attribute::AttrKind Kind, unsigned *Index=nullptr) const |
Return true if the specified attribute is set for at least one parameter or for the return value. More... | |
iterator | begin () const |
iterator | end () const |
void | Profile (FoldingSetNodeID &ID) const |
void | dump () const |
![]() | |
Node ()=default | |
void * | getNextInBucket () const |
void | SetNextInBucket (void *N) |
Static Public Member Functions | |
static void | Profile (FoldingSetNodeID &ID, ArrayRef< AttributeSet > Nodes) |
Friends | |
class | AttributeList |
Definition at line 282 of file AttributeImpl.h.
Definition at line 317 of file AttributeImpl.h.
AttributeListImpl::AttributeListImpl | ( | ArrayRef< AttributeSet > | Sets | ) |
Definition at line 965 of file Attributes.cpp.
References llvm::AttributeBitSet::addAttribute(), assert(), attrIdxToArrayIdx(), llvm::copy(), llvm::ArrayRef< T >::empty(), llvm::AttributeList::FunctionIndex, and I.
|
delete |
|
inline |
Definition at line 319 of file AttributeImpl.h.
Referenced by end(), hasAttrSomewhere(), and Profile().
LLVM_DUMP_METHOD void AttributeListImpl::dump | ( | ) | const |
Definition at line 1013 of file Attributes.cpp.
References AttributeList.
|
inline |
bool AttributeListImpl::hasAttrSomewhere | ( | Attribute::AttrKind | Kind, |
unsigned * | Index = nullptr |
||
) | const |
Return true if the specified attribute is set for at least one parameter or for the return value.
If Index is not nullptr, the index of a parameter with the specified attribute is provided.
Definition at line 994 of file Attributes.cpp.
References begin(), E, llvm::AttributeBitSet::hasAttribute(), and I.
|
inline |
Return true if the AttributeSet or the FunctionIndex has an enum attribute of the given kind.
Definition at line 307 of file AttributeImpl.h.
References llvm::AttributeBitSet::hasAttribute().
|
delete |
void AttributeListImpl::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Definition at line 984 of file Attributes.cpp.
References begin(), end(), and llvm::makeArrayRef().
|
static |
Definition at line 988 of file Attributes.cpp.
|
friend |
Definition at line 285 of file AttributeImpl.h.
Referenced by dump().