aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/InstrTypes.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-20 17:11:38 +0000
committerDan Gohman <gohman@apple.com>2009-08-20 17:11:38 +0000
commit5078f84c82814e4d33846f9ef54281619d362f8a (patch)
tree921b04304283dd557b56cc489695298c0569ae12 /include/llvm/InstrTypes.h
parentb255b88f06b81523c64369fe686fedab0225de54 (diff)
downloadexternal_llvm-5078f84c82814e4d33846f9ef54281619d362f8a.zip
external_llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.gz
external_llvm-5078f84c82814e4d33846f9ef54281619d362f8a.tar.bz2
Rename hasNoUnsignedOverflow and hasNoSignedOverflow to hasNoUnsignedWrap
and hasNoSignedWrap, for consistency with the nuw and nsw properties. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79539 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/InstrTypes.h')
-rw-r--r--include/llvm/InstrTypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/InstrTypes.h b/include/llvm/InstrTypes.h
index 560c32b..35fec63 100644
--- a/include/llvm/InstrTypes.h
+++ b/include/llvm/InstrTypes.h
@@ -201,19 +201,19 @@ public:
static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2,
const Twine &Name = "") {
BinaryOperator *BO = CreateAdd(V1, V2, Name);
- cast<AddOperator>(BO)->setHasNoSignedOverflow(true);
+ cast<AddOperator>(BO)->setHasNoSignedWrap(true);
return BO;
}
static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2,
const Twine &Name, BasicBlock *BB) {
BinaryOperator *BO = CreateAdd(V1, V2, Name, BB);
- cast<AddOperator>(BO)->setHasNoSignedOverflow(true);
+ cast<AddOperator>(BO)->setHasNoSignedWrap(true);
return BO;
}
static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2,
const Twine &Name, Instruction *I) {
BinaryOperator *BO = CreateAdd(V1, V2, Name, I);
- cast<AddOperator>(BO)->setHasNoSignedOverflow(true);
+ cast<AddOperator>(BO)->setHasNoSignedWrap(true);
return BO;
}