Return the named unroll hint metadata node attached to loop L.

Synopsis

Declared in <llvm/Transforms/Utils/UnrollLoop.h>

MDNode*
getUnrollMetadataForLoop(
    Loop const* L,
    StringRef Name);

Description

For example, looks up "llvm.loop.unroll.count". Returns nullptr if no such metadata node exists.

Return Value

The matching metadata node, or nullptr if none exists.

Parameters

Name

Description

L

Loop whose loop‐id metadata is searched.

Name

Metadata string name of the unroll hint to find.

Created with MrDocs