Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp944 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
948 !ABE->getRHS()->evaluateAsRelocatableImpl(RHSValue, Asm, Layout, Fixup, in evaluateAsRelocatableImpl()
970 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
979 MCValue::get(RHSValue.getSymB(), RHSValue.getSymA(), in evaluateAsRelocatableImpl()
980 -(uint64_t)RHSValue.getConstant(), in evaluateAsRelocatableImpl()
981 RHSValue.getRefKind()), in evaluateAsRelocatableImpl()
987 MCValue::get(RHSValue.getSymA(), RHSValue.getSymB(), in evaluateAsRelocatableImpl()
988 RHSValue.getConstant(), RHSValue.getRefKind()), in evaluateAsRelocatableImpl()
996 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp529 llvm::APSInt RHSValue = *KnownRHSValue; in evalBinOpNN() local
535 APSIntType(RHSValue)); in evalBinOpNN()
537 CompareType.apply(RHSValue); in evalBinOpNN()
541 IntType.apply(RHSValue); in evalBinOpNN()
545 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN()
661 if (const llvm::APSInt *RHSValue = getConstValue(state, rhs)) { in evalBinOpNN() local
676 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
703 return MakeSymIntVal(symIntExpr, op, *RHSValue, resultTy); in evalBinOpNN()
708 if (const llvm::APSInt *RHSValue = getConstValue(state, rhs)) in evalBinOpNN() local
709 return MakeSymIntVal(Sym, op, *RHSValue, resultTy); in evalBinOpNN()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp2931 bool RHS = (RHSValue != 0); in handleLogicalOpForVector()
2943 bool RHS = !RHSValue.isZero(); in handleLogicalOpForVector()
6278 APValue RHSValue; in HandleFunctionCall() local
10804 APValue RHSValue; in VisitBinaryOperator() local
13284 LValue LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
13314 (!RHSValue.Base && !RHSValue.Offset.isZero())) in EvaluateComparisonBinaryOperator()
13335 if (RHSValue.Base && RHSValue.Offset.isZero() && in EvaluateComparisonBinaryOperator()
13439 MemberPtr LHSValue, RHSValue; in EvaluateComparisonBinaryOperator() local
13455 if (RHSValue.getDecl() && RHSValue.getDecl()->isWeak()) { in EvaluateComparisonBinaryOperator()
13457 << RHSValue.getDecl(); in EvaluateComparisonBinaryOperator()
[all …]
H A DASTContext.cpp10718 QualType RHSValue = RHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local
10721 RHSValue = RHSValue.getUnqualifiedType(); in mergeTypes()
10723 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
10729 if (getCanonicalType(RHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp56 Value *RHSValue = Env.getValue(RHS); in evaluateBooleanEquality() local
58 if (LHSValue == RHSValue) in evaluateBooleanEquality()
62 if (auto *RHSBool = dyn_cast_or_null<BoolValue>(RHSValue)) in evaluateBooleanEquality()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp3335 bool IsRHSZero = RHSValue == 0; in get32BitZExtCompare()
3336 bool IsRHSOne = RHSValue == 1; in get32BitZExtCompare()
3337 bool IsRHSNegOne = RHSValue == -1LL; in get32BitZExtCompare()
3508 bool IsRHSZero = RHSValue == 0; in get32BitSExtCompare()
3509 bool IsRHSOne = RHSValue == 1; in get32BitSExtCompare()
3510 bool IsRHSNegOne = RHSValue == -1LL; in get32BitSExtCompare()
3680 bool IsRHSZero = RHSValue == 0; in get64BitZExtCompare()
3681 bool IsRHSOne = RHSValue == 1; in get64BitZExtCompare()
3682 bool IsRHSNegOne = RHSValue == -1LL; in get64BitZExtCompare()
3837 bool IsRHSZero = RHSValue == 0; in get64BitSExtCompare()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp14899 std::optional<llvm::APSInt> RHSValue = in AnalyzeComparison() local
14905 if (RHSValue && LHSValue) in AnalyzeComparison()
14909 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison()
14911 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison()
14914 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
H A DSemaExpr.cpp11476 Expr::EvalResult RHSValue; in DiagnoseBadDivideOrRemainderValues() local
11478 RHS.get()->EvaluateAsInt(RHSValue, S.Context) && in DiagnoseBadDivideOrRemainderValues()
11479 RHSValue.Val.getInt() == 0) in DiagnoseBadDivideOrRemainderValues()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp11087 for (auto &RHSValue : RHSValues) in handleCmp() local
11088 if (!CheckPair(*LHSValue.getValue(), *RHSValue.getValue())) in handleCmp()