aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-19 05:56:28 +0000
committerChris Lattner <sabre@nondot.org>2003-12-19 05:56:28 +0000
commitabbc2dd77908f146f73f4cd1abfdfe47faacf43d (patch)
tree090f03c8525c8381740e2e9a80a01fb225b98490 /include
parentbb0aca5917e6d078c9b0a3d036919ead1d757740 (diff)
downloadexternal_llvm-abbc2dd77908f146f73f4cd1abfdfe47faacf43d.zip
external_llvm-abbc2dd77908f146f73f4cd1abfdfe47faacf43d.tar.gz
external_llvm-abbc2dd77908f146f73f4cd1abfdfe47faacf43d.tar.bz2
Add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10529 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Transforms/Utils/Local.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/Local.h b/include/llvm/Transforms/Utils/Local.h
index 2f83174..c786c96 100644
--- a/include/llvm/Transforms/Utils/Local.h
+++ b/include/llvm/Transforms/Utils/Local.h
@@ -20,6 +20,7 @@
namespace llvm {
class Pass;
+class PHINode;
//===----------------------------------------------------------------------===//
// Local constant propagation...
@@ -55,6 +56,15 @@ bool isInstructionTriviallyDead(Instruction *I);
///
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);
+
//===----------------------------------------------------------------------===//
// Control Flow Graph Restructuring...