Home
last modified time | relevance | path

Searched refs:getRHS (Results 1 – 25 of 71) sorted by relevance

123

/external/clang/lib/StaticAnalyzer/Checkers/
DDivZeroChecker.cpp41 if (!B->getRHS()->getType()->isIntegerType() || in checkPreStmt()
42 !B->getRHS()->getType()->isScalarType()) in checkPreStmt()
45 SVal Denom = C.getState()->getSVal(B->getRHS()); in checkPreStmt()
DFixedAddressChecker.cpp49 SVal RV = state->getSVal(B->getRHS()); in checkPreStmt()
61 R->addRange(B->getRHS()->getSourceRange()); in checkPreStmt()
DDeadStoresChecker.cpp166 Expr* RHS = B->getRHS()->IgnoreParenCasts(); in isIncrement()
178 if ((DR = dyn_cast<DeclRefExpr>(BRHS->getRHS()->IgnoreParenCasts()))) in isIncrement()
206 if (B->getRHS()->isNullPointerConstant(Ctx, in ObserveStmt()
211 Expr* RHS = B->getRHS()->IgnoreParenCasts(); in ObserveStmt()
223 CheckVarDecl(VD, DR, B->getRHS(), dsk, AD, Live); in ObserveStmt()
DUndefResultChecker.cpp57 else if (state->getSVal(B->getRHS()).isUndef()) { in checkPostStmt()
58 Ex = B->getRHS()->IgnoreParenCasts(); in checkPostStmt()
DIdempotentOperationChecker.cpp131 const Expr *RHS = B->getRHS(); in checkPreStmt()
419 const Expr *RHS = i->first->getRHS(); in checkEndAnalysis()
420 report->addRange(i->first->getRHS()->getSourceRange()); in checkEndAnalysis()
672 return CanVary(B->getRHS(), AC) in CanVary()
DPointerArithChecker.cpp41 SVal RV = state->getSVal(B->getRHS()); in checkPreStmt()
DPointerSubChecker.cpp44 SVal RV = state->getSVal(B->getRHS()); in checkPreStmt()
DUndefinedAssignmentChecker.cpp65 ex = B->getRHS(); in checkBind()
/external/llvm/lib/MC/
DMCExpr.cpp98 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print()
127 if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) { in print()
128 OS << *BE.getRHS(); in print()
130 OS << '(' << *BE.getRHS() << ')'; in print()
505 !ABE->getRHS()->EvaluateAsRelocatableImpl(RHSValue, Asm, Layout, in EvaluateAsRelocatableImpl()
590 const MCSection *RHS_S = BE->getRHS()->FindAssociatedSection(); in FindAssociatedSection()
/external/clang/lib/StaticAnalyzer/Core/
DSimpleConstraintManager.cpp190 return assumeSymRel(state, SE->getLHS(), op, SE->getRHS()); in assumeAux()
243 Adjustment = SE->getRHS(); in assumeSymRel()
246 Adjustment = -SE->getRHS(); in assumeSymRel()
DSymbolManager.cpp56 os << ' ' << getRHS().getZExtValue(); in dumpToStream()
57 if (getRHS().isUnsigned()) os << 'U'; in dumpToStream()
65 getRHS()->dumpToStream(os); in dumpToStream()
/external/clang/lib/Sema/
DSemaChecking.cpp2136 if (!Base->getType()->isPointerType()) Base = B->getRHS(); in EvalAddr()
2156 if (C->getRHS()->getType()->isVoidType()) in EvalAddr()
2159 return EvalAddr(C->getRHS(), refVars); in EvalAddr()
2298 return EvalVal(C->getRHS(), refVars); in EvalVal()
2605 return GetExprRange(C, BO->getRHS(), MaxWidth); in GetExprRange()
2616 GetExprRange(C, BO->getRHS(), MaxWidth)); in GetExprRange()
2642 if (BO->getRHS()->isIntegerConstantExpr(shift, C) && in GetExprRange()
2656 return GetExprRange(C, BO->getRHS(), MaxWidth); in GetExprRange()
2673 if (BO->getRHS()->isIntegerConstantExpr(divisor, C)) { in GetExprRange()
2683 IntRange R = GetExprRange(C, BO->getRHS(), opWidth); in GetExprRange()
[all …]
/external/clang/lib/ARCMigrate/
DTransZeroOutPropsInDealloc.cpp146 isZeroingPropIvar(BOE->getRHS()); in isZeroingPropIvar()
183 Expr *RHS = BOE->getRHS(); in isZeroingPropIvar()
/external/clang/lib/Analysis/
DReachableCode.cpp68 R2 = BO->getRHS()->getSourceRange(); in GetUnreachableLoc()
79 R2 = CAO->getRHS()->getSourceRange(); in GetUnreachableLoc()
96 R2 = ASE->getRHS()->getSourceRange(); in GetUnreachableLoc()
/external/clang/lib/CodeGen/
DCodeGenFunction.cpp524 return EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
529 if (ConstantFoldsToSimpleInteger(CondBOp->getRHS(), ConstantBool) && in EmitBranchOnBoolExpr()
545 EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
558 return EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
563 if (ConstantFoldsToSimpleInteger(CondBOp->getRHS(), ConstantBool) && in EmitBranchOnBoolExpr()
579 EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
611 EmitBranchOnBoolExpr(CondOp->getRHS(), TrueBlock, FalseBlock); in EmitBranchOnBoolExpr()
DCGExprAgg.cpp393 Visit(E->getRHS()); in VisitBinComma()
418 E->getRHS()->getType()) in VisitBinAssign()
424 E->getRHS()->HasSideEffects(CGF.getContext())) { in VisitBinAssign()
427 LValue RHS = CGF.EmitLValue(E->getRHS()); in VisitBinAssign()
446 Src = CGF.EmitReferenceBindingToExpr(E->getRHS(), 0); in VisitBinAssign()
448 AggValueSlot Slot = EnsureSlot(E->getRHS()->getType()); in VisitBinAssign()
449 CGF.EmitAggExpr(E->getRHS(), Slot); in VisitBinAssign()
461 CGF.EmitAggExpr(E->getRHS(), LHSSlot, false); in VisitBinAssign()
DCGExprComplex.cpp573 Ops.RHS = Visit(E->getRHS()); in EmitBinOps()
597 E->getRHS()->getType())); in EmitCompoundAssignLValue()
598 OpInfo.RHS = Visit(E->getRHS()); in EmitCompoundAssignLValue()
645 E->getRHS()->getType()) && in EmitBinAssignLValue()
651 Val = Visit(E->getRHS()); in EmitBinAssignLValue()
683 return Visit(E->getRHS()); in VisitBinComma()
DCGExprScalar.cpp1602 Result.RHS = Visit(E->getRHS()); in EmitBinOps()
1628 OpInfo.RHS = Visit(E->getRHS()); in EmitCompoundAssignLValue()
1851 Expr *indexOperand = expr->getRHS(); in emitPointerArithmetic()
2116 Value *RHS = CGF.EmitScalarExpr(E->getRHS()); in EmitCompare()
2121 Value *RHS = Visit(E->getRHS()); in EmitCompare()
2208 CodeGenFunction::ComplexPairTy RHS = CGF.EmitComplexExpr(E->getRHS()); in EmitCompare()
2255 RHS = Visit(E->getRHS()); in VisitBinAssign()
2265 RHS = Visit(E->getRHS()); in VisitBinAssign()
2306 Value *RHSCond = CGF.EvaluateExprAsBool(E->getRHS()); in VisitBinLAnd()
2312 if (!CGF.ContainsLabel(E->getRHS())) in VisitBinLAnd()
[all …]
/external/llvm/lib/Target/ARM/
DARMMCExpr.cpp57 AddValueSymbols_(BE->getRHS(), Asm); in AddValueSymbols_()
/external/clang/lib/AST/
DExprConstant.cpp309 { return Visit(E->getLHS()) || Visit(E->getRHS()); } in VisitArraySubscriptExpr()
316 { return Visit(E->getLHS()) || Visit(E->getRHS()); } in VisitBinaryOperator()
622 const Expr *IExp = E->getRHS(); in VisitBinaryOperator()
1317 if (!Visit(E->getRHS())) in VisitBinaryOperator()
1339 if (HandleConversionToBool(E->getRHS(), rhsResult, Info)) { in VisitBinaryOperator()
1346 if (HandleConversionToBool(E->getRHS(), rhsResult, Info)) { in VisitBinaryOperator()
1364 QualType RHSTy = E->getRHS()->getType(); in VisitBinaryOperator()
1373 if (!EvaluateComplex(E->getRHS(), RHS, Info)) in VisitBinaryOperator()
1412 if (!EvaluateFloat(E->getRHS(), RHS, Info)) in VisitBinaryOperator()
1448 if (!EvaluatePointer(E->getRHS(), RHSValue, Info)) in VisitBinaryOperator()
[all …]
DStmtPrinter.cpp153 if (Node->getRHS()) { in VisitCaseStmt()
155 PrintExpr(Node->getRHS()); in VisitCaseStmt()
808 PrintExpr(Node->getRHS()); in VisitArraySubscriptExpr()
873 PrintExpr(Node->getRHS()); in VisitBinaryOperator()
878 PrintExpr(Node->getRHS()); in VisitCompoundAssignOperator()
885 PrintExpr(Node->getRHS()); in VisitConditionalOperator()
912 PrintExpr(Node->getRHS()); in VisitChooseExpr()
DExpr.cpp78 BO->getRHS()->isKnownToHaveBooleanValue(); in isKnownToHaveBooleanValue()
82 return BO->getRHS()->isKnownToHaveBooleanValue(); in isKnownToHaveBooleanValue()
778 CEE = BO->getRHS()->IgnoreParenCasts(); in getCalleeDecl()
1473 dyn_cast<IntegerLiteral>(BO->getRHS()->IgnoreParens())) in isUnusedResultAWarning()
1476 return BO->getRHS()->isUnusedResultAWarning(Loc, R1, R2, Ctx); in isUnusedResultAWarning()
1481 !BO->getRHS()->isUnusedResultAWarning(Loc, R1, R2, Ctx)) in isUnusedResultAWarning()
1489 R2 = BO->getRHS()->getSourceRange(); in isUnusedResultAWarning()
1501 if (!Exp->getRHS()->isUnusedResultAWarning(Loc, R1, R2, Ctx)) in isUnusedResultAWarning()
1525 R2 = cast<ArraySubscriptExpr>(this)->getRHS()->getSourceRange(); in isUnusedResultAWarning()
1711 QualType type = op->getRHS()->getType()->castAs<MemberPointerType>() in findBoundMemberType()
[all …]
DParentMap.cpp100 return BE->getOpcode()!=BO_Comma ||DirectChild==BE->getRHS(); in isConsumedExpr()
/external/clang/include/clang/AST/
DExpr.h1815 Expr *getRHS() { return cast<Expr>(SubExprs[RHS]); } in getRHS() function
1816 const Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); } in getRHS() function
1820 return cast<Expr>(getRHS()->getType()->isIntegerType() ? getLHS():getRHS()); in getBase()
1824 return cast<Expr>(getRHS()->getType()->isIntegerType() ? getLHS():getRHS()); in getBase()
1828 return cast<Expr>(getRHS()->getType()->isIntegerType() ? getRHS():getLHS()); in getIdx()
1832 return cast<Expr>(getRHS()->getType()->isIntegerType() ? getRHS():getLHS()); in getIdx()
2653 Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); } in getRHS() function
2657 return SourceRange(getLHS()->getLocStart(), getRHS()->getLocEnd()); in getSourceRange()
2878 Expr *getRHS() const { return cast<Expr>(SubExprs[RHS]); } in getRHS() function
2881 return SourceRange(getCond()->getLocStart(), getRHS()->getLocEnd()); in getSourceRange()
[all …]
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h264 const SCEV *getRHS() const { return RHS; } in getRHS() function
272 return getRHS()->getType(); in getType()

123