aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-27 21:33:04 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-27 21:33:04 +0000
commit7805c35a30b6b119e2c4b2bfd54aa484752eeef8 (patch)
tree0ca69707766525dc0093e7fa0f02842bc08c115a /lib
parent0a3e013c33b6cb73b01a63d5568373be55186e04 (diff)
downloadexternal_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.cpp16
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
//===----------------------------------------------------------------------===//