Find named metadata for a loop with an integer value.

Synopsis

Declared in <llvm/Analysis/LoopInfo.h>

std::optional<int>
getOptionalIntLoopAttribute(
    Loop const* TheLoop,
    StringRef Name);

Return Value

The integer attribute value when set, otherwise std::nullopt.

Parameters

Name

Description

TheLoop

Loop whose attribute is queried.

Name

Integer attribute name to look up.

Created with MrDocs