//===- SLPVectorizer.h ------------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // This pass implements the Bottom Up SLP vectorizer. It detects consecutive // stores that can be put together into vector-stores. Next, it attempts to // construct vectorizable tree using the use-def chains. If a profitable tree // was found, the SLP vectorizer performs vectorization on the tree. // // The pass is inspired by the work described in the paper: // "Loop-Aware SLP in GCC" by Ira Rosen, Dorit Nuzman, Ayal Zaks. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_VECTORIZE_SLPVECTORIZER_H #define LLVM_TRANSFORMS_VECTORIZE_SLPVECTORIZER_H #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/MapVector.h" #include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallVector.h" #include "llvm/IR/PassManager.h" namespace llvm { class AAResults; class AssumptionCache; class BasicBlock; class DataLayout; class DemandedBits; class DominatorTree; class Function; class GetElementPtrInst; class InsertElementInst; class InsertValueInst; class Instruction; class LoopInfo; class OptimizationRemarkEmitter; class PHINode; class ScalarEvolution; class StoreInst; class TargetLibraryInfo; class TargetTransformInfo; class Value; class WeakTrackingVH; /// A private "module" namespace for types and utilities used by this pass. /// These are implementation details and should not be used by clients. namespace slpvectorizer { class BoUpSLP; } // end namespace slpvectorizer struct SLPVectorizerPass : public PassInfoMixin<SLPVectorizerPass> { … }; } // end namespace llvm #endif // LLVM_TRANSFORMS_VECTORIZE_SLPVECTORIZER_H