Home
last modified time | relevance | path

Searched refs:RHSValue (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/llvm/lib/MC/
H A DMCExpr.cpp881 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
885 !ABE->getRHS()->evaluateAsRelocatableImpl(RHSValue, Asm, Layout, Fixup, in evaluateAsRelocatableImpl()
905 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
913 RHSValue.getSymB(), RHSValue.getSymA(), in evaluateAsRelocatableImpl()
914 -(uint64_t)RHSValue.getConstant(), Res); in evaluateAsRelocatableImpl()
918 RHSValue.getSymA(), RHSValue.getSymB(), in evaluateAsRelocatableImpl()
919 RHSValue.getConstant(), Res); in evaluateAsRelocatableImpl()
926 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp514 llvm::APSInt RHSValue = *KnownRHSValue; in evalBinOpNN() local
520 APSIntType(RHSValue)); in evalBinOpNN()
522 CompareType.apply(RHSValue); in evalBinOpNN()
526 IntType.apply(RHSValue); in evalBinOpNN()
530 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN()
633 if (const llvm::APSInt *RHSValue = getConstValue(state, rhs)) { in evalBinOpNN() local
648 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
675 return MakeSymIntVal(symIntExpr, op, *RHSValue, resultTy); in evalBinOpNN()
680 if (const llvm::APSInt *RHSValue = getConstValue(state, rhs)) in evalBinOpNN() local
681 return MakeSymIntVal(Sym, op, *RHSValue, resultTy); in evalBinOpNN()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp2888 bool RHS = (RHSValue != 0); in handleLogicalOpForVector()
2900 bool RHS = !RHSValue.isZero(); in handleLogicalOpForVector()
2935 Result = (LHSValue < RHSValue); in handleCompareOpForVectorHelper()
2938 Result = (LHSValue > RHSValue); in handleCompareOpForVectorHelper()
6178 APValue RHSValue; in HandleFunctionCall() local
10494 APValue RHSValue; in VisitBinaryOperator() local
12877 LValue LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
12899 (!RHSValue.Base && !RHSValue.Offset.isZero())) in EvaluateComparisonBinaryOperator()
12916 (RHSValue.Base && RHSValue.Offset.isZero() && in EvaluateComparisonBinaryOperator()
13018 MemberPtr LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
[all …]
H A DASTContext.cpp10477 QualType RHSValue = RHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local
10480 RHSValue = RHSValue.getUnqualifiedType(); in mergeTypes()
10482 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
10488 if (getCanonicalType(RHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp3161 bool IsRHSZero = RHSValue == 0; in get32BitZExtCompare()
3162 bool IsRHSOne = RHSValue == 1; in get32BitZExtCompare()
3163 bool IsRHSNegOne = RHSValue == -1LL; in get32BitZExtCompare()
3334 bool IsRHSZero = RHSValue == 0; in get32BitSExtCompare()
3335 bool IsRHSOne = RHSValue == 1; in get32BitSExtCompare()
3336 bool IsRHSNegOne = RHSValue == -1LL; in get32BitSExtCompare()
3506 bool IsRHSZero = RHSValue == 0; in get64BitZExtCompare()
3507 bool IsRHSOne = RHSValue == 1; in get64BitZExtCompare()
3508 bool IsRHSNegOne = RHSValue == -1LL; in get64BitZExtCompare()
3663 bool IsRHSZero = RHSValue == 0; in get64BitSExtCompare()
[all …]
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp42 if (auto *RHSValue = in evaluateBooleanEquality() local
44 return Env.makeIff(*LHSValue, *RHSValue); in evaluateBooleanEquality()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaChecking.cpp12836 Optional<llvm::APSInt> RHSValue = RHS->getIntegerConstantExpr(S.Context); in AnalyzeComparison() local
12840 if (RHSValue && LHSValue) in AnalyzeComparison()
12844 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison()
12846 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison()
12849 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
H A DSemaExpr.cpp10781 Expr::EvalResult RHSValue; in DiagnoseBadDivideOrRemainderValues() local
10783 RHS.get()->EvaluateAsInt(RHSValue, S.Context) && in DiagnoseBadDivideOrRemainderValues()
10784 RHSValue.Val.getInt() == 0) in DiagnoseBadDivideOrRemainderValues()