diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-07 23:54:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-07 23:54:19 +0000 |
commit | 1b84908f92db216509c0e33a49bc53ffabca84de (patch) | |
tree | f3026980a3edf31a862f0dc492668d8bc449465a /llvm/lib/VMCore/Instructions.cpp | |
parent | 2512a425481e02b21b2e412239c9fe70d9ff77fe (diff) | |
download | bcm5719-llvm-1b84908f92db216509c0e33a49bc53ffabca84de.tar.gz bcm5719-llvm-1b84908f92db216509c0e33a49bc53ffabca84de.zip |
Reappy r80998, now that the GlobalOpt bug that it exposed on MiniSAT is fixed.
llvm-svn: 81172
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 2d4ab557217..9d8e0477eed 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -1171,6 +1171,9 @@ bool GetElementPtrInst::hasAllConstantIndices() const { return true; } +void GetElementPtrInst::setIsInBounds(bool B) { + cast<GEPOperator>(this)->setIsInBounds(B); +} //===----------------------------------------------------------------------===// // ExtractElementInst Implementation @@ -1716,6 +1719,18 @@ bool BinaryOperator::swapOperands() { return false; } +void BinaryOperator::setHasNoUnsignedWrap(bool b) { + cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); +} + +void BinaryOperator::setHasNoSignedWrap(bool b) { + cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); +} + +void BinaryOperator::setIsExact(bool b) { + cast<SDivOperator>(this)->setIsExact(b); +} + //===----------------------------------------------------------------------===// // CastInst Class //===----------------------------------------------------------------------===// |