LLVM  10.0.0svn
VPlanHCFGTransforms.h
Go to the documentation of this file.
1 //===- VPlanHCFGTransforms.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 
13 #ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANHCFGTRANSFORMS_H
14 #define LLVM_TRANSFORMS_VECTORIZE_VPLANHCFGTRANSFORMS_H
15 
16 #include "VPlan.h"
17 #include "llvm/IR/Instruction.h"
19 
20 namespace llvm {
21 
23 
24 public:
25  /// Replaces the VPInstructions in \p Plan with corresponding
26  /// widen recipes.
27  static void VPInstructionsToVPRecipes(
28  VPlanPtr &Plan,
30  SmallPtrSetImpl<Instruction *> &DeadInstructions);
31 };
32 
33 } // namespace llvm
34 
35 #endif // LLVM_TRANSFORMS_VECTORIZE_VPLANHCFGTRANSFORMS_H
This class represents lattice values for constants.
Definition: AllocatorList.h:23
This file defines the LoopVectorizationLegality class.
This file contains the declarations of the Vectorization Plan base classes:
std::unique_ptr< VPlan > VPlanPtr
Definition: VPlan.h:75
static void VPInstructionsToVPRecipes(VPlanPtr &Plan, LoopVectorizationLegality::InductionList *Inductions, SmallPtrSetImpl< Instruction *> &DeadInstructions)
Replaces the VPInstructions in Plan with corresponding widen recipes.