Lines Matching refs:LoopVectorizeHints
58 static cl::opt<LoopVectorizeHints::ScalableForceKind>
60 "scalable-vectorization", cl::init(LoopVectorizeHints::SK_Unspecified),
65 clEnumValN(LoopVectorizeHints::SK_FixedWidthOnly, "off",
68 LoopVectorizeHints::SK_PreferScalable, "preferred",
72 LoopVectorizeHints::SK_PreferScalable, "on",
81 bool LoopVectorizeHints::Hint::validate(unsigned Val) { in validate()
97 LoopVectorizeHints::LoopVectorizeHints(const Loop *L, in LoopVectorizeHints() function in llvm::LoopVectorizeHints
121 if ((LoopVectorizeHints::ScalableForceKind)Scalable.Value == SK_Unspecified) { in LoopVectorizeHints()
136 LoopVectorizeHints::SK_Unspecified) in LoopVectorizeHints()
140 if ((LoopVectorizeHints::ScalableForceKind)Scalable.Value == SK_Unspecified) in LoopVectorizeHints()
153 void LoopVectorizeHints::setAlreadyVectorized() { in setAlreadyVectorized()
172 bool LoopVectorizeHints::allowVectorization( in allowVectorization()
174 if (getForce() == LoopVectorizeHints::FK_Disabled) { in allowVectorization()
180 if (VectorizeOnlyWhenForced && getForce() != LoopVectorizeHints::FK_Enabled) { in allowVectorization()
205 void LoopVectorizeHints::emitRemarkWithHints() const { in emitRemarkWithHints()
209 if (Force.Value == LoopVectorizeHints::FK_Disabled) in emitRemarkWithHints()
218 if (Force.Value == LoopVectorizeHints::FK_Enabled) { in emitRemarkWithHints()
231 const char *LoopVectorizeHints::vectorizeAnalysisPassName() const { in vectorizeAnalysisPassName()
234 if (getForce() == LoopVectorizeHints::FK_Disabled) in vectorizeAnalysisPassName()
236 if (getForce() == LoopVectorizeHints::FK_Undefined && getWidth().isZero()) in vectorizeAnalysisPassName()
241 bool LoopVectorizeHints::allowReordering() const { in allowReordering()
246 (getForce() == LoopVectorizeHints::FK_Enabled || in allowReordering()
250 void LoopVectorizeHints::getHintsFromMetadata() { in getHintsFromMetadata()
286 void LoopVectorizeHints::setHint(StringRef Name, Metadata *Arg) { in setHint()
1341 if (Hints->getForce() == LoopVectorizeHints::FK_Enabled) in canVectorize()