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 13 #ifndef LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H 14 #define LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H 15 16 #include "VPlan.h" 17 #include "llvm/IR/Instruction.h" 18 #include "llvm/Transforms/Vectorize/LoopVectorizationLegality.h" 19 20 namespace llvm { 21 22 struct VPlanTransforms { 23 /// Replaces the VPInstructions in \p Plan with corresponding 24 /// widen recipes. 25 static void VPInstructionsToVPRecipes( 26 Loop *OrigLoop, VPlanPtr &Plan, 27 LoopVectorizationLegality::InductionList &Inductions, 28 SmallPtrSetImpl<Instruction *> &DeadInstructions); 29 }; 30 31 } // namespace llvm 32 33 #endif // LLVM_TRANSFORMS_VECTORIZE_VPLANTRANSFORMS_H 34