From 07fb6e603fcfafff15f59eb3802092b8d0b7faf6 Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Tue, 19 Mar 2002 02:10:34 +0000 Subject: [PATCH] New pass to convert Convert multi-dimensional array references into 1-D references. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1918 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/DecomposeArrayRefs.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/llvm/Transforms/DecomposeArrayRefs.h diff --git a/include/llvm/Transforms/DecomposeArrayRefs.h b/include/llvm/Transforms/DecomposeArrayRefs.h new file mode 100644 index 00000000000..87fe3ab0f09 --- /dev/null +++ b/include/llvm/Transforms/DecomposeArrayRefs.h @@ -0,0 +1,16 @@ +//===- llvm/Transforms/DecomposeArrayRefs.h - Lower array refs --*- C++ -*--=// +// +// DecomposeArrayRefs - +// Convert multi-dimensional array references into a sequence of +// instructions (using getelementpr and cast) so that each instruction +// has at most one array offset. +// +//===---------------------------------------------------------------------===// + +#ifndef LLVM_TRANSFORMS_DECOMPOSEARRAYREFS_H +#define LLVM_TRANSFORMS_DECOMPOSEARRAYREFS_H + +class Pass; +Pass *createDecomposeArrayRefsPass(); + +#endif