LLVM 22.0.0git
|
This class stores enough information to efficiently remove some attributes from an existing AttrBuilder, AttributeSet or AttributeList. More...
#include "llvm/IR/AttributeMask.h"
Public Member Functions | |
AttributeMask ()=default | |
AttributeMask (const AttributeMask &)=delete | |
AttributeMask (AttributeMask &&)=default | |
AttributeMask (AttributeSet AS) | |
AttributeMask & | addAttribute (Attribute::AttrKind Val) |
Add an attribute to the mask. | |
AttributeMask & | addAttribute (Attribute A) |
Add the Attribute object to the builder. | |
AttributeMask & | addAttribute (StringRef A) |
Add the target-dependent attribute to the builder. | |
bool | contains (Attribute::AttrKind A) const |
Return true if the builder has the specified attribute. | |
bool | contains (StringRef A) const |
Return true if the builder has the specified target-dependent attribute. | |
bool | contains (Attribute A) const |
Return true if the mask contains the specified attribute. |
This class stores enough information to efficiently remove some attributes from an existing AttrBuilder, AttributeSet or AttributeList.
Definition at line 29 of file AttributeMask.h.
|
default |
Referenced by addAttribute(), addAttribute(), addAttribute(), AttributeMask(), and AttributeMask().
|
delete |
References AttributeMask().
|
default |
References AttributeMask().
|
inline |
Definition at line 38 of file AttributeMask.h.
References A(), and addAttribute().
|
inline |
Add the Attribute object to the builder.
Definition at line 52 of file AttributeMask.h.
References A(), addAttribute(), and AttributeMask().
|
inline |
Add an attribute to the mask.
Definition at line 44 of file AttributeMask.h.
References assert(), AttributeMask(), and llvm::Attribute::EndAttrKinds.
Referenced by addAttribute(), adjustArgAttributes(), adjustCallerSSPLevel(), AttributeMask(), llvm::getUBImplyingAttributes(), and llvm::typeIncompatible().
|
inline |
Add the target-dependent attribute to the builder.
Definition at line 61 of file AttributeMask.h.
References A(), and AttributeMask().
Return true if the mask contains the specified attribute.
Definition at line 77 of file AttributeMask.h.
References A(), and contains().
|
inline |
Return true if the builder has the specified attribute.
Definition at line 67 of file AttributeMask.h.
References A(), assert(), and llvm::Attribute::EndAttrKinds.
Referenced by contains().
Return true if the builder has the specified target-dependent attribute.
Definition at line 74 of file AttributeMask.h.
References A().