aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/PHITransAddr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-09 00:01:00 +0000
committerChris Lattner <sabre@nondot.org>2009-12-09 00:01:00 +0000
commit7dedbf4ce3e1b62b4e0b000b38d244b50029c315 (patch)
tree1b3b732b66a69fd6b42f8313d1bbbb83b09f1f0f /include/llvm/Analysis/PHITransAddr.h
parent8456d60becd2b502e3d6ebf124ea324ec5d1c108 (diff)
downloadexternal_llvm-7dedbf4ce3e1b62b4e0b000b38d244b50029c315.zip
external_llvm-7dedbf4ce3e1b62b4e0b000b38d244b50029c315.tar.gz
external_llvm-7dedbf4ce3e1b62b4e0b000b38d244b50029c315.tar.bz2
add dumping and sanity checking support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90906 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/PHITransAddr.h')
-rw-r--r--include/llvm/Analysis/PHITransAddr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/PHITransAddr.h b/include/llvm/Analysis/PHITransAddr.h
index 8257396..d090dc3 100644
--- a/include/llvm/Analysis/PHITransAddr.h
+++ b/include/llvm/Analysis/PHITransAddr.h
@@ -80,6 +80,13 @@ public:
Value *PHITranslateWithInsertion(BasicBlock *CurBB, BasicBlock *PredBB,
const DominatorTree &DT,
SmallVectorImpl<Instruction*> &NewInsts);
+
+ void dump() const;
+
+ /// Verify - Check internal consistency of this data structure. Though it
+ /// claims to return a bool, it actually aborts on error and always returns
+ /// true.
+ bool Verify() const;
private:
Value *PHITranslateSubExpr(Value *V, BasicBlock *CurBB, BasicBlock *PredBB);
@@ -103,6 +110,7 @@ private:
/// array that are due to the specified instruction that is about to be
/// removed from the address, and add any corresponding to V. This returns V.
Value *ReplaceInstWithValue(Instruction *I, Value *V);
+
};
} // end namespace llvm