ΒΆOptional<const llvm::MDOperand*>
findStringMetadataForLoop(
    const llvm::Loop* TheLoop,
    llvm::StringRef Name)

Description

Find string metadata for loop If it has a value (e.g. {"llvm.distribute", 1} return the value as an operand or null otherwise. If the string metadata is not found return Optional's not-a-value.

Declared at: llvm/include/llvm/Transforms/Utils/LoopUtils.h:181

Parameters

const llvm::Loop* TheLoop
llvm::StringRef Name