ΒΆOptional<llvm::ElementCount>
getOptionalElementCountLoopAttribute(
    const llvm::Loop* TheLoop)

Description

Find a combination of metadata ("llvm.loop.vectorize.width" and "llvm.loop.vectorize.scalable.enable") for a loop and use it to construct a ElementCount. If the metadata "llvm.loop.vectorize.width" cannot be found then None is returned.

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

Parameters

const llvm::Loop* TheLoop