| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 127 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument 129 if (LHSVal.isUnknownOrUndef()) in evalComparison() 132 if (!isa<NonLoc>(LHSVal)) { in evalComparison() 133 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison() 134 LHSVal.castAs<Loc>()); in evalComparison() 135 if (LHSVal.isUnknownOrUndef() || !isa<NonLoc>(LHSVal)) in evalComparison() 140 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
|
| H A D | ExprEngineC.cpp | 162 SVal LHSVal; in VisitBinaryOperator() local 168 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy, in VisitBinaryOperator() 171 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator() 175 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator() 185 evalStore(Tmp2, B, LHS, N, state, location, LHSVal); in VisitBinaryOperator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 411 Value *LHSVal = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() local 414 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI() 433 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in foldPHIArgBinOpIntoPHI() 441 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI() 449 if (!LHSVal) { in foldPHIArgBinOpIntoPHI() 454 LHSVal = NewLHS; in foldPHIArgBinOpIntoPHI() 484 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI() 491 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/ubsan/ |
| H A D | ubsan_handlers.cpp | 289 Value LHSVal(Data->Type, LHS); in handleDivremOverflowImpl() local 309 << LHSVal << Data->Type; in handleDivremOverflowImpl() 334 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl() local 357 if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 358 Diag(Loc, DL_Error, ET, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl() 362 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.h | 55 uint32_t LHSVal, RHSVal; in packConstantV2I16() local 56 if (getConstantValue(N->getOperand(0), LHSVal) && in packConstantV2I16() 59 uint32_t K = (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprComplex.cpp | 1203 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local 1206 EmitComplexToComplexCast(LHSVal, LHSTy, PromotionTypeLHS, Loc); in EmitCompoundAssignLValue() 1208 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue() 1210 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local 1220 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, in EmitCompoundAssignLValue() 1224 LHSVal = in EmitCompoundAssignLValue() 1225 CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue() 1227 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue() 1229 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 329 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt() local 330 if (State->isNull(LHSVal).isConstrainedTrue()) in checkPreStmt()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 689 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local 690 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl() 691 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl() 692 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl() 731 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 732 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 737 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl() 869 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 870 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 873 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 152 BoolValue &LHSVal = getLogicOperatorSubExprValue(*LHS); in VisitBinaryOperator() local 156 Env.setValue(*S, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator() 158 Env.setValue(*S, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 2191 unsigned LHSVal, RHSVal; in operator() local 2193 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator() 2198 if (LHSVal != RHSVal) in operator() 2199 return LHSVal < RHSVal; in operator()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 75 int64_t LHSVal = EvaluateCRExpr(BE->getLHS()); in EvaluateCRExpr() local 79 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr() 84 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr() 85 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 511 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt() argument 514 assert((LHSVal.isInvalid() || LHSVal.get()) && "missing LHS value"); in ActOnCaseStmt() 524 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 529 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3510 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local 3599 LHSVal = getValue(LHS); in visitSelect() 3606 LHSVal = getValue(LHS); in visitSelect() 3614 EVT VT = LHSVal.getNode()->getValueType(LHSVal.getResNo() + i); in visitSelect() 3616 DAG.getNode(OpCode, dl, VT, LHSVal.getValue(LHSVal.getResNo() + i)); in visitSelect() 3623 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect() 3627 LHSVal.getNode()->getValueType(LHSVal.getResNo() + i), Ops, Flags); in visitSelect()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 13044 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local 13048 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 13049 Result = LHSVal; in VisitBinOp() 13056 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 13058 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp() 13062 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 13064 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp() 13067 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 13084 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 13092 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
|