14 #ifndef LLVM_IR_ARGUMENT_H
15 #define LLVM_IR_ARGUMENT_H
49 assert(Parent &&
"can't get number of unparented arg");
bool hasNoCaptureAttr() const
Return true if this argument has the nocapture attribute.
bool hasNoAliasAttr() const
Return true if this argument has the noalias attribute.
This class represents an incoming formal argument to a Function.
bool onlyReadsMemory() const
Return true if this argument has the readonly or readnone attribute.
void removeAttr(Attribute::AttrKind Kind)
Remove attributes from an argument.
unsigned getArgNo() const
Return the index of this formal argument in its containing function.
Argument(Type *Ty, const Twine &Name="", Function *F=nullptr, unsigned ArgNo=0)
Argument constructor.
bool hasByValOrInAllocaAttr() const
Return true if this argument has the byval attribute or inalloca attribute.
static bool classof(const Value *V)
Method for support type inquiry through isa, cast, and dyn_cast.
void addAttrs(AttrBuilder &B)
Add attributes to an argument.
bool hasSwiftSelfAttr() const
Return true if this argument has the swiftself attribute.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
bool hasSwiftErrorAttr() const
Return true if this argument has the swifterror attribute.
This file contains the simple types necessary to represent the attributes associated with functions a...
uint64_t getDereferenceableOrNullBytes() const
If this argument has the dereferenceable_or_null attribute, return the number of bytes known to be de...
uint64_t getDereferenceableBytes() const
If this argument has the dereferenceable attribute, return the number of bytes known to be dereferenc...
bool hasStructRetAttr() const
Return true if this argument has the sret attribute.
bool hasNestAttr() const
Return true if this argument has the nest attribute.
void addAttr(Attribute::AttrKind Kind)
The instances of the Type class are immutable: once they are created, they are never changed...
const Function * getParent() const
bool hasAttribute(Attribute::AttrKind Kind) const
Check if an argument has a given attribute.
bool hasInAllocaAttr() const
Return true if this argument has the inalloca attribute.
unsigned getParamAlignment() const
If this is a byval or inalloca argument, return its alignment.
unsigned getValueID() const
Return an ID for the concrete type of this object.
bool hasSExtAttr() const
Return true if this argument has the sext attribute.
bool hasByValAttr() const
Return true if this argument has the byval attribute.
bool hasZExtAttr() const
Return true if this argument has the zext attribute.
bool hasNonNullAttr() const
Return true if this argument has the nonnull attribute.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
bool hasReturnedAttr() const
Return true if this argument has the returned attribute.
AttrKind
This enumeration lists the attributes that can be associated with parameters, function results...