[llvm-commits] [llvm] r78707 - in /llvm/trunk: 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
Dan Gohman
gohman at apple.com
Tue Aug 18 11:10:16 PDT 2009
On Aug 17, 2009, at 5:25 AM, Duncan Sands wrote:
> Hi Dan,
>
>
>> + /// CreateNSWAdd - Create an Add operator with the NSW flag set.
>>
>> + ///
>>
>> + static BinaryOperator *CreateNSWAdd(Value *V1, Value *V2,
>>
>> + const Twine &Name = "") {
>>
>> + BinaryOperator *BO = CreateAdd(V1, V2, Name);
>>
>> + cast<AddOperator>(BO)->setHasNoSignedOverflow(true);
>>
>> + return BO;
>>
>> + }
>>
>
> the names NSW and NoSignedOverflow are kind of inconsistent.
> Shouldn't
> NSW be NSO, or NoSignedOverflow be NoSignedWraparound?
Yes. I'll change NoSignedOverflow to NoSignedWrap.
Dan
More information about the llvm-commits
mailing list