| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APSIntTest.cpp | 80 TEST(APSIntTest, compareValues) { in TEST() argument 85 EXPECT_TRUE(APSInt::compareValues(S(7), S(8)) < 0); in TEST() 86 EXPECT_TRUE(APSInt::compareValues(S(8), S(7)) > 0); in TEST() 87 EXPECT_TRUE(APSInt::compareValues(S(7), S(7)) == 0); in TEST() 88 EXPECT_TRUE(APSInt::compareValues(S(-7), S(8)) < 0); in TEST() 89 EXPECT_TRUE(APSInt::compareValues(S(8), S(-7)) > 0); in TEST() 96 EXPECT_TRUE(APSInt::compareValues(U(7), U(8)) < 0); in TEST() 97 EXPECT_TRUE(APSInt::compareValues(U(8), U(7)) > 0); in TEST() 98 EXPECT_TRUE(APSInt::compareValues(U(7), U(7)) == 0); in TEST() 101 EXPECT_TRUE(APSInt::compareValues(U(7), S(8)) < 0); in TEST() [all …]
|
| H A D | APFixedPointTest.cpp | 223 EXPECT_TRUE(APSInt::compareValues(APFixedPoint::getMin(Sema).getIntPart(), in CheckIntPartMin() 228 EXPECT_TRUE(APSInt::compareValues(APFixedPoint::getMax(Sema).getIntPart(), in CheckIntPartMax()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 173 return compareValues(*this, get(RHS)) == 0; 176 return compareValues(*this, get(RHS)) != 0; 179 return compareValues(*this, get(RHS)) <= 0; 182 return compareValues(*this, get(RHS)) >= 0; 185 return compareValues(*this, get(RHS)) < 0; 188 return compareValues(*this, get(RHS)) > 0; 298 return !compareValues(I1, I2); in isSameValue() 302 static int compareValues(const APSInt &I1, const APSInt &I2) { in compareValues() function 308 return compareValues(I1, I2.extend(I1.getBitWidth())); in compareValues() 310 return compareValues(I1.extend(I2.getBitWidth()), I2); in compareValues()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | RedundantExpressionCheck.cpp | 163 assert(APSInt::compareValues(ValueLHS, ValueRHS) <= 0 && in areEquivalentRanges() 166 if (APSInt::compareValues(ValueLHS, ValueRHS) == 0) in areEquivalentRanges() 174 APSInt::compareValues(ValueLhsPlus1, ValueRHS) == 0; in areEquivalentRanges() 183 assert(APSInt::compareValues(ValueLHS, ValueRHS) <= 0 && in areExclusiveRanges() 187 if (APSInt::compareValues(ValueLHS, ValueRHS) == 0) { in areExclusiveRanges() 215 APSInt::compareValues(ValueLhsPlus1, ValueRHS) == 0) in areExclusiveRanges() 227 assert(APSInt::compareValues(ValueLHS, ValueRHS) <= 0 && in rangesFullyCoverDomain() 231 if (APSInt::compareValues(ValueLHS, ValueRHS) == 0) { in rangesFullyCoverDomain() 254 APSInt::compareValues(ValueLhsPlus1, ValueRHS) == 0) in rangesFullyCoverDomain() 274 int Comparison = APSInt::compareValues(ValueLHS, ValueRHS); in rangeSubsumesRange() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousEnumUsageCheck.cpp | 44 return llvm::APSInt::compareValues(E1->getInitVal(), in ValueRange() 60 return llvm::APSInt::compareValues(Range1.MaxVal, Range2.MinVal) < 0 || in hasDisjointValueRange() 61 llvm::APSInt::compareValues(Range2.MaxVal, Range1.MinVal) < 0; in hasDisjointValueRange()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/ |
| H A D | NarrowingConversionsCheck.cpp | 213 return llvm::APSInt::compareValues(Lower, From.Lower) <= 0 && in contains() 214 llvm::APSInt::compareValues(Upper, From.Upper) >= 0; in contains() 218 return llvm::APSInt::compareValues(Lower, Value) <= 0 && in contains() 219 llvm::APSInt::compareValues(Upper, Value) >= 0; in contains()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 296 if (llvm::APSInt::compareValues(AlignValue, MaxValue) > 0) { in SemaBuiltinAlignment() 1292 llvm::APSInt::compareValues(*SourceSize, *DestinationSize) <= 0) in checkFortifiedBuiltinMemoryFunction() 12578 switch (llvm::APSInt::compareValues(Value, PromotedMin)) { in compare() 12582 switch (llvm::APSInt::compareValues(Value, PromotedMax)) { in compare()
|
| H A D | SemaExprObjC.cpp | 910 return llvm::APSInt::compareValues(LHS, RHS) < 0; in CheckObjCDictionaryLiteralDuplicateKeys()
|
| H A D | SemaOpenMP.cpp | 10758 if (llvm::APSInt::compareValues(Hint, Pair.second) != 0) { in ActOnOpenMPCriticalDirective()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 9062 if (APSInt::compareValues(Alignment, MaxValue) > 0) { in getAlignmentArgument() 9071 assert(APSInt::compareValues(Alignment, ExtAlignment) == 0 && in getAlignmentArgument()
|