Home
last modified time | relevance | path

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

12345678910>>...16

/external/llvm-project/mlir/lib/Dialect/SDBM/
DSDBMExpr.cpp113 !storage->subExprs[0].match(bin.getLHS())) { in match()
155 visit(expr.getLHS()); in print()
160 visit(expr.getLHS()); in print()
167 SDBMDirectExpr lhs = expr.getLHS(); in print()
219 if (auto term = expr.getLHS().dyn_cast<SDBMTermExpr>()) in visitDiff()
222 auto sum = expr.getLHS().cast<SDBMSumExpr>(); in visitDiff()
225 sum.getLHS()); in visitDiff()
242 lhs = lhsSum.getLHS(); in get()
252 SDBMTermExpr SDBMSumExpr::getLHS() const { in getLHS() function in SDBMSumExpr
263 AffineExpr lhs = visit(expr.getLHS()), rhs = visit(expr.getRHS()); in getAsAffineExpr()
[all …]
DSDBM.cpp106 auto lhs = visit(diffExpr.getLHS()); in visitDiff()
163 auto lhs = visit(expr.getLHS()); in visitSum()
252 auto lhs = diffExpr.getLHS(); in get()
322 SDBMBuilderResult update = builder.visit(stripe.getLHS()); in get()
381 SDBMDirectExpr var = stripe.getLHS(); in convertDBMElement()
387 SDBMDirectExpr var = stripe.getLHS(); in convertDBMElement()
/external/llvm-project/mlir/lib/IR/
DAffineExpr.cpp85 auto lhs = binOp.getLHS(), rhs = binOp.getRHS(); in replaceDimsAndSymbols()
118 auto lhs = binOp.getLHS(), rhs = binOp.getRHS(); in replace()
151 return expr.getLHS().isSymbolicOrConstant() && in isSymbolicOrConstant()
168 return op.getLHS().isPureAffine() && op.getRHS().isPureAffine(); in isPureAffine()
175 return op.getLHS().isPureAffine() && op.getRHS().isPureAffine() && in isPureAffine()
176 (op.getLHS().template isa<AffineConstantExpr>() || in isPureAffine()
183 return op.getLHS().isPureAffine() && in isPureAffine()
202 return binExpr.getLHS().getLargestKnownDivisor() * in getLargestKnownDivisor()
212 binExpr.getLHS().getLargestKnownDivisor(), in getLargestKnownDivisor()
234 return (l = binExpr.getLHS().getLargestKnownDivisor()) % factor == 0 || in isMultipleOf()
[all …]
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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().getAsString() << "'."; 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().getAsString() in checkPostStmt()
167 Ex = B->getLHS(); in checkPostStmt()
DConversionChecker.cpp84 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
87 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
96 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
DMallocOverflowSecurityChecker.cpp89 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
198 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
211 const Expr *lhs = AssignEx->getLHS(); in CheckAssignmentExpr()
229 const Expr * lhs = E->getLHS(); in VisitBinaryOperator()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DRedundantBranchConditionCheck.cpp95 dyn_cast<DeclRefExpr>(BinOpCond->getLHS()->IgnoreParenImpCasts()); in check()
99 OtherSide = BinOpCond->getLHS(); in check()
137 dyn_cast<DeclRefExpr>(CondOp->getLHS()->IgnoreParenImpCasts()); in check()
142 CondOp->getLHS()->getBeginLoc(), BeforeRHS)); in check()
145 Lexer::findNextToken(CondOp->getLHS()->getEndLoc(), in check()
/external/llvm-project/mlir/unittests/SDBM/
DSDBMTest.cpp49 EXPECT_EQ(sumExpr.getLHS(), dim(0)); in TEST()
67 EXPECT_EQ(diffExpr.getLHS(), dim(0)); in TEST()
114 EXPECT_EQ(diffExpr.getLHS(), dim(0)); in TEST()
138 auto lhs = diffOfSums.getLHS().dyn_cast<SDBMSumExpr>(); in TEST()
140 EXPECT_EQ(lhs.getLHS(), dim(0)); in TEST()
176 EXPECT_EQ(stripeExpr.getLHS(), dim(0)); in TEST()
282 EXPECT_EQ(expr.getLHS(), var); in TEST()
334 EXPECT_EQ(expr.getLHS(), var); in TEST()
337 EXPECT_EQ(expr2.getLHS(), stripe); in TEST()
357 EXPECT_EQ(expr.getLHS(), var); in TEST()
[all …]
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DRangedConstraintManager.cpp39 return assumeSymRel(State, SIE->getLHS(), op, SIE->getRHS()); in assumeSym()
47 if (Loc::isLocType(SSE->getLHS()->getType()) && in assumeSym()
59 SymMgr.getSymSymExpr(SSE->getRHS(), BO_Sub, SSE->getLHS(), DiffTy); in assumeSym()
73 SymMgr.getSymSymExpr(SSE->getLHS(), BO_EQ, SSE->getRHS(), ExprType); in assumeSym()
210 Sym = SE->getLHS(); in computeAdjustment()
/external/clang/lib/StaticAnalyzer/Core/
DSymbolManager.cpp32 getLHS()->dumpToStream(os); in dumpToStream()
41 os << getLHS().getZExtValue(); in dumpToStream()
42 if (getLHS().isUnsigned()) in dumpToStream()
53 getLHS()->dumpToStream(os); in dumpToStream()
128 itr.push_back(cast<SymIntExpr>(SE)->getLHS()); in expand()
135 itr.push_back(x->getLHS()); in expand()
480 KnownLive = isLive(cast<SymIntExpr>(sym)->getLHS()); in isLive()
486 KnownLive = isLive(cast<SymSymExpr>(sym)->getLHS()) && in isLive()
DSimpleConstraintManager.cpp55 if (Loc::isLocType(SSE->getLHS()->getType())) { in canReasonAbout()
148 return assumeSymRel(state, SE->getLHS(), op, SE->getRHS()); in assumeAux()
163 assert(Loc::isLocType(SSE->getLHS()->getType())); in assumeAux()
167 SSE->getLHS(), DiffTy); in assumeAux()
234 Sym = SE->getLHS(); in computeAdjustment()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
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()
DDurationComparisonCheck.cpp42 if (isInMacro(Result, Binop->getLHS()) || isInMacro(Result, Binop->getRHS())) in check()
45 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()); in check()
DTimeComparisonCheck.cpp39 if (isInMacro(Result, Binop->getLHS()) || isInMacro(Result, Binop->getRHS())) in check()
47 rewriteExprFromNumberToTime(Result, *Scale, Binop->getLHS()); in check()
DDurationAdditionCheck.cpp49 if (Call == Binop->getLHS()->IgnoreParenImpCasts()) { in check()
62 rewriteExprFromNumberToDuration(Result, *Scale, Binop->getLHS()) + in check()
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()
/external/llvm-project/clang/lib/Sema/
DSemaConcept.cpp41 LHS = BO->getLHS(); in LogicalBinOp()
54 const Expr *getLHS() const { return LHS; } in getLHS() function in __anon4fcb15710111::LogicalBinOp
68 return CheckConstraintExpression(BO.getLHS(), NextToken, in CheckConstraintExpression()
129 if (calculateConstraintSatisfaction(S, BO.getLHS(), Satisfaction, in calculateConstraintSatisfaction()
521 diagnoseWellFormedUnsatisfiedConstraintExpr(S, BO->getLHS(), First); in diagnoseWellFormedUnsatisfiedConstraintExpr()
527 BO->getLHS()->EvaluateAsBooleanCondition(LHSSatisfied, S.Context); in diagnoseWellFormedUnsatisfiedConstraintExpr()
534 diagnoseWellFormedUnsatisfiedConstraintExpr(S, BO->getLHS(), First); in diagnoseWellFormedUnsatisfiedConstraintExpr()
549 if (BO->getLHS()->getType()->isIntegerType() && in diagnoseWellFormedUnsatisfiedConstraintExpr()
553 BO->getLHS()->EvaluateAsInt(SimplifiedLHS, S.Context); in diagnoseWellFormedUnsatisfiedConstraintExpr()
667 if (substituteParameterMappings(S, N.getLHS(), Concept, TemplateArgs, in substituteParameterMappings()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DMisplacedArrayIndexCheck.cpp46 ArraySubscriptE->getLHS()->getSourceRange(), *Result.Context); in check()
51 ArraySubscriptE->getLHS()->getSourceRange(), RText); in check()
/external/clang/lib/StaticAnalyzer/Checkers/
DUndefinedAssignmentChecker.cpp66 if (state->getSVal(B->getLHS(), C.getLocationContext()).isUndef()) { in checkBind()
69 ex = B->getLHS(); in checkBind()
DUndefResultChecker.cpp66 if (state->getSVal(B->getLHS(), LCtx).isUndef()) { in checkPostStmt()
67 Ex = B->getLHS()->IgnoreParenCasts(); in checkPostStmt()
DMallocOverflowSecurityChecker.cpp90 const Expr *lhs = binop->getLHS(); in CheckMallocArgument()
196 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr()
209 const Expr *lhs = AssignEx->getLHS(); in CheckAssignmentExpr()
227 const Expr * lhs = E->getLHS(); in VisitBinaryOperator()
/external/llvm-project/llvm/lib/Target/Lanai/AsmParser/
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()
551 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm21Operands()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/AsmParser/
DLanaiAsmParser.cpp242 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isHiImm16()
279 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16()
303 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16Signed()
354 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm21()
357 dyn_cast<MCSymbolRefExpr>(BinaryExpr->getLHS())) in isLoImm21()
479 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm16Operands()
480 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addLoImm16Operands()
510 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addHiImm16Operands()
511 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addHiImm16Operands()
549 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm21Operands()
[all …]
/external/llvm-project/mlir/include/mlir/Dialect/SDBM/
DSDBMExpr.h246 SDBMTermExpr getLHS() const;
267 SDBMDirectExpr getLHS() const;
285 SDBMDirectExpr getLHS() const;
446 walk<isPreorder>(sumExpr.getLHS()); in walk()
449 walk<isPreorder>(diffExpr.getLHS()); in walk()
452 walk<isPreorder>(stripeExpr.getLHS()); in walk()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
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()

12345678910>>...16