Initial checkin of simple&fast SSA based GCSE algorithm
[oota-llvm.git] / include / llvm / Transforms / Scalar / DecomposeMultiDimRefs.h
1 //===- llvm/Transforms/DecomposeMultiDimRefs.h - Lower multi-dim refs --*- C++ -*--=//
2 // 
3 // DecomposeMultiDimRefs - 
4 // Convert multi-dimensional references consisting of any combination
5 // of 2 or more array and structure indices into a sequence of
6 // instructions (using getelementpr and cast) so that each instruction
7 // has at most one index (except structure references,
8 // which need an extra leading index of [0]).
9 //
10 //===---------------------------------------------------------------------===//
11
12 #ifndef LLVM_TRANSFORMS_SCALAR_DECOMPOSEMULTIDIMREFS_H
13 #define LLVM_TRANSFORMS_SCALAR_DECOMPOSEMULTIDIMREFS_H
14
15 class Pass;
16 Pass *createDecomposeMultiDimRefsPass();
17
18 #endif