| /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 | 165 SVal LHSVal; in VisitBinaryOperator() local 171 LHSVal = svalBuilder.conjureSymbolVal(/*symbolTag=*/nullptr, in VisitBinaryOperator() 175 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator() 179 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator() 189 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 | 443 Value *LHSVal = FirstInst->getOperand(0); in foldPHIArgBinOpIntoPHI() local 446 Type *LHSType = LHSVal->getType(); in foldPHIArgBinOpIntoPHI() 465 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in foldPHIArgBinOpIntoPHI() 473 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI() 481 if (!LHSVal) { in foldPHIArgBinOpIntoPHI() 486 LHSVal = NewLHS; in foldPHIArgBinOpIntoPHI() 516 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI() 523 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.h | 50 uint32_t LHSVal, RHSVal; in packConstantV2I16() local 51 if (getConstantValue(N->getOperand(0), LHSVal) && in packConstantV2I16() 54 uint32_t K = (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprComplex.cpp | 1279 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local 1282 EmitComplexToComplexCast(LHSVal, LHSTy, PromotionTypeLHS, Loc); in EmitCompoundAssignLValue() 1284 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue() 1286 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local 1296 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, in EmitCompoundAssignLValue() 1300 LHSVal = in EmitCompoundAssignLValue() 1301 CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue() 1303 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue() 1305 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 683 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local 684 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl() 685 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl() 686 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl() 725 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 726 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 731 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl() 854 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 855 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 859 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 181 BoolValue &LHSVal = getLogicOperatorSubExprValue(*LHS); in VisitBinaryOperator() local 185 Env.setValue(*S, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator() 187 Env.setValue(*S, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 73 int64_t LHSVal = EvaluateCRExpr(BE->getLHS()); in EvaluateCRExpr() local 77 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr() 82 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr() 83 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 2172 unsigned LHSVal, RHSVal; in operator() local 2174 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator() 2179 if (LHSVal != RHSVal) in operator() 2180 return LHSVal < RHSVal; in operator()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 542 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt() argument 545 assert((LHSVal.isInvalid() || LHSVal.get()) && "missing LHS value"); in ActOnCaseStmt() 555 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 567 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3753 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local 3842 LHSVal = getValue(LHS); in visitSelect() 3849 LHSVal = getValue(LHS); in visitSelect() 3857 EVT VT = LHSVal.getNode()->getValueType(LHSVal.getResNo() + i); in visitSelect() 3859 DAG.getNode(OpCode, dl, VT, LHSVal.getValue(LHSVal.getResNo() + i)); in visitSelect() 3866 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect() 3870 LHSVal.getNode()->getValueType(LHSVal.getResNo() + i), Ops, Flags); in visitSelect()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 14233 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local 14237 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 14238 Result = LHSVal; in VisitBinOp() 14245 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 14247 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp() 14251 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 14253 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp() 14256 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 14273 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 14281 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 9179 SDValue LHSVal = DAG.getConstant( in lowerSELECT() local 9185 DL, VT, LHSVal, CondV); in lowerSELECT()
|