Lines Matching refs:LHSValue
2872 static bool handleLogicalOpForVector(const APInt &LHSValue, in handleLogicalOpForVector() argument
2875 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
2884 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
2887 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
2897 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
2901 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
2902 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
2904 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
2905 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
2911 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
2917 Result = (LHSValue == RHSValue); in handleCompareOpForVectorHelper()
2920 Result = (LHSValue != RHSValue); in handleCompareOpForVectorHelper()
2923 Result = (LHSValue < RHSValue); in handleCompareOpForVectorHelper()
2926 Result = (LHSValue > RHSValue); in handleCompareOpForVectorHelper()
2929 Result = (LHSValue <= RHSValue); in handleCompareOpForVectorHelper()
2932 Result = (LHSValue >= RHSValue); in handleCompareOpForVectorHelper()
2939 static bool handleCompareOpForVector(const APValue &LHSValue, in handleCompareOpForVector() argument
2943 if (LHSValue.getKind() == APValue::Int) in handleCompareOpForVector()
2944 return handleCompareOpForVectorHelper(LHSValue.getInt(), Opcode, in handleCompareOpForVector()
2946 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleCompareOpForVector()
2947 return handleCompareOpForVectorHelper(LHSValue.getFloat(), Opcode, in handleCompareOpForVector()
2954 APValue &LHSValue, in handleVectorVectorBinOp() argument
2966 if (!LHSValue.isVector()) { in handleVectorVectorBinOp()
2967 assert(LHSValue.isLValue() && in handleVectorVectorBinOp()
2973 assert(LHSValue.getVectorLength() == NumElements && in handleVectorVectorBinOp()
2979 APValue LHSElt = LHSValue.getVectorElt(EltNum); in handleVectorVectorBinOp()
3017 LHSValue = APValue(ResultElements.data(), ResultElements.size()); in handleVectorVectorBinOp()
10352 APValue LHSValue; in VisitBinaryOperator() local
10354 bool LHSOK = Evaluate(LHSValue, Info, LHS); in VisitBinaryOperator()
10360 if (!handleVectorVectorBinOp(Info, E, Op, LHSValue, RHSValue)) in VisitBinaryOperator()
10363 return Success(LHSValue, E); in VisitBinaryOperator()
12649 LValue LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
12651 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
12660 if (!HasSameBase(LHSValue, RHSValue)) { in EvaluateComparisonBinaryOperator()
12670 if ((!LHSValue.Base && !LHSValue.Offset.isZero()) || in EvaluateComparisonBinaryOperator()
12677 if ((IsLiteralLValue(LHSValue) || IsLiteralLValue(RHSValue)) && in EvaluateComparisonBinaryOperator()
12678 LHSValue.Base && RHSValue.Base) in EvaluateComparisonBinaryOperator()
12682 if (IsWeakLValue(LHSValue) || IsWeakLValue(RHSValue)) in EvaluateComparisonBinaryOperator()
12686 if ((LHSValue.Base && LHSValue.Offset.isZero() && in EvaluateComparisonBinaryOperator()
12689 isOnePastTheEndOfCompleteObject(Info.Ctx, LHSValue))) in EvaluateComparisonBinaryOperator()
12693 if ((RHSValue.Base && isZeroSized(LHSValue)) || in EvaluateComparisonBinaryOperator()
12694 (LHSValue.Base && isZeroSized(RHSValue))) in EvaluateComparisonBinaryOperator()
12699 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in EvaluateComparisonBinaryOperator()
12702 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in EvaluateComparisonBinaryOperator()
12726 getType(LHSValue.Base), LHSDesignator, RHSDesignator, WasArrayIndex); in EvaluateComparisonBinaryOperator()
12769 if (!LHSValue.Base.isNull() && IsRelational) { in EvaluateComparisonBinaryOperator()
12770 QualType BaseTy = getType(LHSValue.Base); in EvaluateComparisonBinaryOperator()
12790 MemberPtr LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
12792 bool LHSOK = EvaluateMemberPointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
12802 if (!LHSValue.getDecl() || !RHSValue.getDecl()) { in EvaluateComparisonBinaryOperator()
12803 bool Equal = !LHSValue.getDecl() && !RHSValue.getDecl(); in EvaluateComparisonBinaryOperator()
12809 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(LHSValue.getDecl())) in EvaluateComparisonBinaryOperator()
12820 bool Equal = LHSValue == RHSValue; in EvaluateComparisonBinaryOperator()
12928 LValue LHSValue, RHSValue; in VisitBinaryOperator() local
12930 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in VisitBinaryOperator()
12939 if (!HasSameBase(LHSValue, RHSValue)) { in VisitBinaryOperator()
12941 if (!LHSValue.Offset.isZero() || !RHSValue.Offset.isZero()) in VisitBinaryOperator()
12943 const Expr *LHSExpr = LHSValue.Base.dyn_cast<const Expr *>(); in VisitBinaryOperator()
12957 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in VisitBinaryOperator()
12960 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in VisitBinaryOperator()
12968 !AreElementsOfSameArray(getType(LHSValue.Base), LHSDesignator, in VisitBinaryOperator()