diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-09-27 21:33:04 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-09-27 21:33:04 +0000 |
commit | 7805c35a30b6b119e2c4b2bfd54aa484752eeef8 (patch) | |
tree | 0ca69707766525dc0093e7fa0f02842bc08c115a /lib | |
parent | 0a3e013c33b6cb73b01a63d5568373be55186e04 (diff) | |
download | external_llvm-7805c35a30b6b119e2c4b2bfd54aa484752eeef8.zip external_llvm-7805c35a30b6b119e2c4b2bfd54aa484752eeef8.tar.gz external_llvm-7805c35a30b6b119e2c4b2bfd54aa484752eeef8.tar.bz2 |
Round out the API for the new optimization flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 1300e5f..c2fddfa 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -1282,6 +1282,10 @@ void GetElementPtrInst::setIsInBounds(bool B) { cast<GEPOperator>(this)->setIsInBounds(B); } +bool GetElementPtrInst::isInBounds() const { + return cast<GEPOperator>(this)->isInBounds(); +} + //===----------------------------------------------------------------------===// // ExtractElementInst Implementation //===----------------------------------------------------------------------===// @@ -1838,6 +1842,18 @@ void BinaryOperator::setIsExact(bool b) { cast<SDivOperator>(this)->setIsExact(b); } +bool BinaryOperator::hasNoUnsignedWrap() const { + return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); +} + +bool BinaryOperator::hasNoSignedWrap() const { + return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); +} + +bool BinaryOperator::isExact() const { + return cast<SDivOperator>(this)->isExact(); +} + //===----------------------------------------------------------------------===// // CastInst Class //===----------------------------------------------------------------------===// |