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

Chris Lattner lattner at cs.uiuc.edu
Sun Sep 25 22:26:43 PDT 2005



Changes in directory llvm/include/llvm/Transforms/Utils:

Local.h updated: 1.19 -> 1.20
---
Log message:

add a new function


---
Diffs of the changes:  (+5 -0)

 Local.h |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.19 llvm/include/llvm/Transforms/Utils/Local.h:1.20
--- llvm/include/llvm/Transforms/Utils/Local.h:1.19	Thu Aug  4 18:24:19 2005
+++ llvm/include/llvm/Transforms/Utils/Local.h	Mon Sep 26 00:26:32 2005
@@ -22,6 +22,7 @@
 class Pass;
 class PHINode;
 class AllocaInst;
+class ConstantExpr;
 
 //===----------------------------------------------------------------------===//
 //  Local constant propagation...
@@ -55,6 +56,10 @@
 /// with the specified arguments, returning null if unsuccessful.
 Constant *ConstantFoldCall(Function *F, const std::vector<Constant*> &Operands);
 
+/// ConstantFoldLoadThroughGEPConstantExpr - Given a constant and a
+/// getelementptr constantexpr, return the constant value being addressed by the
+/// constant expression, or null if something is funny and we can't decide.
+Constant *ConstantFoldLoadThroughGEPConstantExpr(Constant *C, ConstantExpr *CE);
 
 //===----------------------------------------------------------------------===//
 //  Local dead code elimination...






More information about the llvm-commits mailing list