Lines Matching defs:LHSValue

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