Lines Matching refs:LHSValue
2955 static bool handleLogicalOpForVector(const APInt &LHSValue, in handleLogicalOpForVector() argument
2958 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
2967 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
2970 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
2980 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
2984 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
2985 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
2987 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
2988 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
2994 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
3000 Result = (LHSValue == RHSValue); in handleCompareOpForVectorHelper()
3003 Result = (LHSValue != RHSValue); in handleCompareOpForVectorHelper()
3006 Result = (LHSValue < RHSValue); in handleCompareOpForVectorHelper()
3009 Result = (LHSValue > RHSValue); in handleCompareOpForVectorHelper()
3012 Result = (LHSValue <= RHSValue); in handleCompareOpForVectorHelper()
3015 Result = (LHSValue >= RHSValue); in handleCompareOpForVectorHelper()
3027 static bool handleCompareOpForVector(const APValue &LHSValue, in handleCompareOpForVector() argument
3031 if (LHSValue.getKind() == APValue::Int) in handleCompareOpForVector()
3032 return handleCompareOpForVectorHelper(LHSValue.getInt(), Opcode, in handleCompareOpForVector()
3034 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleCompareOpForVector()
3035 return handleCompareOpForVectorHelper(LHSValue.getFloat(), Opcode, in handleCompareOpForVector()
3042 APValue &LHSValue, in handleVectorVectorBinOp() argument
3054 if (!LHSValue.isVector()) { in handleVectorVectorBinOp()
3055 assert(LHSValue.isLValue() && in handleVectorVectorBinOp()
3061 assert(LHSValue.getVectorLength() == NumElements && in handleVectorVectorBinOp()
3067 APValue LHSElt = LHSValue.getVectorElt(EltNum); in handleVectorVectorBinOp()
3105 LHSValue = APValue(ResultElements.data(), ResultElements.size()); in handleVectorVectorBinOp()
10896 APValue LHSValue; in VisitBinaryOperator() local
10898 bool LHSOK = Evaluate(LHSValue, Info, LHS); in VisitBinaryOperator()
10904 if (!handleVectorVectorBinOp(Info, E, Op, LHSValue, RHSValue)) in VisitBinaryOperator()
10907 return Success(LHSValue, E); in VisitBinaryOperator()
13651 LValue LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
13653 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
13662 if (!HasSameBase(LHSValue, RHSValue)) { in EvaluateComparisonBinaryOperator()
13664 std::string LHS = LHSValue.toString(Info.Ctx, E->getLHS()->getType()); in EvaluateComparisonBinaryOperator()
13680 if ((!LHSValue.Base && !LHSValue.Offset.isZero()) || in EvaluateComparisonBinaryOperator()
13688 if ((IsLiteralLValue(LHSValue) || IsLiteralLValue(RHSValue)) && in EvaluateComparisonBinaryOperator()
13689 LHSValue.Base && RHSValue.Base) in EvaluateComparisonBinaryOperator()
13693 if (IsWeakLValue(LHSValue) || IsWeakLValue(RHSValue)) in EvaluateComparisonBinaryOperator()
13695 !IsWeakLValue(LHSValue)); in EvaluateComparisonBinaryOperator()
13698 if (LHSValue.Base && LHSValue.Offset.isZero() && in EvaluateComparisonBinaryOperator()
13703 isOnePastTheEndOfCompleteObject(Info.Ctx, LHSValue)) in EvaluateComparisonBinaryOperator()
13708 if ((RHSValue.Base && isZeroSized(LHSValue)) || in EvaluateComparisonBinaryOperator()
13709 (LHSValue.Base && isZeroSized(RHSValue))) in EvaluateComparisonBinaryOperator()
13715 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in EvaluateComparisonBinaryOperator()
13718 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in EvaluateComparisonBinaryOperator()
13742 getType(LHSValue.Base), LHSDesignator, RHSDesignator, WasArrayIndex); in EvaluateComparisonBinaryOperator()
13785 if (!LHSValue.Base.isNull() && IsRelational) { in EvaluateComparisonBinaryOperator()
13786 QualType BaseTy = getType(LHSValue.Base); in EvaluateComparisonBinaryOperator()
13806 MemberPtr LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
13808 bool LHSOK = EvaluateMemberPointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
13817 if (LHSValue.getDecl() && LHSValue.getDecl()->isWeak()) { in EvaluateComparisonBinaryOperator()
13819 << LHSValue.getDecl(); in EvaluateComparisonBinaryOperator()
13831 if (!LHSValue.getDecl() || !RHSValue.getDecl()) { in EvaluateComparisonBinaryOperator()
13832 bool Equal = !LHSValue.getDecl() && !RHSValue.getDecl(); in EvaluateComparisonBinaryOperator()
13838 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(LHSValue.getDecl())) in EvaluateComparisonBinaryOperator()
13849 bool Equal = LHSValue == RHSValue; in EvaluateComparisonBinaryOperator()
13966 LValue LHSValue, RHSValue; in VisitBinaryOperator() local
13968 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in VisitBinaryOperator()
13977 if (!HasSameBase(LHSValue, RHSValue)) { in VisitBinaryOperator()
13979 if (!LHSValue.Offset.isZero() || !RHSValue.Offset.isZero()) in VisitBinaryOperator()
13981 const Expr *LHSExpr = LHSValue.Base.dyn_cast<const Expr *>(); in VisitBinaryOperator()
13995 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in VisitBinaryOperator()
13998 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in VisitBinaryOperator()
14006 !AreElementsOfSameArray(getType(LHSValue.Base), LHSDesignator, in VisitBinaryOperator()