1 //===- LoopDeletion.h - Loop Deletion ---------------------------*- C++ -*-===// 2 // 3 // The LLVM Compiler Infrastructure 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 // 10 // This file provides the interface for the Loop Deletion Pass. 11 // 12 //===----------------------------------------------------------------------===// 13 14 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPDELETION_H 15 #define LLVM_TRANSFORMS_SCALAR_LOOPDELETION_H 16 17 #include "llvm/Analysis/LoopAnalysisManager.h" 18 #include "llvm/Analysis/LoopInfo.h" 19 #include "llvm/Analysis/ScalarEvolution.h" 20 #include "llvm/IR/PassManager.h" 21 #include "llvm/Transforms/Scalar/LoopPassManager.h" 22 23 namespace llvm { 24 25 class LoopDeletionPass : public PassInfoMixin<LoopDeletionPass> { 26 public: 27 LoopDeletionPass() = default; 28 29 PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM, 30 LoopStandardAnalysisResults &AR, LPMUpdater &U); 31 }; 32 33 } // end namespace llvm 34 35 #endif // LLVM_TRANSFORMS_SCALAR_LOOPDELETION_H 36