summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/Instructions.cpp
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
commit28a5f25d87d08c074771c97bbd8e6e75d9661cb2 (patch)
tree86c56bfe9d6009ad498ce94b15a0c75037fbfdae /llvm/lib/VMCore/Instructions.cpp
parent466d57f6c1e8b7c016119cc9e3b59ffb7da80b0c (diff)
downloadbcm5719-llvm-28a5f25d87d08c074771c97bbd8e6e75d9661cb2.tar.gz
bcm5719-llvm-28a5f25d87d08c074771c97bbd8e6e75d9661cb2.zip
Round out the API for the new optimization flags.
llvm-svn: 82930
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
-rw-r--r--llvm/lib/VMCore/Instructions.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp
index 1300e5fa259..c2fddfa3477 100644
--- a/llvm/lib/VMCore/Instructions.cpp
+++ b/llvm/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
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud