56 #ifndef LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZE_H 57 #define LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZE_H 66 class AssumptionCache;
67 class BlockFrequencyInfo;
74 class OptimizationRemarkEmitter;
75 class ProfileSummaryInfo;
76 class ScalarEvolution;
77 class TargetLibraryInfo;
78 class TargetTransformInfo;
102 : InterleaveOnlyWhenForced(
false), VectorizeOnlyWhenForced(
false) {}
104 bool VectorizeOnlyWhenForced)
105 : InterleaveOnlyWhenForced(InterleaveOnlyWhenForced),
106 VectorizeOnlyWhenForced(VectorizeOnlyWhenForced) {}
109 InterleaveOnlyWhenForced =
Value;
114 VectorizeOnlyWhenForced =
Value;
142 std::function<const LoopAccessInfo &(Loop &)> *
GetLAA;
156 bool processLoop(
Loop *L);
169 #endif // LLVM_TRANSFORMS_VECTORIZE_LOOPVECTORIZE_H
static bool runImpl(Function &F, TargetLibraryInfo &TLI, DominatorTree &DT)
This is the entry point for all transforms.
std::function< const LoopAccessInfo &(Loop &)> * GetLAA
This class represents lattice values for constants.
void reportVectorizationFailure(const StringRef DebugMsg, const StringRef OREMsg, const StringRef ORETag, OptimizationRemarkEmitter *ORE, Loop *TheLoop, Instruction *I=nullptr)
Reports a vectorization failure: print DebugMsg for debugging purposes along with the corresponding o...
Analysis providing profile information.
The main scalar evolution driver.
A cache of @llvm.assume calls within a function.
LoopVectorizeOptions()
The current defaults when creating the pass with no arguments are: EnableLoopInterleaving = true and ...
cl::opt< bool > EnableLoopInterleaving
bool VectorizeOnlyWhenForced
If false, consider all loops for vectorization.
LoopVectorizePass(LoopVectorizeOptions Opts={})
LoopVectorizeOptions(bool InterleaveOnlyWhenForced, bool VectorizeOnlyWhenForced)
A CRTP mix-in to automatically provide informational APIs needed for passes.
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
LoopVectorizeOptions & setInterleaveOnlyWhenForced(bool Value)
bool InterleaveOnlyWhenForced
If false, consider all loops for interleaving.
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
A set of analyses that are preserved following a run of a transformation pass.
TargetTransformInfo * TTI
bool VectorizeOnlyWhenForced
If false, consider all loops for vectorization.
LoopVectorizeOptions & setVectorizeOnlyWhenForced(bool Value)
Provides information about what library functions are available for the current target.
Drive the analysis of memory accesses in the loop.
Represents a single loop in the control flow graph.
cl::opt< bool > EnableLoopVectorization
OptimizationRemarkEmitter * ORE
LLVM Value Representation.
bool InterleaveOnlyWhenForced
If false, consider all loops for interleaving.
print Print MemDeps of function
StringRef - Represent a constant reference to a string, i.e.
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.