summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFrits van Bommel <fvbommel@gmail.com>2011-03-27 14:26:13 +0000
committerFrits van Bommel <fvbommel@gmail.com>2011-03-27 14:26:13 +0000
commit6208610fd602ebdb18bb793152899573d0b2b7ab (patch)
tree04cc9a6f57e3c0b146c2067bd287912b13e4b3e4 /include
parentf0bf9dfc1f7755a6233e41fd6f259c4ee08a40dc (diff)
downloadllvm-6208610fd602ebdb18bb793152899573d0b2b7ab.tar.gz
llvm-6208610fd602ebdb18bb793152899573d0b2b7ab.tar.bz2
llvm-6208610fd602ebdb18bb793152899573d0b2b7ab.tar.xz
Constant folding support for calls to umul.with.overflow(), basically identical to the smul.with.overflow() code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128379 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/APInt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 82819d57a2..2feef076fa 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -818,6 +818,7 @@ public:
APInt usub_ov(const APInt &RHS, bool &Overflow) const;
APInt sdiv_ov(const APInt &RHS, bool &Overflow) const;
APInt smul_ov(const APInt &RHS, bool &Overflow) const;
+ APInt umul_ov(const APInt &RHS, bool &Overflow) const;
APInt sshl_ov(unsigned Amt, bool &Overflow) const;
/// @returns the bit value at bitPosition