|
LLVM
5.0.0
|
#include "llvm/IR/Attributes.h"
Public Types | |
| using | iterator = const Attribute * |
Static Public Member Functions | |
| static AttributeSet | get (LLVMContext &C, const AttrBuilder &B) |
| static AttributeSet | get (LLVMContext &C, ArrayRef< Attribute > Attrs) |
Friends | |
| template<typename Ty > | |
| struct | DenseMapInfo |
Definition at line 205 of file Attributes.h.
| using llvm::AttributeSet::iterator = const Attribute * |
Definition at line 282 of file Attributes.h.
|
default |
AttributeSet is a trivially copyable value type.
Referenced by get().
|
default |
|
default |
| AttributeSet AttributeSet::addAttribute | ( | LLVMContext & | C, |
| Attribute::AttrKind | Kind | ||
| ) | const |
Add an argument attribute.
Returns a new set because attribute sets are immutable.
Definition at line 509 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), addAttributes(), B, get(), and hasAttribute().
| AttributeSet AttributeSet::addAttribute | ( | LLVMContext & | C, |
| StringRef | Kind, | ||
| StringRef | Value = StringRef() |
||
| ) | const |
Add a target-dependent attribute.
Returns a new set because attribute sets are immutable.
Definition at line 517 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), addAttributes(), B, and get().
| AttributeSet AttributeSet::addAttributes | ( | LLVMContext & | C, |
| AttributeSet | AS | ||
| ) | const |
Add attributes to the attribute set.
Returns a new set because attribute sets are immutable.
Definition at line 524 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), B, C, hasAttributes(), and I.
Referenced by addAttribute().
| AttributeSet::iterator AttributeSet::begin | ( | ) | const |
Definition at line 612 of file Attributes.cpp.
References llvm::AttributeSetNode::begin().
Referenced by llvm::AttributeList::begin().
| LLVM_DUMP_METHOD void AttributeSet::dump | ( | ) | const |
Definition at line 621 of file Attributes.cpp.
References llvm::dbgs(), and getAsString().
| AttributeSet::iterator AttributeSet::end | ( | ) | const |
Definition at line 616 of file Attributes.cpp.
References llvm::AttributeSetNode::end().
Referenced by llvm::AttributeList::end().
|
static |
Definition at line 501 of file Attributes.cpp.
References AttributeSet(), and llvm::AttributeSetNode::get().
Referenced by addAttribute(), llvm::AttributeList::addAttributes(), llvm::AttributeList::addParamAttribute(), llvm::AttributeList::get(), legalizeCallAttributes(), and llvm::AttributeList::removeAttributes().
|
static |
Definition at line 505 of file Attributes.cpp.
References AttributeSet(), and llvm::AttributeSetNode::get().
| unsigned AttributeSet::getAlignment | ( | ) | const |
Definition at line 587 of file Attributes.cpp.
References llvm::AttributeSetNode::getAlignment().
Referenced by llvm::AttributeList::addAttributes(), llvm::AttributeList::getParamAlignment(), and llvm::AttributeList::getRetAlignment().
Definition at line 603 of file Attributes.cpp.
References llvm::AttributeSetNode::getAllocSizeArgs().
Referenced by llvm::AttributeList::getAllocSizeArgs().
Definition at line 608 of file Attributes.cpp.
References llvm::AttributeSetNode::getAsString().
Referenced by dump(), and llvm::AttributeList::getAsString().
| Attribute AttributeSet::getAttribute | ( | Attribute::AttrKind | Kind | ) | const |
Return the attribute object.
Definition at line 579 of file Attributes.cpp.
References llvm::AttributeSetNode::getAttribute().
Referenced by llvm::AttributeList::getAttribute().
Return the target-dependent attribute object.
Definition at line 583 of file Attributes.cpp.
References llvm::AttributeSetNode::getAttribute().
| uint64_t AttributeSet::getDereferenceableBytes | ( | ) | const |
Definition at line 595 of file Attributes.cpp.
References llvm::AttributeSetNode::getDereferenceableBytes().
Referenced by llvm::AttributeList::getDereferenceableBytes().
| uint64_t AttributeSet::getDereferenceableOrNullBytes | ( | ) | const |
Definition at line 599 of file Attributes.cpp.
References llvm::AttributeSetNode::getDereferenceableOrNullBytes().
Referenced by llvm::AttributeList::getDereferenceableOrNullBytes().
| unsigned AttributeSet::getNumAttributes | ( | ) | const |
Return the number of attributes in this set.
Definition at line 567 of file Attributes.cpp.
References llvm::AttributeSetNode::getNumAttributes().
Referenced by LLVMGetAttributeCountAtIndex().
| unsigned AttributeSet::getStackAlignment | ( | ) | const |
Definition at line 591 of file Attributes.cpp.
References llvm::AttributeSetNode::getStackAlignment().
Referenced by llvm::AttributeList::getStackAlignment().
| bool AttributeSet::hasAttribute | ( | Attribute::AttrKind | Kind | ) | const |
Return true if the attribute exists in this set.
Definition at line 571 of file Attributes.cpp.
References llvm::AttributeSetNode::hasAttribute().
Referenced by addAttribute(), llvm::AttributeList::hasAttribute(), llvm::GlobalVariable::hasImplicitSection(), and removeAttribute().
Return true if the attribute exists in this set.
Definition at line 575 of file Attributes.cpp.
References llvm::AttributeSetNode::hasAttribute().
|
inline |
Return true if attributes exists in this set.
Definition at line 261 of file Attributes.h.
Referenced by addAttributes(), llvm::AttributeList::get(), and llvm::AttributeList::hasAttributes().
|
inline |
Definition at line 229 of file Attributes.h.
|
inline |
Definition at line 228 of file Attributes.h.
| AttributeSet AttributeSet::removeAttribute | ( | LLVMContext & | C, |
| Attribute::AttrKind | Kind | ||
| ) | const |
Remove the specified attribute from this set.
Returns a new set because attribute sets are immutable.
Definition at line 539 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), B, hasAttribute(), and removeAttributes().
| AttributeSet AttributeSet::removeAttribute | ( | LLVMContext & | C, |
| StringRef | Kind | ||
| ) | const |
Remove the specified attribute from this set.
Returns a new set because attribute sets are immutable.
Definition at line 547 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), B, hasAttribute(), and removeAttributes().
| AttributeSet AttributeSet::removeAttributes | ( | LLVMContext & | C, |
| const AttrBuilder & | AttrsToRemove | ||
| ) | const |
Remove the specified attributes from this set.
Returns a new set because attribute sets are immutable.
Definition at line 555 of file Attributes.cpp.
References assert(), B, C, and llvm::AttrBuilder::hasAlignmentAttr().
Referenced by removeAttribute().
|
friend |
Definition at line 214 of file Attributes.h.
1.8.6