diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2013-05-20 16:47:07 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2013-05-20 16:47:07 +0000 |
| commit | fc32605ff3a2a922362d2fb5cd31b47ce47e3fb8 (patch) | |
| tree | 74520cc266c45f5e960c63aa9f872d9246c1e1fe /include/llvm | |
| parent | 9b39c726a007d8a4101568e9afe72658a5ae1b7c (diff) | |
| download | external_llvm-fc32605ff3a2a922362d2fb5cd31b47ce47e3fb8.zip external_llvm-fc32605ff3a2a922362d2fb5cd31b47ce47e3fb8.tar.gz external_llvm-fc32605ff3a2a922362d2fb5cd31b47ce47e3fb8.tar.bz2 | |
Expose InsertPreheaderForLoop from LoopSimplify to other passes
Other passes, PPC counter-loop formation for example, also need to add loop
preheaders outside of the regular loop simplification pass. This makes
InsertPreheaderForLoop a global function so that it can be used by other
passes.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182299 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
| -rw-r--r-- | include/llvm/Transforms/Utils/LoopSimplify.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/LoopSimplify.h b/include/llvm/Transforms/Utils/LoopSimplify.h new file mode 100644 index 0000000..9588078 --- /dev/null +++ b/include/llvm/Transforms/Utils/LoopSimplify.h @@ -0,0 +1,26 @@ +//===- llvm/Transforms/Utils/LoopSimplify.h - Loop utilities -*- C++ -*-======// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines some loop transformation utilities. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TRANSFORMS_UTILS_LOOPSIMPLIFY_H +#define LLVM_TRANSFORMS_UTILS_LOOPSIMPLIFY_H + +namespace llvm { + +class Loop; +class Pass; + +BasicBlock *InsertPreheaderForLoop(Loop *L, Pass *P); + +} + +#endif |
