/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 140 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument 142 if (LHSVal.isUnknownOrUndef()) in evalComparison() 145 if (!isa<NonLoc>(LHSVal)) { in evalComparison() 146 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison() 147 LHSVal.castAs<Loc>()); in evalComparison() 148 if (LHSVal.isUnknownOrUndef() || !isa<NonLoc>(LHSVal)) in evalComparison() 153 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/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/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/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUISelDAGToDAG.h | 51 uint32_t LHSVal, RHSVal; in packConstantV2I16() local 52 if (getConstantValue(N->getOperand(0), LHSVal) && in packConstantV2I16() 55 uint32_t K = (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprComplex.cpp | 1273 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local 1276 EmitComplexToComplexCast(LHSVal, LHSTy, PromotionTypeLHS, Loc); in EmitCompoundAssignLValue() 1278 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue() 1280 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local 1290 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, in EmitCompoundAssignLValue() 1294 LHSVal = in EmitCompoundAssignLValue() 1295 CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue() 1297 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue() 1299 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 686 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local 687 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl() 688 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl() 689 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl() 728 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 729 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 734 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl() 857 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 858 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 862 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | Transfer.cpp | 176 BoolValue &LHSVal = getLogicOperatorSubExprValue(*LHS); in VisitBinaryOperator() local 180 Env.setValue(*S, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator() 182 Env.setValue(*S, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
|
/freebsd/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/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/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 516 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt() argument 519 assert((LHSVal.isInvalid() || LHSVal.get()) && "missing LHS value"); in ActOnCaseStmt() 529 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 541 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGBuilder.cpp | 3699 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local 3788 LHSVal = getValue(LHS); in visitSelect() 3795 LHSVal = getValue(LHS); in visitSelect() 3803 EVT VT = LHSVal.getNode()->getValueType(LHSVal.getResNo() + i); in visitSelect() 3805 DAG.getNode(OpCode, dl, VT, LHSVal.getValue(LHSVal.getResNo() + i)); in visitSelect() 3812 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect() 3816 LHSVal.getNode()->getValueType(LHSVal.getResNo() + i), Ops, Flags); in visitSelect()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 13411 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local 13415 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 13416 Result = LHSVal; in VisitBinOp() 13423 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 13425 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp() 13429 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 13431 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp() 13434 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 13451 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 13459 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVISelLowering.cpp | 7748 SDValue LHSVal = DAG.getConstant( in lowerSELECT() 7754 DL, VT, LHSVal, CondV); in lowerSELECT() 7746 SDValue LHSVal = DAG.getConstant( lowerSELECT() local
|