/3rd_party/llvm/include/llvm/Transforms/Utils/UnrollLoop.h
C++ Header | 33 lines | 12 code | 7 blank | 14 comment | 0 complexity | f013c4de72b2055856cc1f0b4e1b1b15 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, JSON, MPL-2.0-no-copyleft-exception, GPL-2.0, GPL-3.0, LGPL-3.0, BSD-2-Clause
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 19namespace llvm { 20 21class Loop; 22class LoopInfo; 23class LPPassManager; 24 25bool UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool AllowRuntime, 26 unsigned TripMultiple, LoopInfo* LI, LPPassManager* LPM); 27 28bool UnrollRuntimeLoopProlog(Loop *L, unsigned Count, LoopInfo *LI, 29 LPPassManager* LPM); 30 31} 32 33#endif