LLVM  16.0.0git
Public Member Functions | List of all members
llvm::AttributeMask Class Reference

#include "llvm/IR/Attributes.h"

Public Member Functions

 AttributeMask ()=default
 
 AttributeMask (const AttributeMask &)=delete
 
 AttributeMask (AttributeMask &&)=default
 
 AttributeMask (AttributeSet AS)
 
AttributeMaskaddAttribute (Attribute::AttrKind Val)
 Add an attribute to the mask. More...
 
AttributeMaskaddAttribute (Attribute A)
 Add the Attribute object to the builder. More...
 
AttributeMaskaddAttribute (StringRef A)
 Add the target-dependent attribute to the builder. More...
 
bool contains (Attribute::AttrKind A) const
 Return true if the builder has the specified attribute. More...
 
bool contains (StringRef A) const
 Return true if the builder has the specified target-dependent attribute. More...
 
bool contains (Attribute A) const
 Return true if the mask contains the specified attribute. More...
 

Detailed Description

Definition at line 969 of file Attributes.h.

Constructor & Destructor Documentation

◆ AttributeMask() [1/4]

llvm::AttributeMask::AttributeMask ( )
default

◆ AttributeMask() [2/4]

llvm::AttributeMask::AttributeMask ( const AttributeMask )
delete

◆ AttributeMask() [3/4]

llvm::AttributeMask::AttributeMask ( AttributeMask &&  )
default

◆ AttributeMask() [4/4]

llvm::AttributeMask::AttributeMask ( AttributeSet  AS)
inline

Definition at line 978 of file Attributes.h.

References addAttribute().

Member Function Documentation

◆ addAttribute() [1/3]

AttributeMask& llvm::AttributeMask::addAttribute ( Attribute  A)
inline

Add the Attribute object to the builder.

Definition at line 992 of file Attributes.h.

References addAttribute().

◆ addAttribute() [2/3]

AttributeMask& llvm::AttributeMask::addAttribute ( Attribute::AttrKind  Val)
inline

◆ addAttribute() [3/3]

AttributeMask& llvm::AttributeMask::addAttribute ( StringRef  A)
inline

Add the target-dependent attribute to the builder.

Definition at line 1001 of file Attributes.h.

◆ contains() [1/3]

bool llvm::AttributeMask::contains ( Attribute  A) const
inline

Return true if the mask contains the specified attribute.

Definition at line 1017 of file Attributes.h.

References contains().

◆ contains() [2/3]

bool llvm::AttributeMask::contains ( Attribute::AttrKind  A) const
inline

Return true if the builder has the specified attribute.

Definition at line 1007 of file Attributes.h.

References assert(), and llvm::Attribute::EndAttrKinds.

Referenced by contains(), llvm::AttrBuilder::overlaps(), and llvm::AttrBuilder::remove().

◆ contains() [3/3]

bool llvm::AttributeMask::contains ( StringRef  A) const
inline

Return true if the builder has the specified target-dependent attribute.

Definition at line 1014 of file Attributes.h.


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