Find string metadata for loop
Declared in <llvm/Analysis/LoopInfo.h>
std::optional<MDOperand const*>
findStringMetadataForLoop(
Loop const* TheLoop,
StringRef Name);
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.
The value operand when present, otherwise std::nullopt.
| Name | Description |
|---|---|
| TheLoop | Loop whose metadata is searched. |
| Name | String metadata name to look up. |