| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 101 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument 103 if (LHSVal.isUnknownOrUndef()) in evalComparison() 106 if (!LHSVal.getAs<NonLoc>()) { in evalComparison() 107 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison() 108 LHSVal.castAs<Loc>()); in evalComparison() 109 if (LHSVal.isUnknownOrUndef() || !LHSVal.getAs<NonLoc>()) in evalComparison() 114 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()
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ |
| H A D | ubsan_handlers.cc | 191 Value LHSVal(Data->Type, LHS); in handleDivremOverflowImpl() local 211 << LHSVal << Data->Type; in handleDivremOverflowImpl() 236 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl() local 259 if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 260 Diag(Loc, DL_Error, ET, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl() 264 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/ |
| H A D | ubsan_handlers.cc | 187 Value LHSVal(Data->Type, LHS); in handleDivremOverflowImpl() local 207 << LHSVal << Data->Type; in handleDivremOverflowImpl() 232 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl() local 255 if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 256 Diag(Loc, DL_Error, ET, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl() 260 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 765 for (const auto &LHSVal : LHSVals) in computeValueKnownInPredecessorsImpl() local 766 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in computeValueKnownInPredecessorsImpl() 767 Result.emplace_back(InterestingVal, LHSVal.second); in computeValueKnownInPredecessorsImpl() 768 LHSKnownBBs.insert(LHSVal.second); in computeValueKnownInPredecessorsImpl() 807 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 808 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 812 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl() 940 for (const auto &LHSVal : LHSVals) { in computeValueKnownInPredecessorsImpl() local 941 Constant *V = LHSVal.first; in computeValueKnownInPredecessorsImpl() 944 Result.emplace_back(KC, LHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3252 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local 3343 LHSVal = getValue(LHS); in visitSelect() 3350 LHSVal = getValue(LHS); in visitSelect() 3358 EVT VT = LHSVal.getNode()->getValueType(LHSVal.getResNo() + i); in visitSelect() 3360 DAG.getNode(OpCode, dl, VT, LHSVal.getValue(LHSVal.getResNo() + i)); in visitSelect() 3368 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect() 3372 LHSVal.getNode()->getValueType(LHSVal.getResNo() + i), Ops, Flags); in visitSelect()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 12374 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local 12378 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 12379 Result = LHSVal; in VisitBinOp() 12386 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 12388 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp() 12392 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 12394 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp() 12397 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 12414 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 12422 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
|