1 //===- VPlanHCFGTransforms.h - Utility VPlan to VPlan transforms ----------===//
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
7 //===----------------------------------------------------------------------===//
10 /// This file provides utility VPlan to VPlan transformations.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANHCFGTRANSFORMS_H
14 #define LLVM_TRANSFORMS_VECTORIZE_VPLANHCFGTRANSFORMS_H
17 #include "llvm/IR/Instruction.h"
18 #include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h"
22 class VPlanHCFGTransforms
{
25 /// Replaces the VPInstructions in \p Plan with corresponding
27 static void VPInstructionsToVPRecipes(
29 LoopVectorizationLegality::InductionList
*Inductions
,
30 SmallPtrSetImpl
<Instruction
*> &DeadInstructions
);
35 #endif // LLVM_TRANSFORMS_VECTORIZE_VPLANHCFGTRANSFORMS_H