| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 105 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument 107 if (LHSVal.isUnknownOrUndef()) in evalComparison() 110 if (!LHSVal.getAs<NonLoc>()) { in evalComparison() 111 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison() 112 LHSVal.castAs<Loc>()); in evalComparison() 113 if (LHSVal.isUnknownOrUndef() || !LHSVal.getAs<NonLoc>()) in evalComparison() 118 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
|
| H A D | ExprEngineC.cpp | 164 SVal LHSVal; in VisitBinaryOperator() local 170 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy, in VisitBinaryOperator() 173 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator() 178 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator() 188 evalStore(Tmp2, B, LHS, *I, state, location, LHSVal); in VisitBinaryOperator()
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 385 Value *LHSVal = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() local 388 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI() 407 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in foldPHIArgBinOpIntoPHI() 415 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI() 423 if (!LHSVal) { in foldPHIArgBinOpIntoPHI() 428 LHSVal = NewLHS; in foldPHIArgBinOpIntoPHI() 456 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI() 463 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 335 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt() local 336 if (State->isNull(LHSVal).isConstrainedTrue()) in checkPreStmt()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprComplex.cpp | 934 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local 935 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue() 937 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local 942 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue() 943 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue() 945 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 764 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local 765 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl() 766 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl() 767 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl() 806 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 807 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 811 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl() 939 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 940 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 943 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 1978 unsigned LHSVal, RHSVal; in operator() local 1980 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator() 1985 if (LHSVal != RHSVal) in operator() 1986 return LHSVal < RHSVal; in operator()
|
| /freebsd-13.1/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-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 493 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt() argument 496 assert((LHSVal.isInvalid() || LHSVal.get()) && "missing LHS value"); in ActOnCaseStmt() 506 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 511 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.cpp | 80 uint32_t LHSVal, RHSVal; in packConstantV2I16() local 81 if (getConstantValue(N->getOperand(0), LHSVal) && in packConstantV2I16() 85 (-LHSVal & 0xffff) | (-RHSVal << 16) : in packConstantV2I16() 86 (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3253 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local 3344 LHSVal = getValue(LHS); in visitSelect() 3351 LHSVal = getValue(LHS); in visitSelect() 3359 EVT VT = LHSVal.getNode()->getValueType(LHSVal.getResNo() + i); in visitSelect() 3361 DAG.getNode(OpCode, dl, VT, LHSVal.getValue(LHSVal.getResNo() + i)); in visitSelect() 3369 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect() 3373 LHSVal.getNode()->getValueType(LHSVal.getResNo() + i), Ops, Flags); in visitSelect()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 12409 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local 12413 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 12414 Result = LHSVal; in VisitBinOp() 12421 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 12423 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp() 12427 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 12429 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp() 12432 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 12449 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 12457 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
|