LLVM 20.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. | |
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. | |
iterator | begin () const |
iterator | end () const |
void | Profile (FoldingSetNodeID &ID) const |
void | dump () 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, ArrayRef< AttributeSet > Nodes) |
Friends | |
class | AttributeList |
Definition at line 372 of file AttributeImpl.h.
Definition at line 407 of file AttributeImpl.h.
AttributeListImpl::AttributeListImpl | ( | ArrayRef< AttributeSet > | Sets | ) |
Definition at line 1387 of file Attributes.cpp.
References llvm::AttributeBitSet::addAttribute(), assert(), attrIdxToArrayIdx(), llvm::copy(), llvm::ArrayRef< T >::empty(), llvm::AttributeList::FunctionIndex, I, and llvm::size().
|
delete |
|
inline |
Definition at line 409 of file AttributeImpl.h.
Referenced by end(), hasAttrSomewhere(), and Profile().
LLVM_DUMP_METHOD void AttributeListImpl::dump | ( | ) | const |
Definition at line 1435 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 1416 of file Attributes.cpp.
References begin(), 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 397 of file AttributeImpl.h.
References llvm::AttributeBitSet::hasAttribute().
|
delete |
void AttributeListImpl::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Definition at line 1406 of file Attributes.cpp.
|
static |
Definition at line 1410 of file Attributes.cpp.
|
friend |
Definition at line 375 of file AttributeImpl.h.
Referenced by dump().