Home
last modified time | relevance | path

Searched refs:isUnsigned (Results 1 – 25 of 97) sorted by relevance

1234

/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPPExpressions.cpp61 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 DLiteralSupport.cpp913 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 DAPSIntType.h28 : 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 DBasicValueFactory.h133 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 DSValBuilder.h297 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 DAPSInt.h32 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 DAPFixedPoint.h229 return APSInt(APInt::getZero(getWidth()), Val.isUnsigned());
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRangedConstraintManager.cpp122 ComparisonType.isUnsigned() && !WraparoundType.isUnsigned()) in assumeSymInclusiveRange()
190 ComparisonType.isUnsigned() && !WraparoundType.isUnsigned()) in assumeSymRel()
H A DBasicValueFactory.cpp108 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 DSimpleConstraintManager.cpp98 assert(From.isUnsigned() == To.isUnsigned() && in assumeInclusiveRangeInternal()
H A DRangeConstraintManager.cpp357 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 DSymbolManager.cpp50 if (Value.isUnsigned()) in dumpToStreamImpl()
54 if (Value.isUnsigned()) in dumpToStreamImpl()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/
H A DCIRTypeInterfaces.td39 /*methodName=*/"isUnsigned",
43 return $_type.isUnsigned();
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp364 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 DAbstractBasicReader.h165 bool isUnsigned = asImpl().readBool(); in readAPSInt() local
167 return llvm::APSInt(std::move(value), isUnsigned); in readAPSInt()
H A DTypeProperties.td1008 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 DAbstractBasicWriter.h153 asImpl().writeBool(value.isUnsigned()); in writeAPSInt()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp178 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 DArrayBoundChecker.cpp293 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 DExprInspectionChecker.cpp266 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 DCIRAttrs.td199 bool isUnsigned() const;
216 bool $cppClass::isUnsigned() const {
217 return mlir::cast<IntTypeInterface>(getType()).isUnsigned();
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaARM.cpp325 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 DVariantValue.h288 bool isUnsigned() const;
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DZ3Solver.cpp781 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 DLiteralSupport.h72 bool isUnsigned : 1; variable

1234