From 28a5f25d87d08c074771c97bbd8e6e75d9661cb2 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sun, 27 Sep 2009 21:33:04 +0000 Subject: Round out the API for the new optimization flags. llvm-svn: 82930 --- llvm/lib/VMCore/Instructions.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'llvm/lib') 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(this)->setIsInBounds(B); } +bool GetElementPtrInst::isInBounds() const { + return cast(this)->isInBounds(); +} + //===----------------------------------------------------------------------===// // ExtractElementInst Implementation //===----------------------------------------------------------------------===// @@ -1838,6 +1842,18 @@ void BinaryOperator::setIsExact(bool b) { cast(this)->setIsExact(b); } +bool BinaryOperator::hasNoUnsignedWrap() const { + return cast(this)->hasNoUnsignedWrap(); +} + +bool BinaryOperator::hasNoSignedWrap() const { + return cast(this)->hasNoSignedWrap(); +} + +bool BinaryOperator::isExact() const { + return cast(this)->isExact(); +} + //===----------------------------------------------------------------------===// // CastInst Class //===----------------------------------------------------------------------===// -- cgit v1.2.3