Home
last modified time | relevance | path

Searched refs:isUnsigned (Results 1 – 25 of 79) 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()
684 Res.setIsUnsigned(LHS.isUnsigned() || RHS.isUnsigned()); in EvaluateDirectiveSubExpr()
687 if (ValueLive && Res.isUnsigned()) { in EvaluateDirectiveSubExpr()
688 if (!LHS.isUnsigned() && LHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
693 if (!RHS.isUnsigned() && RHS.Val.isNegative()) in EvaluateDirectiveSubExpr()
699 LHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
700 RHS.Val.setIsUnsigned(Res.isUnsigned()); in EvaluateDirectiveSubExpr()
[all …]
H A DLiteralSupport.cpp915 isUnsigned = false; in NumericLiteralParser()
1044 if (isUnsigned) break; // Cannot be repeated. in NumericLiteralParser()
1045 isUnsigned = true; in NumericLiteralParser()
1136 isUnsigned = true; in NumericLiteralParser()
1179 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.h132 const llvm::APSInt& getValue(uint64_t X, unsigned BitWidth, bool isUnsigned);
144 const llvm::APSInt& getValue(const llvm::APInt& X, bool isUnsigned);
189 const llvm::APSInt &getIntValue(uint64_t X, bool isUnsigned) { in getIntValue() argument
190 QualType T = isUnsigned ? Ctx.UnsignedIntTy : Ctx.IntTy; in getIntValue()
H A DSValBuilder.h310 NonLoc makeIntVal(const llvm::APInt& integer, bool isUnsigned) { in makeIntVal() argument
311 return nonloc::ConcreteInt(BasicVals.getValue(integer, isUnsigned)); in makeIntVal()
321 NonLoc makeIntVal(uint64_t integer, bool isUnsigned) { in makeIntVal() argument
322 return nonloc::ConcreteInt(BasicVals.getIntValue(integer, isUnsigned)); in makeIntVal()
H A DRangedConstraintManager.h345 bool isUnsigned() const;
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPSInt.h31 explicit APSInt(uint32_t BitWidth, bool isUnsigned = true)
32 : APInt(BitWidth, 0), IsUnsigned(isUnsigned) {}
34 explicit APSInt(APInt I, bool isUnsigned = true)
35 : APInt(std::move(I)), IsUnsigned(isUnsigned) {} in APInt()
78 bool isUnsigned() const { return IsUnsigned; } in isUnsigned() function
385 LHS.isUnsigned() == RHS.isUnsigned() && LHS == RHS;
H A DAPFixedPoint.h214 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 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()
1406 if (RangeType.isUnsigned()) { in getSymmetricalRange()
1639 if (LHS.isUnsigned() != RHS.isUnsigned()) { in VisitBinaryOperator()
1640 if (LHS.isUnsigned() && (LHS.getBitWidth() >= RHS.getBitWidth())) { in VisitBinaryOperator()
1645 } else if (RHS.isUnsigned() && (LHS.getBitWidth() <= RHS.getBitWidth())) { in VisitBinaryOperator()
1654 LHS.isUnsigned() || RHS.isUnsigned()); in VisitBinaryOperator()
3278 Out << RS.getBitWidth() << (RS.isUnsigned() ? "u:" : "s:"); in printValue()
H A DSymbolManager.cpp54 if (Value.isUnsigned()) in dumpToStreamImpl()
58 if (Value.isUnsigned()) in dumpToStreamImpl()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp365 bool VariantValue::isUnsigned() const { in isUnsigned() function in clang::ast_matchers::dynamic::VariantValue
370 assert(isUnsigned()); in getUnsigned()
438 if (!isUnsigned()) in isConvertibleTo()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAbstractBasicReader.h166 bool isUnsigned = asImpl().readBool(); in readAPSInt() local
168 return llvm::APSInt(std::move(value), isUnsigned); in readAPSInt()
H A DTypeProperties.td985 def : Property<"isUnsigned", Bool> {
986 let Read = [{ node->isUnsigned() }];
993 return ctx.getBitIntType(isUnsigned, numBits);
998 def : Property<"isUnsigned", Bool> {
999 let Read = [{ node->isUnsigned() }];
1005 return ctx.getDependentBitIntType(isUnsigned, numBitsExpr);
H A DAbstractBasicWriter.h154 asImpl().writeBool(value.isUnsigned()); in writeAPSInt()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DArrayBoundCheckerV2.cpp278 static bool isUnsigned(SValBuilder &SVB, NonLoc Value) { in isUnsigned() function
304 if (isNegative(SVB, State, Value) && isUnsigned(SVB, Threshold)) { in compareValueToThreshold()
312 if (isUnsigned(SVB, Value) && isNegative(SVB, State, Threshold)) { in compareValueToThreshold()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaARM.cpp358 return Flags.isUnsigned() ? Context.UnsignedCharTy : Context.SignedCharTy; in getNeonEltType()
360 return Flags.isUnsigned() ? Context.UnsignedShortTy : Context.ShortTy; in getNeonEltType()
362 return Flags.isUnsigned() ? Context.UnsignedIntTy : Context.IntTy; in getNeonEltType()
365 return Flags.isUnsigned() ? Context.UnsignedLongTy : Context.LongTy; in getNeonEltType()
367 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
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetBuiltins.h217 bool isUnsigned() const { return (Flags & UnsignedFlag) != 0; } in isUnsigned() function
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp36 return PromotionKey{e_int, m_integer.getBitWidth(), m_integer.isUnsigned()}; in GetPromoKey()
762 m_integer |= APSInt(std::move(mask), m_integer.isUnsigned()); in SignExtend()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSMTAPI.h413 bool isUnsigned) = 0;
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTStructuralEquivalence.cpp1388 if (Int1->isUnsigned() != Int2->isUnsigned() || in IsStructurallyEquivalent()
1397 if (Int1->isUnsigned() != Int2->isUnsigned() || in IsStructurallyEquivalent()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstrTypes.h1013 bool isUnsigned() const {
1014 return isUnsigned(getPredicate());
1068 static bool isUnsigned(Predicate predicate);

1234