This adds the sadd_sat, uadd_sat, ssub_sat, usub_sat methods for performing saturating additions and subtractions to APInt.
Split out from D54237.
Paths
| Differential D54332
[APInt] Add methods for saturated add and sub ClosedPublic Authored by nikic on Nov 9 2018, 9:59 AM.
Details Summary This adds the sadd_sat, uadd_sat, ssub_sat, usub_sat methods for performing saturating additions and subtractions to APInt. Split out from D54237.
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, kristina, dexonsmith. · View Herald TranscriptNov 9 2018, 9:59 AM This revision is now accepted and ready to land.Nov 9 2018, 10:30 AM Comment Actions @nikic Are you intending to commit this soon or are you waiting for the intrinsic code to be accepted first? Closed by commit rL347324: [APInt] Add methods for saturated add and sub (authored by spatel). · Explain WhyNov 20 2018, 8:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 174791 llvm/trunk/include/llvm/ADT/APInt.h
llvm/trunk/lib/Support/APInt.cpp
llvm/trunk/unittests/ADT/APIntTest.cpp
|