Lines Matching refs:LHSValue

2884 static bool handleLogicalOpForVector(const APInt &LHSValue,  in handleLogicalOpForVector()  argument
2887 bool LHS = (LHSValue != 0); in handleLogicalOpForVector()
2896 static bool handleLogicalOpForVector(const APFloat &LHSValue, in handleLogicalOpForVector() argument
2899 bool LHS = !LHSValue.isZero(); in handleLogicalOpForVector()
2909 static bool handleLogicalOpForVector(const APValue &LHSValue, in handleLogicalOpForVector() argument
2913 if (LHSValue.getKind() == APValue::Int) in handleLogicalOpForVector()
2914 return handleLogicalOpForVector(LHSValue.getInt(), Opcode, in handleLogicalOpForVector()
2916 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleLogicalOpForVector()
2917 return handleLogicalOpForVector(LHSValue.getFloat(), Opcode, in handleLogicalOpForVector()
2923 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper() argument
2929 Result = (LHSValue == RHSValue); in handleCompareOpForVectorHelper()
2932 Result = (LHSValue != RHSValue); in handleCompareOpForVectorHelper()
2935 Result = (LHSValue < RHSValue); in handleCompareOpForVectorHelper()
2938 Result = (LHSValue > RHSValue); in handleCompareOpForVectorHelper()
2941 Result = (LHSValue <= RHSValue); in handleCompareOpForVectorHelper()
2944 Result = (LHSValue >= RHSValue); in handleCompareOpForVectorHelper()
2956 static bool handleCompareOpForVector(const APValue &LHSValue, in handleCompareOpForVector() argument
2960 if (LHSValue.getKind() == APValue::Int) in handleCompareOpForVector()
2961 return handleCompareOpForVectorHelper(LHSValue.getInt(), Opcode, in handleCompareOpForVector()
2963 assert(LHSValue.getKind() == APValue::Float && "Should be no other options"); in handleCompareOpForVector()
2964 return handleCompareOpForVectorHelper(LHSValue.getFloat(), Opcode, in handleCompareOpForVector()
2971 APValue &LHSValue, in handleVectorVectorBinOp() argument
2983 if (!LHSValue.isVector()) { in handleVectorVectorBinOp()
2984 assert(LHSValue.isLValue() && in handleVectorVectorBinOp()
2990 assert(LHSValue.getVectorLength() == NumElements && in handleVectorVectorBinOp()
2996 APValue LHSElt = LHSValue.getVectorElt(EltNum); in handleVectorVectorBinOp()
3034 LHSValue = APValue(ResultElements.data(), ResultElements.size()); in handleVectorVectorBinOp()
10493 APValue LHSValue; in VisitBinaryOperator() local
10495 bool LHSOK = Evaluate(LHSValue, Info, LHS); in VisitBinaryOperator()
10501 if (!handleVectorVectorBinOp(Info, E, Op, LHSValue, RHSValue)) in VisitBinaryOperator()
10504 return Success(LHSValue, E); in VisitBinaryOperator()
12877 LValue LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
12879 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
12888 if (!HasSameBase(LHSValue, RHSValue)) { in EvaluateComparisonBinaryOperator()
12898 if ((!LHSValue.Base && !LHSValue.Offset.isZero()) || in EvaluateComparisonBinaryOperator()
12905 if ((IsLiteralLValue(LHSValue) || IsLiteralLValue(RHSValue)) && in EvaluateComparisonBinaryOperator()
12906 LHSValue.Base && RHSValue.Base) in EvaluateComparisonBinaryOperator()
12910 if (IsWeakLValue(LHSValue) || IsWeakLValue(RHSValue)) in EvaluateComparisonBinaryOperator()
12914 if ((LHSValue.Base && LHSValue.Offset.isZero() && in EvaluateComparisonBinaryOperator()
12917 isOnePastTheEndOfCompleteObject(Info.Ctx, LHSValue))) in EvaluateComparisonBinaryOperator()
12921 if ((RHSValue.Base && isZeroSized(LHSValue)) || in EvaluateComparisonBinaryOperator()
12922 (LHSValue.Base && isZeroSized(RHSValue))) in EvaluateComparisonBinaryOperator()
12927 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in EvaluateComparisonBinaryOperator()
12930 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in EvaluateComparisonBinaryOperator()
12954 getType(LHSValue.Base), LHSDesignator, RHSDesignator, WasArrayIndex); in EvaluateComparisonBinaryOperator()
12997 if (!LHSValue.Base.isNull() && IsRelational) { in EvaluateComparisonBinaryOperator()
12998 QualType BaseTy = getType(LHSValue.Base); in EvaluateComparisonBinaryOperator()
13018 MemberPtr LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
13020 bool LHSOK = EvaluateMemberPointer(E->getLHS(), LHSValue, Info); in EvaluateComparisonBinaryOperator()
13030 if (!LHSValue.getDecl() || !RHSValue.getDecl()) { in EvaluateComparisonBinaryOperator()
13031 bool Equal = !LHSValue.getDecl() && !RHSValue.getDecl(); in EvaluateComparisonBinaryOperator()
13037 if (const CXXMethodDecl *MD = dyn_cast<CXXMethodDecl>(LHSValue.getDecl())) in EvaluateComparisonBinaryOperator()
13048 bool Equal = LHSValue == RHSValue; in EvaluateComparisonBinaryOperator()
13156 LValue LHSValue, RHSValue; in VisitBinaryOperator() local
13158 bool LHSOK = EvaluatePointer(E->getLHS(), LHSValue, Info); in VisitBinaryOperator()
13167 if (!HasSameBase(LHSValue, RHSValue)) { in VisitBinaryOperator()
13169 if (!LHSValue.Offset.isZero() || !RHSValue.Offset.isZero()) in VisitBinaryOperator()
13171 const Expr *LHSExpr = LHSValue.Base.dyn_cast<const Expr *>(); in VisitBinaryOperator()
13185 const CharUnits &LHSOffset = LHSValue.getLValueOffset(); in VisitBinaryOperator()
13188 SubobjectDesignator &LHSDesignator = LHSValue.getLValueDesignator(); in VisitBinaryOperator()
13196 !AreElementsOfSameArray(getType(LHSValue.Base), LHSDesignator, in VisitBinaryOperator()