Home
last modified time | relevance | path

Searched refs:LHSVal (Results 1 – 13 of 13) sorted by relevance

/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp102 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison() argument
104 if (LHSVal.isUnknownOrUndef()) in evalComparison()
107 if (!LHSVal.getAs<NonLoc>()) { in evalComparison()
108 LHSVal = Mgr.getStoreManager().getBinding(State->getStore(), in evalComparison()
109 LHSVal.castAs<Loc>()); in evalComparison()
110 if (LHSVal.isUnknownOrUndef() || !LHSVal.getAs<NonLoc>()) in evalComparison()
115 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
H A DExprEngineC.cpp161 SVal LHSVal; in VisitBinaryOperator() local
167 LHSVal = svalBuilder.conjureSymbolVal(nullptr, B->getRHS(), LCtx, LTy, in VisitBinaryOperator()
170 Result = svalBuilder.evalCast(LHSVal, CTy, LTy); in VisitBinaryOperator()
175 LHSVal = svalBuilder.evalCast(Result, LTy, CTy); in VisitBinaryOperator()
185 evalStore(Tmp2, B, LHS, *I, state, location, LHSVal); in VisitBinaryOperator()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp288 Value *LHSVal = FirstInst->getOperand(0); in FoldPHIArgBinOpIntoPHI() local
291 Type *LHSType = LHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
310 if (I->getOperand(0) != LHSVal) LHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
318 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
326 if (!LHSVal) { in FoldPHIArgBinOpIntoPHI()
331 LHSVal = NewLHS; in FoldPHIArgBinOpIntoPHI()
359 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
366 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
/freebsd-12.1/contrib/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cc247 Value LHSVal(Data->Type, LHS); in handleDivremOverflowImpl() local
267 << LHSVal << Data->Type; in handleDivremOverflowImpl()
292 Value LHSVal(Data->LHSType, LHS); in handleShiftOutOfBoundsImpl() local
315 if (LHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
316 Diag(Loc, DL_Error, ET, "left shift of negative value %0") << LHSVal; in handleShiftOutOfBoundsImpl()
320 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp697 for (const auto &LHSVal : LHSVals) in ComputeValueKnownInPredecessorsImpl() local
698 if (LHSVal.first == InterestingVal || isa<UndefValue>(LHSVal.first)) { in ComputeValueKnownInPredecessorsImpl()
699 Result.emplace_back(InterestingVal, LHSVal.second); in ComputeValueKnownInPredecessorsImpl()
700 LHSKnownBBs.insert(LHSVal.second); in ComputeValueKnownInPredecessorsImpl()
739 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessorsImpl() local
740 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessorsImpl()
744 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessorsImpl()
884 for (const auto &LHSVal : LHSVals) { in ComputeValueKnownInPredecessorsImpl() local
885 Constant *V = LHSVal.first; in ComputeValueKnownInPredecessorsImpl()
888 Result.push_back(std::make_pair(KC, LHSVal.second)); in ComputeValueKnownInPredecessorsImpl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprComplex.cpp907 ComplexPairTy LHSVal = EmitLoadOfLValue(LHS, Loc); in EmitCompoundAssignLValue() local
908 OpInfo.LHS = EmitComplexToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
910 llvm::Value *LHSVal = CGF.EmitLoadOfScalar(LHS, Loc); in EmitCompoundAssignLValue() local
915 LHSVal = CGF.EmitScalarConversion(LHSVal, LHSTy, ComplexElementTy, Loc); in EmitCompoundAssignLValue()
916 OpInfo.LHS = ComplexPairTy(LHSVal, nullptr); in EmitCompoundAssignLValue()
918 OpInfo.LHS = EmitScalarToComplexCast(LHSVal, LHSTy, OpInfo.Ty, Loc); in EmitCompoundAssignLValue()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp336 SVal LHSVal = C.getSVal(Lhs); in checkPreStmt() local
337 if (State->isNull(LHSVal).isConstrainedTrue()) in checkPreStmt()
/freebsd-12.1/contrib/llvm/include/llvm/TableGen/
H A DRecord.h1752 unsigned LHSVal, RHSVal; in operator() local
1754 bool LHSFailed = LHSPart.second.getAsInteger(10, LHSVal); (void)LHSFailed; in operator()
1759 if (LHSVal != RHSVal) in operator()
1760 return LHSVal < RHSVal; in operator()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp76 int64_t LHSVal = EvaluateCRExpr(BE->getLHS()); in EvaluateCRExpr() local
80 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
85 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
86 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmt.cpp446 Sema::ActOnCaseStmt(SourceLocation CaseLoc, ExprResult LHSVal, in ActOnCaseStmt() argument
449 assert((LHSVal.isInvalid() || LHSVal.get()) && "missing LHS value"); in ActOnCaseStmt()
459 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt()
464 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelDAGToDAG.cpp514 uint32_t LHSVal, RHSVal; in Select() local
515 if (getConstantValue(N->getOperand(0), LHSVal) && in Select()
517 uint32_t K = LHSVal | (RHSVal << 16); in Select()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExprConstant.cpp8964 const APValue &LHSVal = LHSResult.Val; in VisitBinOp() local
8968 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
8969 Result = LHSVal; in VisitBinOp()
8976 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
8978 addOrSubLValueAsInteger(Result, LHSVal.getInt(), /*IsSub*/false); in VisitBinOp()
8982 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
8984 if (!LHSVal.getLValueOffset().isZero() || in VisitBinOp()
8987 const Expr *LHSExpr = LHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
9004 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
9012 if (!handleIntIntBinOp(Info, E, LHSVal.getInt(), E->getOpcode(), in VisitBinOp()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2960 SDValue LHSVal = getValue(I.getOperand(1)); in visitSelect() local
3038 LHSVal = getValue(LHS); in visitSelect()
3046 Ops.push_back(SDValue(LHSVal.getNode(), LHSVal.getResNo() + i)); in visitSelect()
3049 LHSVal.getNode()->getValueType(LHSVal.getResNo()+i), in visitSelect()