Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
llvm::AttributeSetNode Class Referencefinal

This class represents a group of attributes that apply to one element: function, return type, or parameter. More...

#include "IR/AttributeImpl.h"

Inheritance diagram for llvm::AttributeSetNode:
[legend]

Public Types

using iterator = const Attribute *

Public Member Functions

 AttributeSetNode (const AttributeSetNode &)=delete
AttributeSetNodeoperator= (const AttributeSetNode &)=delete
void operator delete (void *p)
unsigned getNumAttributes () const
 Return the number of attributes this AttributeList contains.
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
MaybeAlign getAlignment () const
MaybeAlign getStackAlignment () const
uint64_t getDereferenceableBytes () const
uint64_t getDereferenceableOrNullBytes () const
std::optional< std::pair< unsigned, std::optional< unsigned > > > getAllocSizeArgs () const
unsigned getVScaleRangeMin () const
std::optional< unsignedgetVScaleRangeMax () const
UWTableKind getUWTableKind () const
AllocFnKind getAllocKind () const
MemoryEffects getMemoryEffects () const
CaptureInfo getCaptureInfo () const
FPClassTest getNoFPClass () const
std::string getAsString (bool InAttrGrp) const
TypegetAttributeType (Attribute::AttrKind Kind) const
iterator begin () const
iterator end () const
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 AttributeSetNodeget (LLVMContext &C, const AttrBuilder &B)
static AttributeSetNodeget (LLVMContext &C, ArrayRef< Attribute > Attrs)
static void Profile (FoldingSetNodeID &ID, ArrayRef< Attribute > AttrList)

Detailed Description

This class represents a group of attributes that apply to one element: function, return type, or parameter.

Definition at line 293 of file AttributeImpl.h.

Member Typedef Documentation

◆ iterator

Definition at line 348 of file AttributeImpl.h.

Constructor & Destructor Documentation

◆ AttributeSetNode()

llvm::AttributeSetNode::AttributeSetNode ( const AttributeSetNode & )
delete

Member Function Documentation

◆ begin()

iterator llvm::AttributeSetNode::begin ( ) const
inline

◆ end()

iterator llvm::AttributeSetNode::end ( ) const
inline

Definition at line 351 of file AttributeImpl.h.

References begin().

Referenced by getAsString(), and Profile().

◆ get() [1/2]

AttributeSetNode * AttributeSetNode::get ( LLVMContext & C,
ArrayRef< Attribute > Attrs )
static

Definition at line 1267 of file Attributes.cpp.

References llvm::CallingConv::C, and llvm::sort().

◆ get() [2/2]

AttributeSetNode * AttributeSetNode::get ( LLVMContext & C,
const AttrBuilder & B )
static

Definition at line 1304 of file Attributes.cpp.

References B(), and llvm::CallingConv::C.

Referenced by llvm::AttributeSet::get(), and llvm::AttributeSet::get().

◆ getAlignment()

MaybeAlign AttributeSetNode::getAlignment ( ) const

Definition at line 1339 of file Attributes.cpp.

References A().

◆ getAllocKind()

AllocFnKind AttributeSetNode::getAllocKind ( ) const

Definition at line 1394 of file Attributes.cpp.

References A(), and llvm::Unknown.

◆ getAllocSizeArgs()

std::optional< std::pair< unsigned, std::optional< unsigned > > > AttributeSetNode::getAllocSizeArgs ( ) const

Definition at line 1370 of file Attributes.cpp.

References A().

◆ getAsString()

std::string AttributeSetNode::getAsString ( bool InAttrGrp) const

Definition at line 1418 of file Attributes.cpp.

References begin(), end(), and I.

◆ getAttribute() [1/2]

Attribute AttributeSetNode::getAttribute ( Attribute::AttrKind Kind) const

Definition at line 1329 of file Attributes.cpp.

References A().

◆ getAttribute() [2/2]

Attribute AttributeSetNode::getAttribute ( StringRef Kind) const

Definition at line 1335 of file Attributes.cpp.

◆ getAttributeType()

Type * AttributeSetNode::getAttributeType ( Attribute::AttrKind Kind) const

Definition at line 1351 of file Attributes.cpp.

References A().

◆ getCaptureInfo()

CaptureInfo AttributeSetNode::getCaptureInfo ( ) const

Definition at line 1406 of file Attributes.cpp.

References A(), and llvm::CaptureInfo::all().

◆ getDereferenceableBytes()

uint64_t AttributeSetNode::getDereferenceableBytes ( ) const

Definition at line 1357 of file Attributes.cpp.

References A().

◆ getDereferenceableOrNullBytes()

uint64_t AttributeSetNode::getDereferenceableOrNullBytes ( ) const

Definition at line 1363 of file Attributes.cpp.

References A().

◆ getMemoryEffects()

MemoryEffects AttributeSetNode::getMemoryEffects ( ) const

Definition at line 1400 of file Attributes.cpp.

References A(), and llvm::MemoryEffectsBase< IRMemLocation >::unknown().

◆ getNoFPClass()

FPClassTest AttributeSetNode::getNoFPClass ( ) const

Definition at line 1412 of file Attributes.cpp.

References A(), and llvm::fcNone.

◆ getNumAttributes()

unsigned llvm::AttributeSetNode::getNumAttributes ( ) const
inline

Return the number of attributes this AttributeList contains.

Definition at line 321 of file AttributeImpl.h.

◆ getStackAlignment()

MaybeAlign AttributeSetNode::getStackAlignment ( ) const

Definition at line 1345 of file Attributes.cpp.

References A().

◆ getUWTableKind()

UWTableKind AttributeSetNode::getUWTableKind ( ) const

Definition at line 1388 of file Attributes.cpp.

References A(), and llvm::None.

◆ getVScaleRangeMax()

std::optional< unsigned > AttributeSetNode::getVScaleRangeMax ( ) const

Definition at line 1382 of file Attributes.cpp.

References A().

◆ getVScaleRangeMin()

unsigned AttributeSetNode::getVScaleRangeMin ( ) const

Definition at line 1376 of file Attributes.cpp.

References A().

◆ hasAttribute() [1/2]

bool llvm::AttributeSetNode::hasAttribute ( Attribute::AttrKind Kind) const
inline

Definition at line 323 of file AttributeImpl.h.

◆ hasAttribute() [2/2]

bool AttributeSetNode::hasAttribute ( StringRef Kind) const

Definition at line 1308 of file Attributes.cpp.

◆ hasAttributes()

bool llvm::AttributeSetNode::hasAttributes ( ) const
inline

Definition at line 327 of file AttributeImpl.h.

◆ operator delete()

void llvm::AttributeSetNode::operator delete ( void * p)
inline

Definition at line 314 of file AttributeImpl.h.

◆ operator=()

AttributeSetNode & llvm::AttributeSetNode::operator= ( const AttributeSetNode & )
delete

◆ Profile() [1/2]

void llvm::AttributeSetNode::Profile ( FoldingSetNodeID & ID) const
inline

Definition at line 353 of file AttributeImpl.h.

References llvm::ArrayRef(), begin(), end(), and Profile.

◆ Profile() [2/2]

void llvm::AttributeSetNode::Profile ( FoldingSetNodeID & ID,
ArrayRef< Attribute > AttrList )
inlinestatic

Definition at line 357 of file AttributeImpl.h.


The documentation for this class was generated from the following files: