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

References

include/llvm/ADT/APSInt.h
   48   bool isNegative() const { return isSigned() && APInt::isNegative(); }
   83     APInt::toString(Str, Radix, isSigned());
   88     return APInt::toString(Radix, isSigned());
   95     return isSigned() ? getSExtValue() : getZExtValue();
  307     if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
  307     if (I1.getBitWidth() == I2.getBitWidth() && I1.isSigned() == I2.isSigned())
  318     if (I1.isSigned()) {
  319       assert(!I2.isSigned() && "Expected signed mismatch");
  323       assert(I2.isSigned() && "Expected signed mismatch");
  347   I.print(OS, I.isSigned());
lib/AsmParser/LLParser.cpp
 1504   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 1517   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 2790   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned() ||
 3946   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 4126     if (Lex.getKind() == lltok::APSInt && !Lex.getAPSIntVal().isSigned()) {
 4166     if (Lex.getKind() == lltok::APSInt && !Lex.getAPSIntVal().isSigned()) {
 4280   if (Lex.getAPSIntVal().isSigned()) {
 4967       if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
 8236   if (Lex.getKind() != lltok::APSInt || Lex.getAPSIntVal().isSigned())
lib/CodeGen/MIRParser/MIParser.cpp
 1832   if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned())
 1872           Token.integerValue().isSigned())
 1913               Token.integerValue().isSigned())
 1925               Token.integerValue().isSigned())
 2564   if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned())
 2579   if (Token.isNot(MIToken::IntegerLiteral) || Token.integerValue().isSigned())
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
  191     if (Value.isSigned())
  196     if (Value.isSigned())
lib/DebugInfo/CodeView/RecordSerialization.cpp
  119   if (N.isSigned() || !N.isIntN(64))
lib/ObjectYAML/CodeViewYAMLTypes.cpp
  185   S.print(OS, S.isSigned());
lib/Support/APFloat.cpp
 4553   opStatus status = convertToInteger(parts, bitWidth, result.isSigned(),
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
   81     OS << (I.isSigned() ? "signed " : "unsigned ") << I.getBitWidth()
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
 1093             Idx.castAs<nonloc::ConcreteInt>().getValue().isSigned()) &&
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SMTConv.h
  545     return Ctx.getIntTypeForBitwidth(Int.getBitWidth(), Int.isSigned());
tools/clang/lib/AST/ASTImporter.cpp
 2059   return FromVal.isSigned() == ToVal.isSigned() &&
 2059   return FromVal.isSigned() == ToVal.isSigned() &&
tools/clang/lib/AST/ExprConstant.cpp
 2384   Result.convertFromAPInt(Value, Value.isSigned(),
 2513         LHS.isSigned() && LHS.isMinSignedValue())
 2523     else if (RHS.isSigned() && RHS.isNegative()) {
 2537     } else if (LHS.isSigned() && !Info.getLangOpts().CPlusPlus2a) {
 2556     else if (RHS.isSigned() && RHS.isNegative()) {
 8347     assert(!N.isSigned() && "memcpy and friends take an unsigned size");
 8532     if (ArrayBound.isSigned() && ArrayBound.isNegative()) {
 9654     assert(SI.isSigned() == E->getType()->isSignedIntegerOrEnumerationType() &&
 9901     bool SameSign = (ECD->getInitVal().isSigned()
 9912         Val.setIsSigned(!ECD->getInitVal().isSigned());
10987       bool IsSigned = LHS.isSigned() || RHS.isSigned() ||
10987       bool IsSigned = LHS.isSigned() || RHS.isSigned() ||
10989       bool AllSigned = LHS.isSigned() && RHS.isSigned() &&
10989       bool AllSigned = LHS.isSigned() && RHS.isSigned() &&
11019       Result = LHS.isSigned() ? LHS.sadd_ov(RHS, DidOverflow)
11029       Result = LHS.isSigned() ? LHS.ssub_ov(RHS, DidOverflow)
11039       Result = LHS.isSigned() ? LHS.smul_ov(RHS, DidOverflow)
12038     if (Value.isSigned() && Value.isMinSignedValue() && E->canOverflow() &&
12676     Result.IntReal = APSInt(Imag.getBitWidth(), !Imag.isSigned());
12788     Result.IntImag = APSInt(Real.getBitWidth(), !Real.isSigned());
14082           if (REval.isSigned() && REval.isAllOnesValue()) {
tools/clang/lib/AST/Interp/Integral.h
   81       : V(V.isSigned() ? V.getSExtValue() : V.getZExtValue()) {}
tools/clang/lib/AST/ItaniumMangle.cpp
 1047   if (Value.isSigned() && Value.isNegative()) {
tools/clang/lib/AST/MicrosoftMangle.cpp
 1355   else if (Value.isSigned())
tools/clang/lib/AST/Type.cpp
 4151   FixedPointSemantics FXSema(Val.getBitWidth(), Scale, Val.isSigned(),
tools/clang/lib/Analysis/CFG.cpp
 1012     assert(Value1.isSigned() == Value2.isSigned());
 1012     assert(Value1.isSigned() == Value2.isSigned());
 1081     if (L1.isSigned() != L2.isSigned() || L1.getBitWidth() != L2.getBitWidth())
 1081     if (L1.isSigned() != L2.isSigned() || L1.getBitWidth() != L2.getBitWidth())
tools/clang/lib/Basic/FixedPoint.cpp
   50   if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) {
   66   bool ThisSigned = Val.isSigned();
   67   bool OtherSigned = OtherVal.isSigned();
  166     Result = ThisVal.isSigned() ? ThisVal.sadd_ov(OtherVal, Overflowed)
  180   if (Val.isSigned() && Val.isNegative() && Val != -Val) {
  198         .toString(Str, /*Radix=*/10, Val.isSigned());
  237     if (Result.isSigned() && !DstSign) {
  254       Value.getBitWidth(), Value.isSigned());
tools/clang/lib/CodeGen/CGExprScalar.cpp
 1635     if (Idx.isSigned() && Idx.isAllOnesValue())
tools/clang/lib/CodeGen/CGStmt.cpp
 1188   if (LHS.isSigned() ? RHS.slt(LHS) : RHS.ult(LHS))
tools/clang/lib/Lex/PPExpressions.cpp
  668         if (LHS.Val.isSigned())
  680       if (Res.isSigned())
tools/clang/lib/Sema/SemaChecking.cpp
 5934     if (Result.isSigned() && Result.isAllOnesValue())
 6805   assert(Offset.isSigned() && "invalid offset");
10158   if (value.isSigned() && value.isNegative())
10996   if (!Value.isSigned() || Value.isNegative())
tools/clang/lib/Sema/SemaDecl.cpp
 5781   if (Res.isSigned() && Res.isNegative()) {
15809   if (Value.isSigned() && Value.isNegative()) {
17232     return Val.isSigned() ? Val.getSExtValue() : Val.getZExtValue();
tools/clang/lib/Sema/SemaDeclAttr.cpp
  263   if (StrictlyUnsigned && I.isSigned() && I.isNegative()) {
 2649     if (Idx.isSigned() && Idx.isNegative()) {
 2670     if ((Idx.isSigned() && Idx.isNegative()) || nullPos > 1) {
tools/clang/lib/Sema/SemaExprCXX.cpp
 2007         if (Value.isSigned() && Value.isNegative()) {
 5315     if (Value.isSigned() && Value.isNegative()) {
tools/clang/lib/Sema/SemaInit.cpp
 3118   if (Value.isSigned() && Value.isNegative())
tools/clang/lib/Sema/SemaOpenMP.cpp
 5503         IsConstant && Result.isSigned() && (Subtract != Result.isNegative());
 5505         IsConstant && Result.isSigned() && (Subtract == Result.isNegative());
11098         Result.isSigned() &&
11660         if (Result.isSigned() && !Result.isStrictlyPositive()) {
16101         if (Result.isSigned() && !Result.isStrictlyPositive()) {
tools/clang/lib/Sema/SemaOverload.cpp
  355         Result.convertFromAPInt(IntConstantValue, IntConstantValue.isSigned(),
  443         if (InitializerValue.isSigned() && InitializerValue.isNegative())
  455         ConvertedValue.setIsSigned(InitializerValue.isSigned());
tools/clang/lib/Sema/SemaStmt.cpp
  774     AdjustAPSInt(ConvVal, Val.getBitWidth(), Val.isSigned());
  974               ConstantCondValue.isSigned() == CondIsSigned));
tools/clang/lib/Sema/SemaTemplate.cpp
 6699                && (OldValue.isSigned() && OldValue.isNegative())) {
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  121   if (X.isSigned() != Y.isSigned()) {
  121   if (X.isSigned() != Y.isSigned()) {
  123     if ((Y.isSigned() && Y.isNegative()) || (X.isSigned() && X.isNegative()))
  123     if ((Y.isSigned() && Y.isNegative()) || (X.isSigned() && X.isNegative()))
tools/clang/lib/Sema/SemaType.cpp
 2258     if (ConstVal.isSigned() && ConstVal.isNegative()) {
 5905     if (addrSpace.isSigned()) {
tools/clang/lib/StaticAnalyzer/Core/APSIntType.cpp
   20       Value.isSigned() && Value.isNegative())
   25     if (Value.isSigned() && !IsUnsigned)
   35     if (Value.isSigned())
   44   if (Value.isSigned() && Value.isNegative())
tools/clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp
  234       if (V2.isSigned() && V2.isNegative())
  243         if (V1.isSigned() && V1.isNegative())
  246         if (V1.isSigned() && Amt > V1.countLeadingZeros())
  257       if (V2.isSigned() && V2.isNegative())
tools/clang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
  854     assert(IV.isSigned() == OOE->getType()->isSignedIntegerType());
tools/clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
  106     if (I.getBitWidth() == ArrayIndexWidth && I.isSigned())
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  317       os << Value << ' ' << (Value.isSigned() ? 'S' : 'U')
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp
  303       if (RHS.isSigned() && !SymbolType->isSignedIntegerOrEnumerationType())
  647         if (LHSValue.isAllOnesValue() && LHSValue.isSigned())
tools/clang/lib/StaticAnalyzer/Core/Store.cpp
  530   assert(BaseIdxI.isSigned());
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
  113   if (Index.isSigned() && Index.isNegative()) {
tools/clang/unittests/Basic/FixedPointTest.cpp
  605   ASSERT_TRUE(Fixed.getValue().isSigned());
tools/llvm-pdbutil/MinimalTypeDumper.cpp
  559            Enum.Value.toString(10, Enum.Value.isSigned()));
unittests/ADT/APSIntTest.cpp
   44   EXPECT_TRUE(APSInt::get(7).isSigned());
   48   EXPECT_TRUE(APSInt::get(-7).isSigned());
   67   EXPECT_TRUE(APSInt(APInt(3, 7), false).isSigned());
   69   EXPECT_TRUE(APSInt(APInt(4, 7), false).isSigned());
   71   EXPECT_TRUE(APSInt(APInt(4, -7), false).isSigned());