Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp917 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local
921 !ABE->getRHS()->evaluateAsRelocatableImpl(RHSValue, Asm, Fixup, Addrs, in evaluateAsRelocatableImpl()
943 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl()
952 MCValue::get(RHSValue.getSymB(), RHSValue.getSymA(), in evaluateAsRelocatableImpl()
953 -(uint64_t)RHSValue.getConstant(), in evaluateAsRelocatableImpl()
954 RHSValue.getRefKind()), in evaluateAsRelocatableImpl()
960 MCValue::get(RHSValue.getSymA(), RHSValue.getSymB(), in evaluateAsRelocatableImpl()
961 RHSValue.getConstant(), RHSValue.getRefKind()), in evaluateAsRelocatableImpl()
969 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl()
/src/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()
/src/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp62 Value *RHSValue = Env.getValue(RHS); in evaluateBooleanEquality() local
64 if (LHSValue == RHSValue) in evaluateBooleanEquality()
68 if (auto *RHSBool = dyn_cast_or_null<BoolValue>(RHSValue)) in evaluateBooleanEquality()
72 if (auto *RHSPtr = dyn_cast_or_null<PointerValue>(RHSValue)) in evaluateBooleanEquality()
/src/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp2957 const APInt &RHSValue, APInt &Result) { in handleLogicalOpForVector() argument
2959 bool RHS = (RHSValue != 0); in handleLogicalOpForVector()
2969 const APFloat &RHSValue, APInt &Result) { in handleLogicalOpForVector() argument
2971 bool RHS = !RHSValue.isZero(); in handleLogicalOpForVector()
2982 const APValue &RHSValue, APInt &Result) { in handleLogicalOpForVector() argument
2986 RHSValue.getInt(), Result); in handleLogicalOpForVector()
2989 RHSValue.getFloat(), Result); in handleLogicalOpForVector()
2995 const APTy &RHSValue, APInt &Result) { in handleCompareOpForVectorHelper() argument
3000 Result = (LHSValue == RHSValue); in handleCompareOpForVectorHelper()
3003 Result = (LHSValue != RHSValue); in handleCompareOpForVectorHelper()
[all …]
H A DASTContext.cpp11193 QualType RHSValue = RHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local
11196 RHSValue = RHSValue.getUnqualifiedType(); in mergeTypes()
11198 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes()
11204 if (getCanonicalType(RHSValue) == getCanonicalType(ResultType)) in mergeTypes()
/src/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelDAGToDAG.cpp2914 int64_t RHSValue, SDLoc dl);
2916 int64_t RHSValue, SDLoc dl);
2918 int64_t RHSValue, SDLoc dl);
2920 int64_t RHSValue, SDLoc dl);
3318 int64_t RHSValue, SDLoc dl) { in get32BitZExtCompare() argument
3322 bool IsRHSZero = RHSValue == 0; in get32BitZExtCompare()
3323 bool IsRHSOne = RHSValue == 1; in get32BitZExtCompare()
3324 bool IsRHSNegOne = RHSValue == -1LL; in get32BitZExtCompare()
3491 int64_t RHSValue, SDLoc dl) { in get32BitSExtCompare() argument
3495 bool IsRHSZero = RHSValue == 0; in get32BitSExtCompare()
[all …]
/src/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp10126 std::optional<llvm::APSInt> RHSValue = in AnalyzeComparison() local
10132 if (RHSValue && LHSValue) in AnalyzeComparison()
10136 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison()
10138 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison()
10141 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
H A DSemaExpr.cpp10478 Expr::EvalResult RHSValue; in DiagnoseBadDivideOrRemainderValues() local
10480 RHS.get()->EvaluateAsInt(RHSValue, S.Context) && in DiagnoseBadDivideOrRemainderValues()
10481 RHSValue.Val.getInt() == 0) in DiagnoseBadDivideOrRemainderValues()
/src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp11078 for (auto &RHSValue : RHSValues) in handleCmp() local
11079 if (!CheckPair(*LHSValue.getValue(), *RHSValue.getValue())) in handleCmp()