Synopsis

Declared in <llvm/Transforms/Vectorize/LoopVectorize.h>

struct LoopVectorizeOptions;

Member Functions

Name

Description

LoopVectorizeOptions [constructor]

The current defaults when creating the pass with no arguments are: EnableLoopInterleaving = true and EnableLoopVectorization = true. This means that interleaving default is consistent with the cl::opt flag, while vectorization is not. FIXME: The default for EnableLoopVectorization in the cl::opt should be set to true, and the corresponding change to account for this be made in opt.cpp. The initializations below will become: InterleaveOnlyWhenForced(!EnableLoopInterleaving) VectorizeOnlyWhenForced(!EnableLoopVectorization).

setInterleaveOnlyWhenForced

setVectorizeOnlyWhenForced

Data Members

Name

Description

InterleaveOnlyWhenForced

If false, consider all loops for interleaving. If true, only loops that explicitly request interleaving are considered.

VectorizeOnlyWhenForced

If false, consider all loops for vectorization. If true, only loops that explicitly request vectorization are considered.

Created with MrDocs