[APInt] Add negate helper method to implement twos complement. Use it to shorten...
authorCraig Topper <craig.topper@gmail.com>
Wed, 10 May 2017 20:01:38 +0000 (20:01 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 10 May 2017 20:01:38 +0000 (20:01 +0000)
commitef0114c4f0a1612cdafb71711cafda0653afebde
treec6bf771413f4fc959d015d58daa7ddf98147374a
parentf41f274bf84712ef7057e532109bd0aa43e2c532
[APInt] Add negate helper method to implement twos complement. Use it to shorten code.

llvm-svn: 302716
llvm/include/llvm/ADT/APInt.h
llvm/lib/Support/APInt.cpp