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

Chris Lattner lattner at cs.uiuc.edu
Thu Dec 18 23:58:11 PST 2003


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

Local.h updated: 1.12 -> 1.13

---
Log message:

Add new function


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

Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.12 llvm/include/llvm/Transforms/Utils/Local.h:1.13
--- llvm/include/llvm/Transforms/Utils/Local.h:1.12	Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Transforms/Utils/Local.h	Thu Dec 18 23:56:20 2003
@@ -20,6 +20,7 @@
 namespace llvm {
 
 class Pass;
+class PHINode;
 
 //===----------------------------------------------------------------------===//
 //  Local constant propagation...
@@ -54,6 +55,15 @@
 /// instruction.
 ///
 bool dceInstruction(BasicBlock::iterator &BBI);
+
+//===----------------------------------------------------------------------===//
+//  PHI Instruction Simplification
+//
+
+/// hasConstantValue - If the specified PHI node always merges together the same
+/// value, return the value, otherwise return null.
+///
+Value *hasConstantValue(PHINode *PN);
 
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list