Lines Matching refs:APSInt
52 using llvm::APSInt;
380 OptionalDiagnostic &operator<<(const APSInt &I) { in operator <<()
957 APSInt IntReal, IntImag;
969 APSInt &getComplexIntReal() { return IntReal; } in getComplexIntReal()
970 APSInt &getComplexIntImag() { return IntImag; } in getComplexIntImag()
1183 static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info);
1244 static int64_t getExtValue(const APSInt &Value) { in getExtValue()
1583 QualType DestType, APSInt &Result) { in HandleFloatToIntCast()
1588 Result = APSInt(DestWidth, !DestSigned); in HandleFloatToIntCast()
1608 static APSInt HandleIntToIntCast(EvalInfo &Info, const Expr *E, in HandleIntToIntCast()
1610 const APSInt &Value) { in HandleIntToIntCast()
1612 APSInt Result = Value; in HandleIntToIntCast()
1621 QualType SrcType, const APSInt &Value, in HandleIntToFloatCast()
1644 APSInt &Int = Value.getInt(); in truncateBitfieldValue()
1704 const APSInt &LHS, const APSInt &RHS, in CheckedIntArithmetic()
1706 APSInt &Result) { in CheckedIntArithmetic()
1712 APSInt Value(Op(LHS.extend(BitWidth), RHS.extend(BitWidth)), false); in CheckedIntArithmetic()
1726 static bool handleIntIntBinOp(EvalInfo &Info, const Expr *E, const APSInt &LHS, in handleIntIntBinOp()
1727 BinaryOperatorKind Opcode, APSInt RHS, in handleIntIntBinOp()
1728 APSInt &Result) { in handleIntIntBinOp()
1735 std::multiplies<APSInt>(), Result); in handleIntIntBinOp()
1738 std::plus<APSInt>(), Result); in handleIntIntBinOp()
1741 std::minus<APSInt>(), Result); in handleIntIntBinOp()
1762 RHS &= APSInt(llvm::APInt(RHS.getBitWidth(), in handleIntIntBinOp()
1793 RHS &= APSInt(llvm::APInt(RHS.getBitWidth(), in handleIntIntBinOp()
2117 static APSInt extractStringLiteralCharacter(EvalInfo &Info, const Expr *Lit, in extractStringLiteralCharacter()
2129 APSInt Value(S->getCharByteWidth() * Info.Ctx.getCharWidth(), in extractStringLiteralCharacter()
2149 APSInt Value(S->getCharByteWidth() * Info.Ctx.getCharWidth(), in expandStringLiteral()
2446 bool found(APSInt &Value, QualType SubobjType) { in found()
2499 bool found(APSInt &Value, QualType SubobjType) { in found()
2892 bool found(APSInt &Value, QualType SubobjType) { in found()
2903 APSInt LHS = HandleIntToIntCast(Info, E, PromotedLHSType, in found()
3017 bool found(APSInt &Value, QualType SubobjType) { in found()
3046 APSInt ActualValue(Value, /*IsUnsigned*/true); in found()
3055 APSInt ActualValue(Value.sext(BitWidth + 1), /*IsUnsigned*/false); in found()
3379 APSInt Value; in EvaluateSwitch()
3400 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch()
3401 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch()
4775 APSInt Index; in VisitArraySubscriptExpr()
4938 llvm::APSInt Offset; in VisitBinaryOperator()
5100 APSInt Alignment; in VisitCallExpr()
5106 APSInt Offset; in VisitCallExpr()
5140 APSInt Offset(64, false); in VisitCallExpr()
5548 Result.getStructField(1) = APValue(APSInt(ArrayType->getSize())); in VisitCXXStdInitializerListExpr()
5669 APSInt IntResult; in VisitCastExpr()
5716 Elts.push_back(APValue(APSInt(Elt, EltTy->isSignedIntegerType()))); in VisitCastExpr()
5754 llvm::APSInt sInt(32); in VisitInitListExpr()
6007 bool Success(const llvm::APSInt &SI, const Expr *E, APValue &Result) { in Success()
6017 bool Success(const llvm::APSInt &SI, const Expr *E) { in Success()
6026 Result = APValue(APSInt(I)); in Success()
6145 static bool EvaluateInteger(const Expr *E, APSInt &Result, EvalInfo &Info) { in EvaluateInteger()
6175 llvm::APSInt Val = ECD->getInitVal(); in CheckReferencedDecl()
6602 APSInt Val; in VisitCallExpr()
6620 APSInt Val; in VisitCallExpr()
6636 APSInt Val; in VisitCallExpr()
6657 APSInt Val; in VisitCallExpr()
6712 APSInt Val; in VisitCallExpr()
6722 APSInt Val; in VisitCallExpr()
6782 APSInt SizeVal; in VisitCallExpr()
6958 bool Success(const APSInt &Value, const Expr *E, APValue &Result) { in Success()
7134 APSInt Value(Info.Ctx.getIntWidth(E->getType()), in VisitBinOp()
7403 APSInt LHS( in VisitBinaryOperator()
7405 APSInt RHS( in VisitBinaryOperator()
7407 APSInt ElemSize( in VisitBinaryOperator()
7409 APSInt TrueResult = (LHS - RHS) / ElemSize; in VisitBinaryOperator()
7410 APSInt Result = TrueResult.trunc(Info.Ctx.getIntWidth(E->getType())); in VisitBinaryOperator()
7624 APSInt IdxResult; in VisitOffsetOfExpr()
7699 const APSInt &Value = Result.getInt(); in VisitUnaryOperator()
7832 APSInt AsInt = Info.Ctx.MakeIntValue(LV.getLValueOffset().getQuantity(), in VisitCastExpr()
7849 APSInt Value; in VisitCastExpr()
8100 APSInt IntResult; in VisitCastExpr()
8170 APSInt Zero = Info.Ctx.MakeIntValue(0, ElemTy); in ZeroInitialization()
8193 APSInt &Imag = Result.IntImag; in VisitImaginaryLiteral()
8197 Result.IntReal = APSInt(Imag.getBitWidth(), !Imag.isSigned()); in VisitImaginaryLiteral()
8297 APSInt &Real = Result.IntReal; in VisitCastExpr()
8302 Result.IntImag = APSInt(Real.getBitWidth(), !Real.isSigned()); in VisitCastExpr()
8544 APSInt Den = RHS.getComplexIntReal() * RHS.getComplexIntReal() + in VisitBinaryOperator()
8817 Result.Val = APValue(APSInt(L->getValue(), in FastEvaluateAsRValue()
8869 bool Expr::EvaluateAsInt(APSInt &Result, const ASTContext &Ctx, in EvaluateAsInt()
8945 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt()
9267 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE()
9271 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE()
9321 APSInt IgnoredVal(DestWidth, !DestSigned); in CheckICE()
9403 llvm::APSInt *Value, in EvaluateCPlusPlus11IntegralConstantExpr()
9436 bool Expr::isIntegerConstantExpr(llvm::APSInt &Value, const ASTContext &Ctx, in isIntegerConstantExpr()