reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ADT/APInt.h
 1108   APInt sadd_sat(const APInt &RHS) const;

References

lib/Analysis/ConstantFolding.cpp
 2192         return ConstantInt::get(Ty, C0->sadd_sat(*C1));
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 4712   case ISD::SADDSAT: return std::make_pair(C1.sadd_sat(C2), true);
lib/IR/ConstantRange.cpp
  893     APInt NewMin = LMin.sadd_sat(RMin);
  894     APInt NewMax = LMax.sadd_sat(RMax);
 1305   APInt NewL = getSignedMin().sadd_sat(Other.getSignedMin());
 1306   APInt NewU = getSignedMax().sadd_sat(Other.getSignedMax()) + 1;
tools/clang/lib/Basic/FixedPoint.cpp
  163     Result = CommonFXSema.isSigned() ? ThisVal.sadd_sat(OtherVal)
unittests/ADT/APIntTest.cpp
 1187   EXPECT_EQ(APInt(8, 110), AP_10.sadd_sat(AP_100));
 1188   EXPECT_EQ(APInt(8, 127), AP_100.sadd_sat(AP_100));
 1189   EXPECT_EQ(APInt(8, -128), (-AP_100).sadd_sat(-AP_100));
 1190   EXPECT_EQ(APInt(8, -128), APInt(8, -128).sadd_sat(APInt(8, -128)));
unittests/IR/ConstantRangeTest.cpp
 2185         return N1.sadd_sat(N2);