LLVM 22.0.0git
|
This class represents a set of attributes that apply to the function, return type, and parameters. More...
#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 |
This class represents a set of attributes that apply to the function, return type, and parameters.
Definition at line 367 of file AttributeImpl.h.
Definition at line 399 of file AttributeImpl.h.
AttributeListImpl::AttributeListImpl | ( | ArrayRef< AttributeSet > | Sets | ) |
Definition at line 1438 of file Attributes.cpp.
References assert(), attrIdxToArrayIdx(), llvm::copy(), llvm::ArrayRef< T >::empty(), llvm::TrailingObjects< AttributeListImpl, AttributeSet >::getTrailingObjects(), I, and llvm::size().
Referenced by AttributeListImpl(), dump(), and operator=().
|
delete |
References AttributeListImpl().
|
inline |
Definition at line 401 of file AttributeImpl.h.
References llvm::TrailingObjects< AttributeListImpl, AttributeSet >::getTrailingObjects().
Referenced by end(), hasAttrSomewhere(), and Profile().
LLVM_DUMP_METHOD void AttributeListImpl::dump | ( | ) | const |
Definition at line 1486 of file Attributes.cpp.
References AttributeList, AttributeListImpl(), and LLVM_DUMP_METHOD.
|
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 1467 of file Attributes.cpp.
|
inline |
Return true if the AttributeSet or the FunctionIndex has an enum attribute of the given kind.
Definition at line 389 of file AttributeImpl.h.
|
delete |
References AttributeListImpl().
void AttributeListImpl::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Definition at line 1457 of file Attributes.cpp.
References llvm::ArrayRef(), begin(), end(), and Profile.
|
static |
Definition at line 1461 of file Attributes.cpp.
|
friend |
Definition at line 370 of file AttributeImpl.h.
References AttributeList.
Referenced by AttributeList, and dump().