class AttributeList
Declaration
class AttributeList { /* full declaration omitted */ };
Description
This class holds the attributes for a function, its return value, and its parameters. You access the attributes for each of them via an index into the AttributeList object. The function attributes are at index `AttributeList::FunctionIndex', the return value is at index `AttributeList::ReturnIndex', and the attributes for the parameters start at index `AttributeList::FirstArgIndex'.
Declared at: llvm/include/llvm/IR/Attributes.h:337
Method Overview
- public AttributeList()
- public llvm::AttributeList addAllocSizeAttr(llvm::LLVMContext & C, unsigned int Index, unsigned int ElemSizeArg, const Optional<unsigned int> & NumElemsArg)
- public llvm::AttributeList addAllocSizeParamAttr(llvm::LLVMContext & C, unsigned int ArgNo, unsigned int ElemSizeArg, const Optional<unsigned int> & NumElemsArg)
- public llvm::AttributeList addAttribute(llvm::LLVMContext & C, unsigned int Index, llvm::Attribute A) const
- public llvm::AttributeList addAttribute(llvm::LLVMContext & C, unsigned int Index, llvm::StringRef Kind, llvm::StringRef Value = llvm::StringRef()) const
- public llvm::AttributeList addAttribute(llvm::LLVMContext & C, unsigned int Index, Attribute::AttrKind Kind) const
- public llvm::AttributeList addAttributes(llvm::LLVMContext & C, unsigned int Index, const llvm::AttrBuilder & B) const
- public llvm::AttributeList addDereferenceableAttr(llvm::LLVMContext & C, unsigned int Index, uint64_t Bytes) const
- public llvm::AttributeList addDereferenceableOrNullAttr(llvm::LLVMContext & C, unsigned int Index, uint64_t Bytes) const
- public llvm::AttributeList addDereferenceableOrNullParamAttr(llvm::LLVMContext & C, unsigned int ArgNo, uint64_t Bytes) const
- public llvm::AttributeList addDereferenceableParamAttr(llvm::LLVMContext & C, unsigned int ArgNo, uint64_t Bytes) const
- public llvm::AttributeList addParamAttribute(llvm::LLVMContext & C, unsigned int ArgNo, Attribute::AttrKind Kind) const
- public llvm::AttributeList addParamAttribute(llvm::LLVMContext & C, unsigned int ArgNo, llvm::StringRef Kind, llvm::StringRef Value = llvm::StringRef()) const
- public llvm::AttributeList addParamAttribute(llvm::LLVMContext & C, ArrayRef<unsigned int> ArgNos, llvm::Attribute A) const
- public llvm::AttributeList addParamAttributes(llvm::LLVMContext & C, unsigned int ArgNo, const llvm::AttrBuilder & B) const
- public llvm::AttributeList::iterator begin() const
- public void dump() const
- public llvm::AttributeList::iterator end() const
- public static llvm::AttributeList get(llvm::LLVMContext & C, ArrayRef<std::pair<unsigned int, AttributeSet>> Attrs)
- public static llvm::AttributeList get(llvm::LLVMContext & C, ArrayRef<std::pair<unsigned int, Attribute>> Attrs)
- public static llvm::AttributeList get(llvm::LLVMContext & C, llvm::AttributeSet FnAttrs, llvm::AttributeSet RetAttrs, ArrayRef<llvm::AttributeSet> ArgAttrs)
- public static llvm::AttributeList get(llvm::LLVMContext & C, ArrayRef<llvm::AttributeList> Attrs)
- public static llvm::AttributeList get(llvm::LLVMContext & C, unsigned int Index, const llvm::AttrBuilder & B)
- public static llvm::AttributeList get(llvm::LLVMContext & C, unsigned int Index, ArrayRef<llvm::StringRef> Kind)
- public static llvm::AttributeList get(llvm::LLVMContext & C, unsigned int Index, ArrayRef<Attribute::AttrKind> Kinds)
- public std::pair<unsigned int, Optional<unsigned int>> getAllocSizeArgs(unsigned int Index) const
- public std::string getAsString(unsigned int Index, bool InAttrGrp = false) const
- public llvm::Attribute getAttribute(unsigned int Index, Attribute::AttrKind Kind) const
- public llvm::Attribute getAttribute(unsigned int Index, llvm::StringRef Kind) const
- public llvm::AttributeSet getAttributes(unsigned int Index) const
- public llvm::LLVMContext & getContext() const
- public uint64_t getDereferenceableBytes(unsigned int Index) const
- public uint64_t getDereferenceableOrNullBytes(unsigned int Index) const
- public llvm::AttributeSet getFnAttributes() const
- public unsigned int getNumAttrSets() const
- public llvm::MaybeAlign getParamAlignment(unsigned int ArgNo) const
- public llvm::Attribute getParamAttr(unsigned int ArgNo, llvm::StringRef Kind) const
- public llvm::Attribute getParamAttr(unsigned int ArgNo, Attribute::AttrKind Kind) const
- public llvm::AttributeSet getParamAttributes(unsigned int ArgNo) const
- public llvm::Type * getParamByValType(unsigned int ArgNo) const
- public uint64_t getParamDereferenceableBytes(unsigned int ArgNo) const
- public uint64_t getParamDereferenceableOrNullBytes(unsigned int ArgNo) const
- public void * getRawPointer() const
- public llvm::MaybeAlign getRetAlignment() const
- public llvm::AttributeSet getRetAttributes() const
- public llvm::MaybeAlign getStackAlignment(unsigned int Index) const
- public bool hasAttrSomewhere(Attribute::AttrKind Kind, unsigned int * Index = nullptr) const
- public bool hasAttribute(unsigned int Index, llvm::StringRef Kind) const
- public bool hasAttribute(unsigned int Index, Attribute::AttrKind Kind) const
- public bool hasAttributes(unsigned int Index) const
- public bool hasFnAttribute(Attribute::AttrKind Kind) const
- public bool hasFnAttribute(llvm::StringRef Kind) const
- public bool hasParamAttr(unsigned int ArgNo, llvm::StringRef Kind) const
- public bool hasParamAttr(unsigned int ArgNo, Attribute::AttrKind Kind) const
- public bool hasParamAttribute(unsigned int ArgNo, Attribute::AttrKind Kind) const
- public bool hasParamAttrs(unsigned int ArgNo) const
- public unsigned int index_begin() const
- public unsigned int index_end() const
- public bool isEmpty() const
- public llvm::AttributeList removeAttribute(llvm::LLVMContext & C, unsigned int Index, Attribute::AttrKind Kind) const
- public llvm::AttributeList removeAttribute(llvm::LLVMContext & C, unsigned int Index, llvm::StringRef Kind) const
- public llvm::AttributeList removeAttributes(llvm::LLVMContext & C, unsigned int Index) const
- public llvm::AttributeList removeAttributes(llvm::LLVMContext & C, unsigned int Index, const llvm::AttrBuilder & AttrsToRemove) const
- public llvm::AttributeList removeParamAttribute(llvm::LLVMContext & C, unsigned int ArgNo, llvm::StringRef Kind) const
- public llvm::AttributeList removeParamAttribute(llvm::LLVMContext & C, unsigned int ArgNo, Attribute::AttrKind Kind) const
- public llvm::AttributeList removeParamAttributes(llvm::LLVMContext & C, unsigned int ArgNo) const
- public llvm::AttributeList removeParamAttributes(llvm::LLVMContext & C, unsigned int ArgNo, const llvm::AttrBuilder & AttrsToRemove) const
Methods
¶AttributeList()
AttributeList()
Declared at: llvm/include/llvm/IR/Attributes.h:375
¶llvm::AttributeList addAllocSizeAttr(
llvm::LLVMContext& C,
unsigned int Index,
unsigned int ElemSizeArg,
const Optional<unsigned int>& NumElemsArg)
llvm::AttributeList addAllocSizeAttr(
llvm::LLVMContext& C,
unsigned int Index,
unsigned int ElemSizeArg,
const Optional<unsigned int>& NumElemsArg)
Description
Add the allocsize attribute to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:518
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- unsigned int ElemSizeArg
- const Optional<unsigned int>& NumElemsArg
¶llvm::AttributeList addAllocSizeParamAttr(
llvm::LLVMContext& C,
unsigned int ArgNo,
unsigned int ElemSizeArg,
const Optional<unsigned int>& NumElemsArg)
llvm::AttributeList addAllocSizeParamAttr(
llvm::LLVMContext& C,
unsigned int ArgNo,
unsigned int ElemSizeArg,
const Optional<unsigned int>& NumElemsArg)
Description
Add the allocsize attribute to the attribute set at the given arg index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:524
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- unsigned int ElemSizeArg
- const Optional<unsigned int>& NumElemsArg
¶llvm::AttributeList addAttribute(
llvm::LLVMContext& C,
unsigned int Index,
llvm::Attribute A) const
llvm::AttributeList addAttribute(
llvm::LLVMContext& C,
unsigned int Index,
llvm::Attribute A) const
Description
Add an attribute to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:403
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- llvm::Attribute A
¶llvm::AttributeList addAttribute(
llvm::LLVMContext& C,
unsigned int Index,
llvm::StringRef Kind,
llvm::StringRef Value =
llvm::StringRef()) const
llvm::AttributeList addAttribute(
llvm::LLVMContext& C,
unsigned int Index,
llvm::StringRef Kind,
llvm::StringRef Value =
llvm::StringRef()) const
Description
Add an attribute to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:398
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- llvm::StringRef Kind
- llvm::StringRef Value = llvm::StringRef()
¶llvm::AttributeList addAttribute(
llvm::LLVMContext& C,
unsigned int Index,
Attribute::AttrKind Kind) const
llvm::AttributeList addAttribute(
llvm::LLVMContext& C,
unsigned int Index,
Attribute::AttrKind Kind) const
Description
Add an attribute to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:392
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- Attribute::AttrKind Kind
¶llvm::AttributeList addAttributes(
llvm::LLVMContext& C,
unsigned int Index,
const llvm::AttrBuilder& B) const
llvm::AttributeList addAttributes(
llvm::LLVMContext& C,
unsigned int Index,
const llvm::AttrBuilder& B) const
Description
Add attributes to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:408
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- const llvm::AttrBuilder& B
¶llvm::AttributeList addDereferenceableAttr(
llvm::LLVMContext& C,
unsigned int Index,
uint64_t Bytes) const
llvm::AttributeList addDereferenceableAttr(
llvm::LLVMContext& C,
unsigned int Index,
uint64_t Bytes) const
Description
Add the dereferenceable attribute to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:491
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- uint64_t Bytes
¶llvm::AttributeList addDereferenceableOrNullAttr(
llvm::LLVMContext& C,
unsigned int Index,
uint64_t Bytes) const
llvm::AttributeList addDereferenceableOrNullAttr(
llvm::LLVMContext& C,
unsigned int Index,
uint64_t Bytes) const
Description
Add the dereferenceable_or_null attribute to the attribute set at the given index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:504
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- uint64_t Bytes
¶llvm::AttributeList
addDereferenceableOrNullParamAttr(
llvm::LLVMContext& C,
unsigned int ArgNo,
uint64_t Bytes) const
llvm::AttributeList
addDereferenceableOrNullParamAttr(
llvm::LLVMContext& C,
unsigned int ArgNo,
uint64_t Bytes) const
Description
Add the dereferenceable_or_null attribute to the attribute set at the given arg index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:510
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- uint64_t Bytes
¶llvm::AttributeList addDereferenceableParamAttr(
llvm::LLVMContext& C,
unsigned int ArgNo,
uint64_t Bytes) const
llvm::AttributeList addDereferenceableParamAttr(
llvm::LLVMContext& C,
unsigned int ArgNo,
uint64_t Bytes) const
Description
Add the dereferenceable attribute to the attribute set at the given arg index. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:497
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- uint64_t Bytes
¶llvm::AttributeList addParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
Attribute::AttrKind Kind) const
llvm::AttributeList addParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
Attribute::AttrKind Kind) const
Description
Add an argument attribute to the list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:413
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- Attribute::AttrKind Kind
¶llvm::AttributeList addParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
llvm::StringRef Kind,
llvm::StringRef Value =
llvm::StringRef()) const
llvm::AttributeList addParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
llvm::StringRef Kind,
llvm::StringRef Value =
llvm::StringRef()) const
Description
Add an argument attribute to the list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:421
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- llvm::StringRef Kind
- llvm::StringRef Value = llvm::StringRef()
¶llvm::AttributeList addParamAttribute(
llvm::LLVMContext& C,
ArrayRef<unsigned int> ArgNos,
llvm::Attribute A) const
llvm::AttributeList addParamAttribute(
llvm::LLVMContext& C,
ArrayRef<unsigned int> ArgNos,
llvm::Attribute A) const
Description
Add an attribute to the attribute list at the given arg indices. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:428
Parameters
- llvm::LLVMContext& C
- ArrayRef<unsigned int> ArgNos
- llvm::Attribute A
¶llvm::AttributeList addParamAttributes(
llvm::LLVMContext& C,
unsigned int ArgNo,
const llvm::AttrBuilder& B) const
llvm::AttributeList addParamAttributes(
llvm::LLVMContext& C,
unsigned int ArgNo,
const llvm::AttrBuilder& B) const
Description
Add an argument attribute to the list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:434
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- const llvm::AttrBuilder& B
¶llvm::AttributeList::iterator begin() const
llvm::AttributeList::iterator begin() const
Declared at: llvm/include/llvm/IR/Attributes.h:650
¶void dump() const
void dump() const
Declared at: llvm/include/llvm/IR/Attributes.h:671
¶llvm::AttributeList::iterator end() const
llvm::AttributeList::iterator end() const
Declared at: llvm/include/llvm/IR/Attributes.h:651
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
ArrayRef<std::pair<unsigned int,
AttributeSet>> Attrs)
static llvm::AttributeList get(
llvm::LLVMContext& C,
ArrayRef<std::pair<unsigned int,
AttributeSet>> Attrs)
Declared at: llvm/include/llvm/IR/Attributes.h:360
Parameters
- llvm::LLVMContext& C
- ArrayRef<std::pair<unsigned int, AttributeSet>> Attrs
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
ArrayRef<std::pair<unsigned int, Attribute>>
Attrs)
static llvm::AttributeList get(
llvm::LLVMContext& C,
ArrayRef<std::pair<unsigned int, Attribute>>
Attrs)
Description
Create an AttributeList with the specified parameters in it.
Declared at: llvm/include/llvm/IR/Attributes.h:358
Parameters
- llvm::LLVMContext& C
- ArrayRef<std::pair<unsigned int, Attribute>> Attrs
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
llvm::AttributeSet FnAttrs,
llvm::AttributeSet RetAttrs,
ArrayRef<llvm::AttributeSet> ArgAttrs)
static llvm::AttributeList get(
llvm::LLVMContext& C,
llvm::AttributeSet FnAttrs,
llvm::AttributeSet RetAttrs,
ArrayRef<llvm::AttributeSet> ArgAttrs)
Description
Create an AttributeList from attribute sets for a function, its return value, and all of its arguments.
Declared at: llvm/include/llvm/IR/Attributes.h:365
Parameters
- llvm::LLVMContext& C
- llvm::AttributeSet FnAttrs
- llvm::AttributeSet RetAttrs
- ArrayRef<llvm::AttributeSet> ArgAttrs
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
ArrayRef<llvm::AttributeList> Attrs)
static llvm::AttributeList get(
llvm::LLVMContext& C,
ArrayRef<llvm::AttributeList> Attrs)
Description
Return an AttributeList with the specified parameters in it.
Declared at: llvm/include/llvm/IR/Attributes.h:382
Parameters
- llvm::LLVMContext& C
- ArrayRef<llvm::AttributeList> Attrs
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
unsigned int Index,
const llvm::AttrBuilder& B)
static llvm::AttributeList get(
llvm::LLVMContext& C,
unsigned int Index,
const llvm::AttrBuilder& B)
Declared at: llvm/include/llvm/IR/Attributes.h:387
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- const llvm::AttrBuilder& B
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
unsigned int Index,
ArrayRef<llvm::StringRef> Kind)
static llvm::AttributeList get(
llvm::LLVMContext& C,
unsigned int Index,
ArrayRef<llvm::StringRef> Kind)
Declared at: llvm/include/llvm/IR/Attributes.h:385
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- ArrayRef<llvm::StringRef> Kind
¶static llvm::AttributeList get(
llvm::LLVMContext& C,
unsigned int Index,
ArrayRef<Attribute::AttrKind> Kinds)
static llvm::AttributeList get(
llvm::LLVMContext& C,
unsigned int Index,
ArrayRef<Attribute::AttrKind> Kinds)
Declared at: llvm/include/llvm/IR/Attributes.h:383
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- ArrayRef<Attribute::AttrKind> Kinds
¶std::pair<unsigned int, Optional<unsigned int>>
getAllocSizeArgs(unsigned int Index) const
std::pair<unsigned int, Optional<unsigned int>>
getAllocSizeArgs(unsigned int Index) const
Description
Get the allocsize argument numbers (or pair(0, 0) if unknown).
Declared at: llvm/include/llvm/IR/Attributes.h:639
Parameters
- unsigned int Index
¶std::string getAsString(
unsigned int Index,
bool InAttrGrp = false) const
std::string getAsString(
unsigned int Index,
bool InAttrGrp = false) const
Description
Return the attributes at the index as a string.
Declared at: llvm/include/llvm/IR/Attributes.h:642
Parameters
- unsigned int Index
- bool InAttrGrp = false
¶llvm::Attribute getAttribute(
unsigned int Index,
Attribute::AttrKind Kind) const
llvm::Attribute getAttribute(
unsigned int Index,
Attribute::AttrKind Kind) const
Description
Return the attribute object that exists at the given index.
Declared at: llvm/include/llvm/IR/Attributes.h:591
Parameters
- unsigned int Index
- Attribute::AttrKind Kind
¶llvm::Attribute getAttribute(
unsigned int Index,
llvm::StringRef Kind) const
llvm::Attribute getAttribute(
unsigned int Index,
llvm::StringRef Kind) const
Description
Return the attribute object that exists at the given index.
Declared at: llvm/include/llvm/IR/Attributes.h:594
Parameters
- unsigned int Index
- llvm::StringRef Kind
¶llvm::AttributeSet getAttributes(
unsigned int Index) const
llvm::AttributeSet getAttributes(
unsigned int Index) const
Description
The attributes for the specified index are returned.
Declared at: llvm/include/llvm/IR/Attributes.h:537
Parameters
- unsigned int Index
¶llvm::LLVMContext& getContext() const
llvm::LLVMContext& getContext() const
Description
Retrieve the LLVM context.
Declared at: llvm/include/llvm/IR/Attributes.h:534
¶uint64_t getDereferenceableBytes(
unsigned int Index) const
uint64_t getDereferenceableBytes(
unsigned int Index) const
Description
Get the number of dereferenceable bytes (or zero if unknown).
Declared at: llvm/include/llvm/IR/Attributes.h:619
Parameters
- unsigned int Index
¶uint64_t getDereferenceableOrNullBytes(
unsigned int Index) const
uint64_t getDereferenceableOrNullBytes(
unsigned int Index) const
Description
Get the number of dereferenceable_or_null bytes (or zero if unknown).
Declared at: llvm/include/llvm/IR/Attributes.h:629
Parameters
- unsigned int Index
¶llvm::AttributeSet getFnAttributes() const
llvm::AttributeSet getFnAttributes() const
Description
The function attributes are returned.
Declared at: llvm/include/llvm/IR/Attributes.h:547
¶unsigned int getNumAttrSets() const
unsigned int getNumAttrSets() const
Declared at: llvm/include/llvm/IR/Attributes.h:653
¶llvm::MaybeAlign getParamAlignment(
unsigned int ArgNo) const
llvm::MaybeAlign getParamAlignment(
unsigned int ArgNo) const
Description
Return the alignment for the specified function parameter.
Declared at: llvm/include/llvm/IR/Attributes.h:610
Parameters
- unsigned int ArgNo
¶llvm::Attribute getParamAttr(
unsigned int ArgNo,
llvm::StringRef Kind) const
llvm::Attribute getParamAttr(
unsigned int ArgNo,
llvm::StringRef Kind) const
Description
Return the attribute object that exists at the given index.
Declared at: llvm/include/llvm/IR/Attributes.h:602
Parameters
- unsigned int ArgNo
- llvm::StringRef Kind
¶llvm::Attribute getParamAttr(
unsigned int ArgNo,
Attribute::AttrKind Kind) const
llvm::Attribute getParamAttr(
unsigned int ArgNo,
Attribute::AttrKind Kind) const
Description
Return the attribute object that exists at the arg index.
Declared at: llvm/include/llvm/IR/Attributes.h:597
Parameters
- unsigned int ArgNo
- Attribute::AttrKind Kind
¶llvm::AttributeSet getParamAttributes(
unsigned int ArgNo) const
llvm::AttributeSet getParamAttributes(
unsigned int ArgNo) const
Description
The attributes for the argument or parameter at the given index are returned.
Declared at: llvm/include/llvm/IR/Attributes.h:541
Parameters
- unsigned int ArgNo
¶llvm::Type* getParamByValType(
unsigned int ArgNo) const
llvm::Type* getParamByValType(
unsigned int ArgNo) const
Description
Return the byval type for the specified function parameter.
Declared at: llvm/include/llvm/IR/Attributes.h:613
Parameters
- unsigned int ArgNo
¶uint64_t getParamDereferenceableBytes(
unsigned int ArgNo) const
uint64_t getParamDereferenceableBytes(
unsigned int ArgNo) const
Description
Get the number of dereferenceable bytes (or zero if unknown) of an arg.
Declared at: llvm/include/llvm/IR/Attributes.h:623
Parameters
- unsigned int ArgNo
¶uint64_t getParamDereferenceableOrNullBytes(
unsigned int ArgNo) const
uint64_t getParamDereferenceableOrNullBytes(
unsigned int ArgNo) const
Description
Get the number of dereferenceable_or_null bytes (or zero if unknown) of an arg.
Declared at: llvm/include/llvm/IR/Attributes.h:633
Parameters
- unsigned int ArgNo
¶void* getRawPointer() const
void* getRawPointer() const
Description
Return a raw pointer that uniquely identifies this attribute list.
Declared at: llvm/include/llvm/IR/Attributes.h:664
¶llvm::MaybeAlign getRetAlignment() const
llvm::MaybeAlign getRetAlignment() const
Description
Return the alignment of the return value.
Declared at: llvm/include/llvm/IR/Attributes.h:607
¶llvm::AttributeSet getRetAttributes() const
llvm::AttributeSet getRetAttributes() const
Description
The attributes for the ret value are returned.
Declared at: llvm/include/llvm/IR/Attributes.h:544
¶llvm::MaybeAlign getStackAlignment(
unsigned int Index) const
llvm::MaybeAlign getStackAlignment(
unsigned int Index) const
Description
Get the stack alignment.
Declared at: llvm/include/llvm/IR/Attributes.h:616
Parameters
- unsigned int Index
¶bool hasAttrSomewhere(
Attribute::AttrKind Kind,
unsigned int* Index = nullptr) const
bool hasAttrSomewhere(
Attribute::AttrKind Kind,
unsigned int* Index = nullptr) const
Description
Return true if the specified attribute is set for at least one parameter or for the return value. If Index is not nullptr, the index of a parameter with the specified attribute is provided.
Declared at: llvm/include/llvm/IR/Attributes.h:587
Parameters
- Attribute::AttrKind Kind
- unsigned int* Index = nullptr
¶bool hasAttribute(unsigned int Index,
llvm::StringRef Kind) const
bool hasAttribute(unsigned int Index,
llvm::StringRef Kind) const
Description
Return true if the attribute exists at the given index.
Declared at: llvm/include/llvm/IR/Attributes.h:553
Parameters
- unsigned int Index
- llvm::StringRef Kind
¶bool hasAttribute(unsigned int Index,
Attribute::AttrKind Kind) const
bool hasAttribute(unsigned int Index,
Attribute::AttrKind Kind) const
Description
Return true if the attribute exists at the given index.
Declared at: llvm/include/llvm/IR/Attributes.h:550
Parameters
- unsigned int Index
- Attribute::AttrKind Kind
¶bool hasAttributes(unsigned int Index) const
bool hasAttributes(unsigned int Index) const
Description
Return true if attribute exists at the given index.
Declared at: llvm/include/llvm/IR/Attributes.h:556
Parameters
- unsigned int Index
¶bool hasFnAttribute(
Attribute::AttrKind Kind) const
bool hasFnAttribute(
Attribute::AttrKind Kind) const
Description
Equivalent to hasAttribute(AttributeList::FunctionIndex, Kind) but may be faster.
Declared at: llvm/include/llvm/IR/Attributes.h:575
Parameters
- Attribute::AttrKind Kind
¶bool hasFnAttribute(llvm::StringRef Kind) const
bool hasFnAttribute(llvm::StringRef Kind) const
Description
Equivalent to hasAttribute(AttributeList::FunctionIndex, Kind) but may be faster.
Declared at: llvm/include/llvm/IR/Attributes.h:579
Parameters
- llvm::StringRef Kind
¶bool hasParamAttr(unsigned int ArgNo,
llvm::StringRef Kind) const
bool hasParamAttr(unsigned int ArgNo,
llvm::StringRef Kind) const
Description
Return true if the attribute exists for the given argument
Declared at: llvm/include/llvm/IR/Attributes.h:564
Parameters
- unsigned int ArgNo
- llvm::StringRef Kind
¶bool hasParamAttr(unsigned int ArgNo,
Attribute::AttrKind Kind) const
bool hasParamAttr(unsigned int ArgNo,
Attribute::AttrKind Kind) const
Description
Return true if the attribute exists for the given argument
Declared at: llvm/include/llvm/IR/Attributes.h:559
Parameters
- unsigned int ArgNo
- Attribute::AttrKind Kind
¶bool hasParamAttribute(
unsigned int ArgNo,
Attribute::AttrKind Kind) const
bool hasParamAttribute(
unsigned int ArgNo,
Attribute::AttrKind Kind) const
Description
Equivalent to hasAttribute(ArgNo + FirstArgIndex, Kind).
Declared at: llvm/include/llvm/IR/Attributes.h:582
Parameters
- unsigned int ArgNo
- Attribute::AttrKind Kind
¶bool hasParamAttrs(unsigned int ArgNo) const
bool hasParamAttrs(unsigned int ArgNo) const
Description
Return true if attributes exists for the given argument
Declared at: llvm/include/llvm/IR/Attributes.h:569
Parameters
- unsigned int ArgNo
¶unsigned int index_begin() const
unsigned int index_begin() const
Description
Use these to iterate over the valid attribute indices.
Declared at: llvm/include/llvm/IR/Attributes.h:656
¶unsigned int index_end() const
unsigned int index_end() const
Declared at: llvm/include/llvm/IR/Attributes.h:657
¶bool isEmpty() const
bool isEmpty() const
Description
Return true if there are no attributes.
Declared at: llvm/include/llvm/IR/Attributes.h:669
¶llvm::AttributeList removeAttribute(
llvm::LLVMContext& C,
unsigned int Index,
Attribute::AttrKind Kind) const
llvm::AttributeList removeAttribute(
llvm::LLVMContext& C,
unsigned int Index,
Attribute::AttrKind Kind) const
Description
Remove the specified attribute at the specified index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:442
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- Attribute::AttrKind Kind
¶llvm::AttributeList removeAttribute(
llvm::LLVMContext& C,
unsigned int Index,
llvm::StringRef Kind) const
llvm::AttributeList removeAttribute(
llvm::LLVMContext& C,
unsigned int Index,
llvm::StringRef Kind) const
Description
Remove the specified attribute at the specified index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:447
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- llvm::StringRef Kind
¶llvm::AttributeList removeAttributes(
llvm::LLVMContext& C,
unsigned int Index) const
llvm::AttributeList removeAttributes(
llvm::LLVMContext& C,
unsigned int Index) const
Description
Remove all attributes at the specified index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:457
Parameters
- llvm::LLVMContext& C
- unsigned int Index
¶llvm::AttributeList removeAttributes(
llvm::LLVMContext& C,
unsigned int Index,
const llvm::AttrBuilder& AttrsToRemove) const
llvm::AttributeList removeAttributes(
llvm::LLVMContext& C,
unsigned int Index,
const llvm::AttrBuilder& AttrsToRemove) const
Description
Remove the specified attributes at the specified index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:452
Parameters
- llvm::LLVMContext& C
- unsigned int Index
- const llvm::AttrBuilder& AttrsToRemove
¶llvm::AttributeList removeParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
llvm::StringRef Kind) const
llvm::AttributeList removeParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
llvm::StringRef Kind) const
Description
Remove the specified attribute at the specified arg index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:469
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- llvm::StringRef Kind
¶llvm::AttributeList removeParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
Attribute::AttrKind Kind) const
llvm::AttributeList removeParamAttribute(
llvm::LLVMContext& C,
unsigned int ArgNo,
Attribute::AttrKind Kind) const
Description
Remove the specified attribute at the specified arg index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:462
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- Attribute::AttrKind Kind
¶llvm::AttributeList removeParamAttributes(
llvm::LLVMContext& C,
unsigned int ArgNo) const
llvm::AttributeList removeParamAttributes(
llvm::LLVMContext& C,
unsigned int ArgNo) const
Description
Remove all attributes at the specified arg index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:484
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
¶llvm::AttributeList removeParamAttributes(
llvm::LLVMContext& C,
unsigned int ArgNo,
const llvm::AttrBuilder& AttrsToRemove) const
llvm::AttributeList removeParamAttributes(
llvm::LLVMContext& C,
unsigned int ArgNo,
const llvm::AttrBuilder& AttrsToRemove) const
Description
Remove the specified attribute at the specified arg index from this attribute list. Returns a new list because attribute lists are immutable.
Declared at: llvm/include/llvm/IR/Attributes.h:477
Parameters
- llvm::LLVMContext& C
- unsigned int ArgNo
- const llvm::AttrBuilder& AttrsToRemove