diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-12-09 00:01:00 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-12-09 00:01:00 +0000 |
| commit | 0aa75680d648c49dacfb6da2c5b4d06622a3d0c5 (patch) | |
| tree | 7e6c298d25d02525c4549f27370100493683af7a /llvm/include | |
| parent | 2d27b191d9b7bd0962c7d167e00ccf416ff6b950 (diff) | |
| download | bcm5719-llvm-0aa75680d648c49dacfb6da2c5b4d06622a3d0c5.tar.gz bcm5719-llvm-0aa75680d648c49dacfb6da2c5b4d06622a3d0c5.zip | |
add dumping and sanity checking support.
llvm-svn: 90906
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/PHITransAddr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/PHITransAddr.h b/llvm/include/llvm/Analysis/PHITransAddr.h index 8257396a09f..d090dc38f1d 100644 --- a/llvm/include/llvm/Analysis/PHITransAddr.h +++ b/llvm/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 |

