//===- Legality.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 // //===----------------------------------------------------------------------===// // // Legality checks for the Sandbox Vectorizer. // #ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_LEGALITY_H #define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_LEGALITY_H #include "llvm/ADT/ArrayRef.h" namespace llvm::sandboxir { class LegalityAnalysis; class Value; enum class LegalityResultID { … }; /// The legality outcome is represented by a class rather than an enum class /// because in some cases the legality checks are expensive and look for a /// particular instruction that can be passed along to the vectorizer to avoid /// repeating the same expensive computation. class LegalityResult { … }; class Widen final : public LegalityResult { … }; /// Performs the legality analysis and returns a LegalityResult object. class LegalityAnalysis { … }; } // namespace llvm::sandboxir #endif // LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_LEGALITY_H