Return Attribute with the given Kind. The returned attribute will be invalid if the Kind is not present in the builder.

Synopsis

Declared in <llvm/IR/Attributes.h>

Attribute
getAttribute(StringRef Kind) const;

Return Value

The attribute with the given kind, if present.

Parameters

Name

Description

Kind

Target‐dependent attribute kind to look up.

Created with MrDocs