1 //===- llvm/Transforms/Utils/UnrollLoop.h - Unrolling utilities -*- 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 defines some loop unrolling utilities. It does not define any 11 // actual pass or policy, but provides a single function to perform loop 12 // unrolling. 13 // 14 //===----------------------------------------------------------------------===// 15 16 #ifndef LLVM_TRANSFORMS_UTILS_UNROLLLOOP_H 17 #define LLVM_TRANSFORMS_UTILS_UNROLLLOOP_H 18 19 namespace llvm { 20 21 class AssumptionCache; 22 class Loop; 23 class LoopInfo; 24 class LPPassManager; 25 class Pass; 26 27 bool UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool AllowRuntime, 28 unsigned TripMultiple, LoopInfo *LI, Pass *PP, 29 LPPassManager *LPM, AssumptionCache *AC); 30 31 bool UnrollRuntimeLoopProlog(Loop *L, unsigned Count, LoopInfo *LI, 32 LPPassManager* LPM); 33 } 34 35 #endif 36