| /freebsd/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCExpr.cpp | 580 MCValue LHSValue, RHSValue; in evaluateAsRelocatableImpl() local 583 !ABE->getRHS()->evaluateAsRelocatableImpl(RHSValue, Asm, InSet)) { in evaluateAsRelocatableImpl() 605 int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant(); in evaluateAsRelocatableImpl() 606 if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl() 613 std::swap(RHSValue.SymA, RHSValue.SymB); in evaluateAsRelocatableImpl() 614 RHSValue.Cst = -(uint64_t)RHSValue.Cst; in evaluateAsRelocatableImpl() 616 if (RHSValue.isAbsolute()) { in evaluateAsRelocatableImpl() 617 LHSValue.Cst += RHSValue.Cst; in evaluateAsRelocatableImpl() 622 RHSValue.Cst += LHSValue.Cst; in evaluateAsRelocatableImpl() 623 Res = RHSValue; in evaluateAsRelocatableImpl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SimpleSValBuilder.cpp | 531 llvm::APSInt RHSValue = *KnownRHSValue; in evalBinOpNN() local 537 APSIntType(RHSValue)); in evalBinOpNN() 539 CompareType.apply(RHSValue); in evalBinOpNN() 543 IntType.apply(RHSValue); in evalBinOpNN() 547 BasicVals.evalAPSInt(op, LHSValue, RHSValue); in evalBinOpNN() 663 if (const llvm::APSInt *RHSValue = getConstValue(state, rhs)) { in evalBinOpNN() local 678 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN() 705 return MakeSymIntVal(symIntExpr, op, *RHSValue, resultTy); in evalBinOpNN() 710 if (const llvm::APSInt *RHSValue = getConstValue(state, rhs)) in evalBinOpNN() local 711 return MakeSymIntVal(Sym, op, *RHSValue, resultTy); in evalBinOpNN()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 60 Value *RHSValue = Env.getValue(RHS); in evaluateBooleanEquality() local 64 if (LHSValue == RHSValue && LHSValue) in evaluateBooleanEquality() 73 if (auto *RHSBool = dyn_cast_or_null<BoolValue>(RHSValue)) in evaluateBooleanEquality() 77 if (auto *RHSPtr = dyn_cast_or_null<PointerValue>(RHSValue)) in evaluateBooleanEquality()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 3099 const APInt &RHSValue, APInt &Result) { in handleLogicalOpForVector() argument 3101 bool RHS = (RHSValue != 0); in handleLogicalOpForVector() 3111 const APFloat &RHSValue, APInt &Result) { in handleLogicalOpForVector() argument 3113 bool RHS = !RHSValue.isZero(); in handleLogicalOpForVector() 3124 const APValue &RHSValue, APInt &Result) { in handleLogicalOpForVector() argument 3128 RHSValue.getInt(), Result); in handleLogicalOpForVector() 3131 RHSValue.getFloat(), Result); in handleLogicalOpForVector() 3137 const APTy &RHSValue, APInt &Result) { in handleCompareOpForVectorHelper() argument 3142 Result = (LHSValue == RHSValue); in handleCompareOpForVectorHelper() 3145 Result = (LHSValue != RHSValue); in handleCompareOpForVectorHelper() [all …]
|
| H A D | ASTContext.cpp | 11783 QualType RHSValue = RHS->castAs<AtomicType>()->getValueType(); in mergeTypes() local 11786 RHSValue = RHSValue.getUnqualifiedType(); in mergeTypes() 11788 QualType ResultType = mergeTypes(LHSValue, RHSValue, false, in mergeTypes() 11794 if (getCanonicalType(RHSValue) == getCanonicalType(ResultType)) in mergeTypes()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelDAGToDAG.cpp | 2914 int64_t RHSValue, SDLoc dl); 2916 int64_t RHSValue, SDLoc dl); 2918 int64_t RHSValue, SDLoc dl); 2920 int64_t RHSValue, SDLoc dl); 3317 int64_t RHSValue, SDLoc dl) { in get32BitZExtCompare() argument 3321 bool IsRHSZero = RHSValue == 0; in get32BitZExtCompare() 3322 bool IsRHSOne = RHSValue == 1; in get32BitZExtCompare() 3323 bool IsRHSNegOne = RHSValue == -1LL; in get32BitZExtCompare() 3490 int64_t RHSValue, SDLoc dl) { in get32BitSExtCompare() argument 3494 bool IsRHSZero = RHSValue == 0; in get32BitSExtCompare() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 1610 llvm::APSInt RHSValue(32); in CheckUnicodeArithmeticConversions() local 1611 RHSValue = RHSRes.Val.getInt(); in CheckUnicodeArithmeticConversions() 1614 bool RHSSafe = IsSingleCodeUnitCP(RHSType, RHSValue); in CheckUnicodeArithmeticConversions() 1621 << FormatUTFCodeUnitAsCodepoint(RHSValue.getExtValue(), RHSType); in CheckUnicodeArithmeticConversions() 10733 Expr::EvalResult RHSValue; in DiagnoseBadDivideOrRemainderValues() local 10735 RHS.get()->EvaluateAsInt(RHSValue, S.Context) && in DiagnoseBadDivideOrRemainderValues() 10736 RHSValue.Val.getInt() == 0) in DiagnoseBadDivideOrRemainderValues()
|
| H A D | SemaChecking.cpp | 11367 std::optional<llvm::APSInt> RHSValue = in AnalyzeComparison() local 11373 if (RHSValue && LHSValue) in AnalyzeComparison() 11377 if ((bool)RHSValue ^ (bool)LHSValue) { in AnalyzeComparison() 11379 const bool RhsConstant = (bool)RHSValue; in AnalyzeComparison() 11382 const llvm::APSInt &Value = RhsConstant ? *RHSValue : *LHSValue; in AnalyzeComparison()
|
| /freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
| H A D | OMPIRBuilder.cpp | 3721 Value *RHSValue = Builder.CreateLoad(RI.ElementType, RHS, "final.rhs"); in createReductionsGPU() local 3724 RI.ReductionGen(Builder.saveIP(), RHSValue, LHSValue, Reduced); in createReductionsGPU()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 11156 for (auto &RHSValue : RHSValues) in handleCmp() local 11157 if (!CheckPair(*LHSValue.getValue(), *RHSValue.getValue())) in handleCmp()
|