llvm::findOptionMDForLoopID

Find and return the loop attribute node for the attribute Name in LoopID. Return nullptr if there is no such attribute.

Synopsis

Declared in <llvm/Analysis/LoopInfo.h>

MDNode*
findOptionMDForLoopID(
    MDNode* LoopID,
    StringRef Name);

Return Value

The attribute MDNode, or nullptr if not found.

Parameters

NameDescription
LoopIDLoop-ID metadata node to search.
NameAttribute name to look up.