Home | History | Annotate | Download | only in Scalar
      1 //===- LoopInstSimplify.h - Loop Inst Simplify Pass -------------*- 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 pass performs lightweight instruction simplification on loop bodies.
     11 //
     12 //===----------------------------------------------------------------------===//
     13 
     14 #ifndef LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
     15 #define LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
     16 
     17 #include "llvm/Analysis/LoopAnalysisManager.h"
     18 #include "llvm/IR/PassManager.h"
     19 
     20 namespace llvm {
     21 
     22 class Loop;
     23 class LPMUpdater;
     24 
     25 /// Performs Loop Inst Simplify Pass.
     26 class LoopInstSimplifyPass : public PassInfoMixin<LoopInstSimplifyPass> {
     27 public:
     28   PreservedAnalyses run(Loop &L, LoopAnalysisManager &AM,
     29                         LoopStandardAnalysisResults &AR, LPMUpdater &U);
     30 };
     31 
     32 } // end namespace llvm
     33 
     34 #endif // LLVM_TRANSFORMS_SCALAR_LOOPINSTSIMPLIFY_H
     35