LLVM 22.0.0git
llvm::AttributeMask Class Reference

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)
AttributeMaskaddAttribute (Attribute::AttrKind Val)
 Add an attribute to the mask.
AttributeMaskaddAttribute (Attribute A)
 Add the Attribute object to the builder.
AttributeMaskaddAttribute (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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ AttributeMask() [1/4]

llvm::AttributeMask::AttributeMask ( )
default

◆ AttributeMask() [2/4]

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

References AttributeMask().

◆ AttributeMask() [3/4]

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

References AttributeMask().

◆ AttributeMask() [4/4]

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

Definition at line 38 of file AttributeMask.h.

References A(), and addAttribute().

Member Function Documentation

◆ addAttribute() [1/3]

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

Add the Attribute object to the builder.

Definition at line 52 of file AttributeMask.h.

References A(), addAttribute(), and AttributeMask().

◆ 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 61 of file AttributeMask.h.

References A(), and AttributeMask().

◆ contains() [1/3]

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

Return true if the mask contains the specified attribute.

Definition at line 77 of file AttributeMask.h.

References A(), and 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 67 of file AttributeMask.h.

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

Referenced by contains().

◆ 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 74 of file AttributeMask.h.

References A().


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