LLVM API Documentation
#include <ParameterAttributes.h>
Collaboration diagram for llvm::PAListPtr:

Public Member Functions | |
| PAListPtr () | |
| PAListPtr (const PAListPtr &P) | |
| const PAListPtr & | operator= (const PAListPtr &RHS) |
| ~PAListPtr () | |
| PAListPtr | addAttr (unsigned Idx, ParameterAttributes Attrs) const |
| PAListPtr | removeAttr (unsigned Idx, ParameterAttributes Attrs) const |
| ParameterAttributes | getParamAttrs (unsigned Idx) const |
| bool | paramHasAttr (unsigned Idx, ParameterAttributes Attr) const |
| unsigned | getParamAlignment (unsigned Idx) const |
| bool | hasAttrSomewhere (ParameterAttributes Attr) const |
| bool | operator== (const PAListPtr &RHS) const |
| operator==/!= - Provide equality predicates. | |
| bool | operator!= (const PAListPtr &RHS) const |
| void | dump () const |
| void * | getRawPointer () const |
| bool | isEmpty () const |
| unsigned | getNumSlots () const |
| const ParamAttrsWithIndex & | getSlot (unsigned Slot) const |
Static Public Member Functions | |
| PAListPtr | get (const ParamAttrsWithIndex *Attr, unsigned NumAttrs) |
| get - Return a ParamAttrs list with the specified parameter in it. | |
| template<typename Iter> | |
| PAListPtr | get (const Iter &I, const Iter &E) |
Definition at line 105 of file ParameterAttributes.h.
|
|
Definition at line 110 of file ParameterAttributes.h. Referenced by get(), and removeAttr(). |
|
|
Definition at line 156 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::AddRef(). |
|
|
Definition at line 168 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::DropRef(). |
|
||||||||||||
|
addAttr - Add the specified attribute at the specified index to this attribute list. Since parameter attribute lists are immutable, this returns the new list. Definition at line 212 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::Attrs, llvm::SmallVectorImpl< T >::begin(), llvm::SmallVectorImpl< T >::end(), get(), getParamAttrs(), llvm::SmallVectorImpl< T >::insert(), llvm::ParameterAttributes, llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size(). Referenced by llvm::InvokeInst::addParamAttr(), llvm::CallInst::addParamAttr(), llvm::Function::addParamAttr(), and PruneEH::runOnSCC(). |
|
|
Definition at line 288 of file ParameterAttributes.cpp. References llvm::ParamAttrsWithIndex::Attrs, getNumSlots(), getSlot(), and llvm::ParamAttrsWithIndex::Index. |
|
||||||||||||||||
|
get - Return a ParamAttr list with the parameters specified by the consecutive random access iterator range. Definition at line 125 of file ParameterAttributes.h. |
|
||||||||||||
|
get - Return a ParamAttrs list with the specified parameter in it.
Definition at line 115 of file ParameterAttributes.cpp. References PAListPtr(), and ParamAttrsLists. Referenced by addAttr(), and removeAttr(). |
|
|
getNumSlots - Return the number of slots used in this attribute list. This is the number of arguments that have an attribute set on them (including the function itself). Definition at line 175 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::Attrs, and llvm::SmallVectorImpl< T >::size(). Referenced by dump(), StripNest(), Verifier::VerifyCallSite(), Verifier::VerifyFunctionAttrs(), Verifier::visitFunction(), and WriteParamAttrTable(). |
|
|
getParamAlignment - Return the alignment for the specified function parameter. Definition at line 156 of file ParameterAttributes.h. References llvm::Intrinsic::getParamAttrs(). Referenced by llvm::InvokeInst::getParamAlignment(), llvm::CallInst::getParamAlignment(), and llvm::Function::getParamAlignment(). |
|
|
getParamAttrs - The parameter attributes for the specified parameter are returned. Parameters for the result are denoted with Idx = 0. Definition at line 189 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::Attrs, llvm::ParameterAttributes, and llvm::SmallVectorImpl< T >::size(). Referenced by addAttr(), llvm::CallSite::getParamAttrs(), removeAttr(), and Verifier::VerifyCallSite(). |
|
|
getRawPointer - Return a raw pointer that uniquely identifies this parameter attribute list. Definition at line 176 of file ParameterAttributes.h. Referenced by llvm::ValueEnumerator::getParamAttrID(). |
|
|
getSlot - Return the ParamAttrsWithIndex at the specified slot. This holds a parameter number plus a set of attributes. Definition at line 181 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::Attrs. Referenced by dump(), StripNest(), Verifier::VerifyCallSite(), Verifier::VerifyFunctionAttrs(), Verifier::visitFunction(), and WriteParamAttrTable(). |
|
|
hasAttrSomewhere - Return true if the specified attribute is set for at least one parameter or for the return value. Definition at line 201 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::Attrs, llvm::ParameterAttributes, and llvm::SmallVectorImpl< T >::size(). Referenced by llvm::CallInst::hasByValArgument(). |
|
|
isEmpty - Return true if no parameters have an attribute. Definition at line 186 of file ParameterAttributes.h. Referenced by llvm::ValueEnumerator::getParamAttrID(), Verifier::VerifyCallSite(), Verifier::VerifyFunctionAttrs(), and Verifier::visitFunction(). |
|
|
Definition at line 166 of file ParameterAttributes.h. References PAList. |
|
|
Definition at line 160 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::AddRef(), llvm::ParamAttributeListImpl::DropRef(), and PAList. |
|
|
operator==/!= - Provide equality predicates.
Definition at line 165 of file ParameterAttributes.h. References PAList. |
|
||||||||||||
|
paramHasAttr - Return true if the specified parameter index has the specified attribute set. Definition at line 150 of file ParameterAttributes.h. References llvm::Intrinsic::getParamAttrs(). Referenced by llvm::InvokeInst::paramHasAttr(), llvm::Function::paramHasAttr(), CWriter::printStructReturnPointerFunctionType(), and llvm::UpgradeIntrinsicCall(). |
|
||||||||||||
|
removeAttr - Remove the specified attribute at the specified index from this attribute list. Since parameter attribute lists are immutable, this returns the new list. Definition at line 253 of file ParameterAttributes.cpp. References llvm::ParamAttributeListImpl::Attrs, llvm::SmallVectorImpl< T >::begin(), llvm::SmallVectorImpl< T >::end(), get(), getParamAttrs(), llvm::SmallVectorImpl< T >::insert(), PAListPtr(), llvm::ParameterAttributes, llvm::SmallVectorImpl< T >::push_back(), and llvm::SmallVectorImpl< T >::size(). Referenced by llvm::InvokeInst::removeParamAttr(), llvm::CallInst::removeParamAttr(), llvm::Function::removeParamAttr(), and StripNest(). |