| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | PPExpressions.cpp | 61 bool isUnsigned() const { return Val.isUnsigned(); } in isUnsigned() function in __anon807bcb150111::PPValue 354 Result.Val.setIsUnsigned(Literal.isUnsigned); in EvaluateValue() 360 if (!Literal.isUnsigned && Result.Val.isNegative()) { in EvaluateValue() 490 bool Overflow = !Result.isUnsigned() && Result.Val.isMinSignedValue(); in EvaluateValue() 693 Res.setIsUnsigned(LHS.isUnsigned() || RHS.isUnsigned()); in EvaluateDirectiveSubExpr() 696 if (ValueLive && Res.isUnsigned()) { in EvaluateDirectiveSubExpr() 697 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr() 702 if (!RHS.isUnsigned() && RHS.Val.isNegative()) in EvaluateDirectiveSubExpr() 708 LHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr() 709 RHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr() [all …]
|
| H A D | LiteralSupport.cpp | 913 isUnsigned = false; in NumericLiteralParser() 1042 if (isUnsigned) break; // Cannot be repeated. in NumericLiteralParser() 1043 isUnsigned = true; in NumericLiteralParser() 1138 isUnsigned = true; in NumericLiteralParser() 1181 isUnsigned = false; in NumericLiteralParser()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | APSIntType.h | 28 : BitWidth(Value.getBitWidth()), IsUnsigned(Value.isUnsigned()) {} in APSIntType() 31 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function 49 llvm::APSInt Result(Value, Value.isUnsigned()); in convert()
|
| H A D | BasicValueFactory.h | 133 APSIntPtr getValue(uint64_t X, unsigned BitWidth, bool isUnsigned); 145 APSIntPtr getValue(const llvm::APInt &X, bool isUnsigned); 189 APSIntPtr getIntValue(uint64_t X, bool isUnsigned) { in getIntValue() argument 190 QualType T = isUnsigned ? Ctx.UnsignedIntTy : Ctx.IntTy; in getIntValue()
|
| H A D | SValBuilder.h | 297 NonLoc makeIntVal(const llvm::APInt& integer, bool isUnsigned) { in makeIntVal() argument 298 return nonloc::ConcreteInt(BasicVals.getValue(integer, isUnsigned)); in makeIntVal() 308 NonLoc makeIntVal(uint64_t integer, bool isUnsigned) { in makeIntVal() argument 309 return nonloc::ConcreteInt(BasicVals.getIntValue(integer, isUnsigned)); in makeIntVal()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | APSInt.h | 32 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true) 33 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {} 35 explicit APSInt(APInt I, bool isUnsigned = true) 36 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt() 79 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function 386 LHS.isUnsigned() == RHS.isUnsigned() && LHS == RHS;
|
| H A D | APFixedPoint.h | 229 return APSInt(APInt::getZero(getWidth()), Val.isUnsigned());
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | RangedConstraintManager.cpp | 122 ComparisonType.isUnsigned() && !WraparoundType.isUnsigned()) in assumeSymInclusiveRange() 190 ComparisonType.isUnsigned() && !WraparoundType.isUnsigned()) in assumeSymRel()
|
| H A D | BasicValueFactory.cpp | 108 APSIntPtr BasicValueFactory::getValue(const llvm::APInt &X, bool isUnsigned) { in getValue() argument 109 llvm::APSInt V(X, isUnsigned); in getValue() 114 bool isUnsigned) { in getValue() argument 115 llvm::APSInt V(BitWidth, isUnsigned); in getValue()
|
| H A D | SimpleConstraintManager.cpp | 98 assert(From.isUnsigned() == To.isUnsigned() && in assumeInclusiveRangeInternal()
|
| H A D | RangeConstraintManager.cpp | 357 bool clang::ento::RangeSet::isUnsigned() const { in isUnsigned() function in clang::ento::RangeSet 359 return begin()->From().isUnsigned(); in isUnsigned() 681 const bool IsConversion = What.isUnsigned() != Ty.isUnsigned(); in castTo() 700 if (IsConversion && (!IsPromotion || !What.isUnsigned())) in castTo() 1408 if (RangeType.isUnsigned()) { in getSymmetricalRange() 1657 if (LHS.isUnsigned() != RHS.isUnsigned()) { in VisitBinaryOperator() 1658 if (LHS.isUnsigned() && (LHS.getBitWidth() >= RHS.getBitWidth())) { in VisitBinaryOperator() 1663 } else if (RHS.isUnsigned() && (LHS.getBitWidth() <= RHS.getBitWidth())) { in VisitBinaryOperator() 1672 LHS.isUnsigned() || RHS.isUnsigned()); in VisitBinaryOperator() 3288 Out << RS.getBitWidth() << (RS.isUnsigned() ? "u:" : "s:"); in printValue()
|
| H A D | SymbolManager.cpp | 50 if (Value.isUnsigned()) in dumpToStreamImpl() 54 if (Value.isUnsigned()) in dumpToStreamImpl()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/ |
| H A D | CIRTypeInterfaces.td | 39 /*methodName=*/"isUnsigned", 43 return $_type.isUnsigned();
|
| /freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
| H A D | VariantValue.cpp | 364 bool VariantValue::isUnsigned() const { in isUnsigned() function in clang::ast_matchers::dynamic::VariantValue 369 assert(isUnsigned()); in getUnsigned() 437 if (!isUnsigned()) in isConvertibleTo()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | AbstractBasicReader.h | 165 bool isUnsigned = asImpl().readBool(); in readAPSInt() local 167 return llvm::APSInt(std::move(value), isUnsigned); in readAPSInt()
|
| H A D | TypeProperties.td | 1008 def : Property<"isUnsigned", Bool> { 1009 let Read = [{ node->isUnsigned() }]; 1016 return ctx.getBitIntType(isUnsigned, numBits); 1021 def : Property<"isUnsigned", Bool> { 1022 let Read = [{ node->isUnsigned() }]; 1028 return ctx.getDependentBitIntType(isUnsigned, numBitsExpr);
|
| H A D | AbstractBasicWriter.h | 153 asImpl().writeBool(value.isUnsigned()); in writeAPSInt()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/ |
| H A D | LowerToLLVM.cpp | 178 bool isUnsigned, uint64_t cirSrcWidth, in getLLVMIntCast() argument 185 if (isUnsigned) in getLLVMIntCast() 609 srcIntType.isUnsigned(), in matchAndRewrite() 797 ptrStrideOp.getStride().getType().isUnsigned(), in matchAndRewrite() 1528 ? mlir::cast<cir::IntType>(type).isUnsigned() in isIntTypeUnsigned() 1529 : mlir::cast<mlir::IntegerType>(type).isUnsigned(); in isIntTypeUnsigned() 1592 auto isUnsigned = isIntTypeUnsigned(type); in matchAndRewrite() local 1593 if (isUnsigned) in matchAndRewrite() 1603 auto isUnsigned = isIntTypeUnsigned(type); in matchAndRewrite() local 1604 if (isUnsigned) in matchAndRewrite() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ArrayBoundChecker.cpp | 293 static bool isUnsigned(SValBuilder &SVB, NonLoc Value) { in isUnsigned() function 320 if (isNegative(SVB, State, Value) && isUnsigned(SVB, Threshold)) { in compareValueToThreshold() 328 if (isUnsigned(SVB, Value) && isNegative(SVB, State, Threshold)) { in compareValueToThreshold()
|
| H A D | ExprInspectionChecker.cpp | 266 Out << I.getBitWidth() << (I.isUnsigned() ? "u:" : "s:"); in printHelper() 490 (S->getRHS()->isUnsigned() ? "U" : "")) in VisitSymIntExpr()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/ |
| H A D | CIRAttrs.td | 199 bool isUnsigned() const; 216 bool $cppClass::isUnsigned() const { 217 return mlir::cast<IntTypeInterface>(getType()).isUnsigned();
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaARM.cpp | 325 return Flags.isUnsigned() ? Context.UnsignedCharTy : Context.SignedCharTy; in getNeonEltType() 327 return Flags.isUnsigned() ? Context.UnsignedShortTy : Context.ShortTy; in getNeonEltType() 329 return Flags.isUnsigned() ? Context.UnsignedIntTy : Context.IntTy; in getNeonEltType() 332 return Flags.isUnsigned() ? Context.UnsignedLongTy : Context.LongTy; in getNeonEltType() 334 return Flags.isUnsigned() ? Context.UnsignedLongLongTy in getNeonEltType()
|
| /freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/Dynamic/ |
| H A D | VariantValue.h | 288 bool isUnsigned() const;
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Z3Solver.cpp | 781 bool isUnsigned) override { in getBitvector() argument 786 isUnsigned); in getBitvector() 835 Int = getBitvector(AST, Int.getBitWidth(), Int.isUnsigned()); in toAPSInt() 850 Int.isUnsigned()); in toAPSInt()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | LiteralSupport.h | 72 bool isUnsigned : 1; variable
|