Lines Matching refs:LHSValue

2867 static bool handleLogicalOpForVector(const APInt &LHSValue,  in handleLogicalOpForVector()  argument
2870 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
2879 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
2882 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
2892 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
2896 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
2897 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
2899 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
2900 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
2906 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
2912 Result = (LHSValue == RHSValue); in handleCompareOpForVectorHelper()
2915 Result = (LHSValue != RHSValue); in handleCompareOpForVectorHelper()
2918 Result = (LHSValue < RHSValue); in handleCompareOpForVectorHelper()
2921 Result = (LHSValue > RHSValue); in handleCompareOpForVectorHelper()
2924 Result = (LHSValue <= RHSValue); in handleCompareOpForVectorHelper()
2927 Result = (LHSValue >= RHSValue); in handleCompareOpForVectorHelper()
2934 static bool handleCompareOpForVector(const APValue &LHSValue, in handleCompareOpForVector() argument
2938 if (LHSValue.getKind() == APValue::Int) in handleCompareOpForVector()
2939 return handleCompareOpForVectorHelper(LHSValue.getInt(), Opcode, in handleCompareOpForVector()
2941 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleCompareOpForVector()
2942 return handleCompareOpForVectorHelper(LHSValue.getFloat(), Opcode, in handleCompareOpForVector()
2949 APValue &LHSValue, in handleVectorVectorBinOp() argument
2961 if (!LHSValue.isVector()) { in handleVectorVectorBinOp()
2962 assert(LHSValue.isLValue() && in handleVectorVectorBinOp()
2968 assert(LHSValue.getVectorLength() == NumElements && in handleVectorVectorBinOp()
2974 APValue LHSElt = LHSValue.getVectorElt(EltNum); in handleVectorVectorBinOp()
3012 LHSValue = APValue(ResultElements.data(), ResultElements.size()); in handleVectorVectorBinOp()
10295 APValue LHSValue; in VisitBinaryOperator() local
10297 bool LHSOK = Evaluate(LHSValue, Info, LHS); in VisitBinaryOperator()
10303 if (!handleVectorVectorBinOp(Info, E, Op, LHSValue, RHSValue)) in VisitBinaryOperator()
10306 return Success(LHSValue, E); in VisitBinaryOperator()
12610 LValue LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
12612 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
12621 if (!HasSameBase(LHSValue, RHSValue)) { in EvaluateComparisonBinaryOperator()
12631 if ((!LHSValue.Base && !LHSValue.Offset.isZero()) || in EvaluateComparisonBinaryOperator()
12638 if ((IsLiteralLValue(LHSValue) || IsLiteralLValue(RHSValue)) && in EvaluateComparisonBinaryOperator()
12639 LHSValue.Base && RHSValue.Base) in EvaluateComparisonBinaryOperator()
12643 if (IsWeakLValue(LHSValue) || IsWeakLValue(RHSValue)) in EvaluateComparisonBinaryOperator()
12647 if ((LHSValue.Base && LHSValue.Offset.isZero() && in EvaluateComparisonBinaryOperator()
12650 isOnePastTheEndOfCompleteObject(Info.Ctx, LHSValue))) in EvaluateComparisonBinaryOperator()
12654 if ((RHSValue.Base && isZeroSized(LHSValue)) || in EvaluateComparisonBinaryOperator()
12655 (LHSValue.Base && isZeroSized(RHSValue))) in EvaluateComparisonBinaryOperator()
12660 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in EvaluateComparisonBinaryOperator()
12663 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in EvaluateComparisonBinaryOperator()
12687 getType(LHSValue.Base), LHSDesignator, RHSDesignator, WasArrayIndex); in EvaluateComparisonBinaryOperator()
12730 if (!LHSValue.Base.isNull() && IsRelational) { in EvaluateComparisonBinaryOperator()
12731 QualType BaseTy = getType(LHSValue.Base); in EvaluateComparisonBinaryOperator()
12751 MemberPtr LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
12753 bool LHSOK = EvaluateMemberPointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
12763 if (!LHSValue.getDecl() || !RHSValue.getDecl()) { in EvaluateComparisonBinaryOperator()
12764 bool Equal = !LHSValue.getDecl() && !RHSValue.getDecl(); in EvaluateComparisonBinaryOperator()
12770 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(LHSValue.getDecl())) in EvaluateComparisonBinaryOperator()
12781 bool Equal = LHSValue == RHSValue; in EvaluateComparisonBinaryOperator()
12887 LValue LHSValue, RHSValue; in VisitBinaryOperator() local
12889 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in VisitBinaryOperator()
12898 if (!HasSameBase(LHSValue, RHSValue)) { in VisitBinaryOperator()
12900 if (!LHSValue.Offset.isZero() || !RHSValue.Offset.isZero()) in VisitBinaryOperator()
12902 const Expr *LHSExpr = LHSValue.Base.dyn_cast<const Expr *>(); in VisitBinaryOperator()
12916 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in VisitBinaryOperator()
12919 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in VisitBinaryOperator()
12927 !AreElementsOfSameArray(getType(LHSValue.Base), LHSDesignator, in VisitBinaryOperator()