VPlanTransforms.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //===- VPlanTransforms.h - Utility VPlan to VPlan transforms --------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. ///
  9. /// \file
  10. /// This file provides utility VPlan to VPlan transformations.
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H
  13. #define LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H
  14. #include "VPlan.h"
  15. #include "llvm/IR/Instruction.h"
  16. #include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h"
  17. namespace llvm {
  18. struct VPlanTransforms {
  19. /// Replaces the VPInstructions in \p Plan with corresponding
  20. /// widen recipes.
  21. static void VPInstructionsToVPRecipes(
  22. Loop *OrigLoop, VPlanPtr &Plan,
  23. LoopVectorizationLegality::InductionList &Inductions,
  24. SmallPtrSetImpl<Instruction *> &DeadInstructions);
  25. };
  26. } // namespace llvm
  27. #endif // LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H