llvm::CallBase::getArgOperandWithAttribute

Return the first argument with attribute Kind.

Synopsis

Declared in <llvm/IR/InstrTypes.h>

Value*
getArgOperandWithAttribute(Attribute::AttrKind Kind) const;

Description

If one of the arguments has the specified attribute, returns its operand value. Otherwise, return nullptr.

Return Value

Matching argument value, or null.

Parameters

NameDescription
KindParameter attribute kind to search for.