14 #ifndef LLVM_IR_ARGUMENT_H 15 #define LLVM_IR_ARGUMENT_H 49 assert(Parent &&
"can't get number of unparented arg");
bool hasNestAttr() const
Return true if this argument has the nest attribute.
bool hasAttribute(Attribute::AttrKind Kind) const
Check if an argument has a given attribute.
This class represents an incoming formal argument to a Function.
unsigned getValueID() const
Return an ID for the concrete type of this object.
uint64_t getDereferenceableOrNullBytes() const
If this argument has the dereferenceable_or_null attribute, return the number of bytes known to be de...
This class represents lattice values for constants.
void removeAttr(Attribute::AttrKind Kind)
Remove attributes from an argument.
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 hasByValAttr() const
Return true if this argument has the byval attribute.
amdgpu Simplify well known AMD library false Value Value const Twine & Name
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This file contains the simple types necessary to represent the attributes associated with functions a...
bool onlyReadsMemory() const
Return true if this argument has the readonly or readnone attribute.
bool hasNoAliasAttr() const
Return true if this argument has the noalias attribute.
void addAttr(Attribute::AttrKind Kind)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
The instances of the Type class are immutable: once they are created, they are never changed...
bool hasNonNullAttr() const
Return true if this argument has the nonnull attribute.
bool hasStructRetAttr() const
Return true if this argument has the sret attribute.
bool hasSExtAttr() const
Return true if this argument has the sext attribute.
bool hasReturnedAttr() const
Return true if this argument has the returned 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.
bool hasSwiftSelfAttr() const
Return true if this argument has the swiftself attribute.
unsigned getArgNo() const
Return the index of this formal argument in its containing function.
const Function * getParent() const
bool hasSwiftErrorAttr() const
Return true if this argument has the swifterror attribute.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
bool hasZExtAttr() const
Return true if this argument has the zext attribute.
bool hasNoCaptureAttr() const
Return true if this argument has the nocapture attribute.
uint64_t getDereferenceableBytes() const
If this argument has the dereferenceable attribute, return the number of bytes known to be dereferenc...
AttrKind
This enumeration lists the attributes that can be associated with parameters, function results...