[llvm-commits] CVS: llvm/include/llvm/Transforms/Scalar.h

vadve at cs.uiuc.edu vadve at cs.uiuc.edu
Mon Sep 16 11:08:01 PDT 2002


Changes in directory llvm/include/llvm/Transforms:

Scalar.h updated: 1.8 -> 1.9

---
Log message:

Allow transformation DecomposeArrayRef(GetElementPtrInst* GEP) to
be invoked on a single instruction at a time, for use in other passes.


---
Diffs of the changes:

Index: llvm/include/llvm/Transforms/Scalar.h
diff -u llvm/include/llvm/Transforms/Scalar.h:1.8 llvm/include/llvm/Transforms/Scalar.h:1.9
--- llvm/include/llvm/Transforms/Scalar.h:1.8	Fri Sep  6 13:39:29 2002
+++ llvm/include/llvm/Transforms/Scalar.h	Mon Sep 16 11:07:19 2002
@@ -10,6 +10,8 @@
 
 class Pass;
 class TargetData;
+class BasicBlock;
+class GetElementPtrInst;
 
 //===----------------------------------------------------------------------===//
 //
@@ -60,9 +62,14 @@
 // instructions (using getelementpr and cast) so that each instruction has at
 // most one index (except structure references, which need an extra leading
 // index of [0]).
-//
+
+// This pass decomposes all multi-dimensional references in a function.
 Pass *createDecomposeMultiDimRefsPass();
 
+// This function decomposes a single instance of such a reference.
+// Return value: true if the instruction was replaced; false otherwise.
+// 
+bool DecomposeArrayRef(GetElementPtrInst* GEP);
 
 //===----------------------------------------------------------------------===//
 //





More information about the llvm-commits mailing list