|
LLVM
10.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 214 of file Attributes.h.
| using llvm::AttributeSet::iterator = const Attribute * |
Definition at line 296 of file Attributes.h.
|
default |
AttributeSet is a trivially copyable value type.
|
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 597 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), B, get(), and llvm::Attribute::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 605 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), 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 612 of file Attributes.cpp.
References llvm::AttrBuilder::addAttribute(), B, C, hasAttributes(), and I.
| AttributeSet::iterator AttributeSet::begin | ( | ) | const |
Definition at line 699 of file Attributes.cpp.
Referenced by llvm::AttributeList::begin(), and llvm::FunctionComparator::cmpMem().
| LLVM_DUMP_METHOD void AttributeSet::dump | ( | ) | const |
Definition at line 708 of file Attributes.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, llvm::copy(), llvm::dbgs(), llvm::Attribute::EndAttrKinds, llvm::Attribute::getAsString(), I, and llvm::ArrayRef< T >::size().
| AttributeSet::iterator AttributeSet::end | ( | ) | const |
Definition at line 703 of file Attributes.cpp.
Referenced by llvm::FunctionComparator::cmpMem(), and llvm::AttributeList::end().
|
static |
Definition at line 589 of file Attributes.cpp.
References llvm::AttributeSetNode::get().
Referenced by addAttribute(), llvm::AttributeList::addAttributes(), AddCalls(), llvm::AttributeList::addParamAttribute(), annotateAnyAllocSite(), FunctionNumber(), llvm::AttributeList::get(), getRetComponentType(), getSignature(), isFuncOrArgAttr(), legalizeCallAttributes(), maybeSetDSOLocal(), parseOptionalLinkageAux(), and llvm::promoteCall().
|
static |
Definition at line 593 of file Attributes.cpp.
References llvm::AttributeSetNode::get().
| MaybeAlign AttributeSet::getAlignment | ( | ) | const |
Definition at line 670 of file Attributes.cpp.
References llvm::Attribute::None.
Definition at line 690 of file Attributes.cpp.
Definition at line 695 of file Attributes.cpp.
Referenced by isFuncOrArgAttr(), and maybePrintComdat().
| Attribute AttributeSet::getAttribute | ( | Attribute::AttrKind | Kind | ) | const |
Return the attribute object.
Definition at line 662 of file Attributes.cpp.
References llvm::Attribute::Attribute().
Return the target-dependent attribute object.
Definition at line 666 of file Attributes.cpp.
References llvm::Attribute::Attribute().
| Type * AttributeSet::getByValType | ( | ) | const |
Definition at line 686 of file Attributes.cpp.
Referenced by isFuncOrArgAttr().
| uint64_t AttributeSet::getDereferenceableBytes | ( | ) | const |
Definition at line 678 of file Attributes.cpp.
| uint64_t AttributeSet::getDereferenceableOrNullBytes | ( | ) | const |
Definition at line 682 of file Attributes.cpp.
| unsigned AttributeSet::getNumAttributes | ( | ) | const |
Return the number of attributes in this set.
Definition at line 650 of file Attributes.cpp.
Referenced by isFuncOrArgAttr(), and LLVMGetAttributeCountAtIndex().
| MaybeAlign AttributeSet::getStackAlignment | ( | ) | const |
Definition at line 674 of file Attributes.cpp.
References llvm::Attribute::None.
| bool AttributeSet::hasAttribute | ( | Attribute::AttrKind | Kind | ) | const |
Return true if the attribute exists in this set.
Definition at line 654 of file Attributes.cpp.
Referenced by annotateAnyAllocSite(), getRetComponentType(), llvm::GlobalVariable::hasImplicitSection(), isFuncOrArgAttr(), and llvm::PPCInstrInfo::isSignOrZeroExtended().
Return true if the attribute exists in this set.
Definition at line 658 of file Attributes.cpp.
|
inline |
Return true if attributes exists in this set.
Definition at line 274 of file Attributes.h.
References llvm::Attribute::getAlignment(), llvm::Attribute::getAllocSizeArgs(), llvm::Attribute::getAsString(), getAttribute(), llvm::Attribute::getDereferenceableBytes(), llvm::Attribute::getDereferenceableOrNullBytes(), llvm::Attribute::getStackAlignment(), and llvm::Attribute::hasAttribute().
Referenced by addAttributes(), llvm::AttributeList::get(), getAttrKindEncoding(), getMetadataTypeOrder(), llvm::SlotTracker::initializeIndexIfNeeded(), isFuncOrArgAttr(), and maybePrintComdat().
|
inline |
Definition at line 238 of file Attributes.h.
References LLVM_NODISCARD, and llvm::RISCVFenceField::O.
|
inline |
Definition at line 237 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 627 of file Attributes.cpp.
References B, C, llvm::Attribute::hasAttribute(), and llvm::AttrBuilder::removeAttribute().
Referenced by getRetComponentType().
| 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 635 of file Attributes.cpp.
References B, C, llvm::Attribute::hasAttribute(), and llvm::AttrBuilder::removeAttribute().
| 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 643 of file Attributes.cpp.
References B, C, and llvm::AttrBuilder::remove().
|
friend |
Definition at line 216 of file Attributes.h.
1.8.13