Home
last modified time | relevance | path

Searched refs:getLHS (Results 1 – 25 of 232) sorted by relevance

12345678910

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp63 B->getRHS(), C.getASTContext().getIntWidth(B->getLHS()->getType())); in isShiftOverflow()
70 const llvm::APSInt *LHS = SB.getKnownValue(State, C.getSVal(B->getLHS())); in isLeftShiftResultUnrepresentable()
102 if (C.getSVal(B->getLHS()).isUndef()) { in checkPostStmt()
103 Ex = B->getLHS()->IgnoreParenCasts(); in checkPostStmt()
148 << B->getLHS()->getType() << "'."; in checkPostStmt()
150 C.isNegative(B->getLHS())) { in checkPostStmt()
153 Ex = B->getLHS(); in checkPostStmt()
159 SB.getKnownValue(State, C.getSVal(B->getLHS())); in checkPostStmt()
165 << "the return type \'" << B->getLHS()->getType() << "\'"; in checkPostStmt()
166 Ex = B->getLHS(); in checkPostStmt()
H A DConversionChecker.cpp89 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
92 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
101 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
H A DMallocOverflowSecurityChecker.cpp90 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
199 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
212 const Expr *lhs = AssignEx->getLHS(); in CheckAssignmentExpr()
230 const Expr * lhs = E->getLHS(); in VisitBinaryOperator()
H A DUndefinedAssignmentChecker.cpp75 if (C.getSVal(B->getLHS()).isUndef()) { in checkBind()
78 ex = B->getLHS(); in checkBind()
H A DInvalidatedIteratorChecker.cpp93 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt()
103 SVal LVal = State->getSVal(ASE->getLHS(), C.getLocationContext()); in checkPreStmt()
/llvm-project-15.0.7/mlir/lib/IR/
H A DAffineExpr.cpp178 return expr.getLHS().isSymbolicOrConstant() && in isSymbolicOrConstant()
210 return op.getLHS().isPureAffine() && in isPureAffine()
304 AffineExpr AffineBinaryOpExpr::getLHS() const { in getLHS() function in AffineBinaryOpExpr
416 return binaryExpr.getLHS() * in symbolicDivide()
563 firstExpr = lBinOpExpr.getLHS(); in simplifyAdd()
574 secondExpr = rBinOpExpr.getLHS(); in simplifyAdd()
589 return lBin.getLHS() + rhs + lrhs; in simplifyAdd()
602 auto lrhs = rBinOpExpr.getLHS(); in simplifyAdd()
615 llrhs = lrhsBinOpExpr.getLHS(); in simplifyAdd()
630 llrhs = lrBinOpExpr.getLHS(); in simplifyAdd()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DRedundantBranchConditionCheck.cpp121 dyn_cast<DeclRefExpr>(BinOpCond->getLHS()->IgnoreParenImpCasts()); in check()
125 OtherSide = BinOpCond->getLHS(); in check()
163 dyn_cast<DeclRefExpr>(CondOp->getLHS()->IgnoreParenImpCasts()); in check()
168 CondOp->getLHS()->getBeginLoc(), BeforeRHS)); in check()
171 Lexer::findNextToken(CondOp->getLHS()->getEndLoc(), in check()
H A DMisplacedPointerArithmeticInAllocCheck.cpp65 const Expr *AllocExpr = PtrArith->getLHS()->IgnoreParenCasts(); in check()
88 const SourceRange OldRParen = SourceRange(PtrArith->getLHS()->getEndLoc()); in check()
H A DImplicitWideningOfMultiplicationResultCheck.cpp35 return BO->getLHS()->IgnoreParens(); in getLHSOfMulBinOp()
157 PointerExpr = BO->getLHS(); in handlePointerOffsetting()
160 PointerExpr = ASE->getLHS(); in handlePointerOffsetting()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DRangedConstraintManager.cpp41 return assumeSymRel(State, SIE->getLHS(), op, SIE->getRHS()); in assumeSym()
54 if (Loc::isLocType(SSE->getLHS()->getType()) && in assumeSym()
66 SymMgr.getSymSymExpr(SSE->getRHS(), BO_Sub, SSE->getLHS(), DiffTy); in assumeSym()
80 SymMgr.getSymSymExpr(SSE->getLHS(), BO_EQ, SSE->getRHS(), ExprType); in assumeSym()
223 Sym = SE->getLHS(); in computeAdjustment()
H A DSimpleSValBuilder.cpp265 return std::make_pair(SymInt->getLHS(), in decomposeSymbol()
627 return makeNonLoc(symIntExpr->getLHS(), opc, in evalBinOpNN()
669 lhs = nonloc::SymbolVal(symIntExpr->getLHS()); in evalBinOpNN()
1267 SVal LHS = getConstOrVisit(S->getLHS()); in simplifySValOnce()
1268 if (isUnchanged(S->getLHS(), LHS)) in simplifySValOnce()
1276 if (Loc::isLocType(S->getLHS()->getType()) && in simplifySValOnce()
1303 SVal LHS = SVB.makeIntVal(S->getLHS()); in simplifySValOnce()
1317 if (Loc::isLocType(S->getLHS()->getType()) != in simplifySValOnce()
1321 SVal LHS = getConstOrVisit(S->getLHS()); in simplifySValOnce()
1324 if (isUnchanged(S->getLHS(), LHS) && isUnchanged(S->getRHS(), RHS)) in simplifySValOnce()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/
H A DDurationFactoryScaleCheck.cpp173 const auto *IntLit = llvm::dyn_cast<IntegerLiteral>(MultBinOp->getLHS()); in check()
174 const auto *FloatLit = llvm::dyn_cast<FloatingLiteral>(MultBinOp->getLHS()); in check()
188 Remainder = MultBinOp->getLHS(); in check()
200 const Expr *Remainder = DivBinOp->getLHS(); in check()
H A DDurationComparisonCheck.cpp42 if (isInMacro(Result, Binop->getLHS()) || isInMacro(Result, Binop->getRHS())) in check()
45 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()); in check()
H A DTimeComparisonCheck.cpp39 if (isInMacro(Result, Binop->getLHS()) || isInMacro(Result, Binop->getRHS())) in check()
47 rewriteExprFromNumberToTime(Result, *Scale, Binop->getLHS()); in check()
H A DDurationAdditionCheck.cpp49 if (Call == Binop->getLHS()->IgnoreParenImpCasts()) { in check()
62 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()) + in check()
H A DTimeSubtractionCheck.cpp154 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + " - " + in check()
179 rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + in check()
191 "(" + rewriteExprFromNumberToTime(Result, *Scale, BinOp->getLHS()) + in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DMisplacedArrayIndexCheck.cpp45 ArraySubscriptE->getLHS()->getSourceRange(), *Result.Context); in check()
50 ArraySubscriptE->getLHS()->getSourceRange(), RText); in check()
H A DNonConstParameterCheck.cpp188 markCanNotBeConst(B->getLHS(), CanNotBeConst); in markCanNotBeConst()
191 markCanNotBeConst(B->getLHS(), false); in markCanNotBeConst()
194 const QualType T = B->getLHS()->getType(); in markCanNotBeConst()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaConcept.cpp41 LHS = BO->getLHS(); in LogicalBinOp()
57 const Expr *getLHS() const { return LHS; } in getLHS() function in __anon8ad849b10111::LogicalBinOp
71 return CheckConstraintExpression(BO.getLHS(), NextToken, in CheckConstraintExpression()
132 if (calculateConstraintSatisfaction(S, BO.getLHS(), Satisfaction, in calculateConstraintSatisfaction()
583 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
606 if (BO->getLHS()->getType()->isIntegerType() && in diagnoseWellFormedUnsatisfiedConstraintExpr()
610 BO->getLHS()->EvaluateAsInt(SimplifiedLHS, S.Context, in diagnoseWellFormedUnsatisfiedConstraintExpr()
728 if (substituteParameterMappings(S, N.getLHS(), Concept, TemplateArgs, in substituteParameterMappings()
807 auto LHS = fromConstraintExpr(S, D, BO.getLHS()); in fromConstraintExpr()
859 NormalForm LCNF = makeCNF(Normalized.getLHS()); in makeCNF()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Lanai/AsmParser/
H A DLanaiAsmParser.cpp244 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isHiImm16()
281 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16()
305 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16Signed()
356 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm21()
359 dyn_cast<MCSymbolRefExpr>(BinaryExpr->getLHS())) in isLoImm21()
481 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm16Operands()
482 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addLoImm16Operands()
512 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addHiImm16Operands()
513 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addHiImm16Operands()
552 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addLoImm21Operands()
[all …]
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSMTConstraintManager.h172 LHS = getSymVal(State, SIE->getLHS()); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
175 LHS = &ISE->getLHS(); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
179 LHS = getSymVal(State, SSM->getLHS()); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
279 return canReasonAbout(SVB.makeSymbolVal(SIE->getLHS())); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
285 return canReasonAbout(SVB.makeSymbolVal(SSE->getLHS())) && in REGISTER_TRAIT_WITH_PROGRAMSTATE()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransZeroOutPropsInDealloc.cpp160 return isZeroingPropIvar(BOE->getLHS()) && in isZeroingPropIvar()
166 Expr *LHS = BOE->getLHS(); in isZeroingPropIvar()
196 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); in isZeroingPropIvar()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSemaConcept.h105 NormalizedConstraint(C, Other.getLHS()), in NormalizedConstraint()
130 NormalizedConstraint &getLHS() const { in getLHS() function
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.cpp326 return {Op->getLHS()->IgnoreParenImpCasts(), in getOperands()
444 return areEquivalentExpr(Node.getLHS(), Node.getRHS()); in AST_MATCHER()
730 const auto *LhsBinOp = dyn_cast<BinaryOperator>(BinOp->getLHS()); in areSidesBinaryConstExpressions()
740 if ((IsIntegerConstantExpr(LhsBinOp->getLHS()) || in areSidesBinaryConstExpressions()
742 (IsIntegerConstantExpr(RhsBinOp->getLHS()) || in areSidesBinaryConstExpressions()
762 const auto *BinOpLhs = cast<BinaryOperator>(BinOp->getLHS()); in retrieveConstExprFromBothSides()
769 LhsConst = IsIntegerConstantExpr(BinOpLhs->getLHS()) ? BinOpLhs->getLHS() in retrieveConstExprFromBothSides()
771 RhsConst = IsIntegerConstantExpr(BinOpRhs->getLHS()) ? BinOpRhs->getLHS() in retrieveConstExprFromBothSides()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DPopulateSwitch.cpp159 if (auto *DRE = dyn_cast<DeclRefExpr>(CS->getLHS()->IgnoreParenCasts())) { in REGISTER_TWEAK()
173 const ConstantExpr *CE = dyn_cast<ConstantExpr>(CS->getLHS()); in REGISTER_TWEAK()

12345678910