Change over to use new style pass mechanism, now passes only expose small
[oota-llvm.git] / include / llvm / Transforms / Scalar / InstructionCombining.h
1 //===- llvm/Transforms/Scalar/InstructionCombining.h -------------*- C++ -*--=//
2 //
3 // InstructionCombining - Combine instructions to form fewer, simple
4 //   instructions.  This pass does not modify the CFG, and has a tendancy to
5 //   make instructions dead, so a subsequent DCE pass is useful.
6 //
7 // This pass combines things like:
8 //    %Y = add int 1, %X
9 //    %Z = add int 1, %Y
10 // into:
11 //    %Z = add int 2, %X
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_TRANSFORMS_SCALAR_INSTRUCTIONCOMBINING_H
16 #define LLVM_TRANSFORMS_SCALAR_INSTRUCTIONCOMBINING_H
17
18 class Pass;
19 Pass *createInstructionCombiningPass();
20
21 #endif