struct Vectorize : public FunctionPass<Vectorize> {
Vectorize();
Vectorize(ArrayRef<int64_t> virtualVectorSize);
- Vectorize(ArrayRef<int64_t> virtualVectorSize,
- ArrayRef<int64_t> fastestVaryingPattern);
void runOnFunction() override;
// The virtual vector size that we vectorize to.
}
}
-Vectorize::Vectorize(ArrayRef<int64_t> virtualVectorSize,
- ArrayRef<int64_t> fastestVaryingPattern)
- : Vectorize(virtualVectorSize) {
- if (!fastestVaryingPattern.empty()) {
- this->fastestVaryingPattern.assign(fastestVaryingPattern.begin(),
- fastestVaryingPattern.end());
- }
-}
-
/////// TODO(ntv): Hoist to a VectorizationStrategy.cpp when appropriate.
/////////
namespace {