llvm::findOptionMDForLoop

Find string metadata for a loop.

Synopsis

Declared in <llvm/Analysis/LoopInfo.h>

MDNode*
findOptionMDForLoop(
    Loop const* TheLoop,
    StringRef Name);

Description

Returns the MDNode where the first operand is the metadata's name. The following operands are the metadata's values. If no metadata with Name is found, return nullptr.

Return Value

The attribute MDNode, or nullptr if not found.

Parameters

NameDescription
TheLoopLoop whose metadata is searched.
NameAttribute name to look up.