[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Transforms / Vectorize / VPlanTransforms.h
blobc740f2c022da2b4b15e8d513c9b09976435887b1
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 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H
14 #define LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H
16 #include "VPlan.h"
17 #include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h"
19 namespace llvm {
21 class Instruction;
22 class ScalarEvolution;
24 struct VPlanTransforms {
25 /// Replaces the VPInstructions in \p Plan with corresponding
26 /// widen recipes.
27 static void VPInstructionsToVPRecipes(
28 Loop *OrigLoop, VPlanPtr &Plan,
29 LoopVectorizationLegality::InductionList &Inductions,
30 SmallPtrSetImpl<Instruction *> &DeadInstructions, ScalarEvolution &SE);
32 static bool sinkScalarOperands(VPlan &Plan);
34 static bool mergeReplicateRegions(VPlan &Plan);
37 } // namespace llvm
39 #endif // LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H