Add utility routines for creating integer negation operators with NSW set.
authorDan Gohman <gohman@apple.com>
Fri, 18 Dec 2009 02:58:50 +0000 (02:58 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 18 Dec 2009 02:58:50 +0000 (02:58 +0000)
commitbdc46c6af5ffcf3596a72df75880fe8703436060
treed85a0303352cc1f8bbf93e8e4e1ee1affb7506b7
parent2df72c144164cbb06e505f3af506e1bb69053e73
Add utility routines for creating integer negation operators with NSW set.
Integer negation only overflows with INT_MIN, but that's an important case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91662 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h
include/llvm/InstrTypes.h
include/llvm/Support/ConstantFolder.h
include/llvm/Support/IRBuilder.h
include/llvm/Support/NoFolder.h
include/llvm/Support/TargetFolder.h
lib/VMCore/Constants.cpp
lib/VMCore/Instructions.cpp