llvm::getOptionalBoolLoopAttribute

Return the optional boolean value of loop attribute Name on TheLoop.

Synopsis

Declared in <llvm/Analysis/LoopInfo.h>

std::optional<bool>
getOptionalBoolLoopAttribute(
    Loop const* TheLoop,
    StringRef Name);

Return Value

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

Parameters

NameDescription
TheLoopLoop whose attribute is queried.
NameBoolean attribute name to look up.