1 //===- llvm/Transforms/DecomposeMultiDimRefs.h - Lower multi-dim refs --*- C++ -*--=//
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]).
10 //===---------------------------------------------------------------------===//
12 #ifndef LLVM_TRANSFORMS_SCALAR_DECOMPOSEMULTIDIMREFS_H
13 #define LLVM_TRANSFORMS_SCALAR_DECOMPOSEMULTIDIMREFS_H
16 Pass *createDecomposeMultiDimRefsPass();