//===- SeedCollector.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 file contains the mechanism for collecting the seed instructions that // are used as starting points for forming the vectorization graph. //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SEEDCOLLECTOR_H #define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SEEDCOLLECTOR_H #include "llvm/ADT/BitVector.h" #include "llvm/ADT/iterator_range.h" #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/SandboxIR/Instruction.h" #include "llvm/SandboxIR/Utils.h" #include "llvm/SandboxIR/Value.h" #include <iterator> #include <memory> namespace llvm::sandboxir { /// A set of candidate Instructions for vectorizing together. class SeedBundle { … }; /// Specialization of SeedBundle for memory access instructions. Keeps /// seeds sorted in ascending memory order, which is convenient for slicing /// these bundles into vectorizable groups. template <typename LoadOrStoreT> class MemSeedBundle : public SeedBundle { … }; StoreSeedBundle; LoadSeedBundle; } // namespace llvm::sandboxir #endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_SEEDCOLLECTOR_H