/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | MallocOverflowSecurityChecker.cpp | 93 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument() 98 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | MallocOverflowSecurityChecker.cpp | 94 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument() 99 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
|
/external/clang/lib/CodeGen/ |
D | CGLoopInfo.cpp | 164 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
|
D | CGStmt.cpp | 1105 llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1106 llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1198 Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1246 Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1447 if (CS->getLHS()->EvaluateKnownConstInt(C) == ConstantCondValue) in FindCaseStatementsForValue()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGStmt.cpp | 1284 llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1285 llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1384 Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1438 Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1684 if (CS->getLHS()->EvaluateKnownConstInt(C) == ConstantCondValue) in FindCaseStatementsForValue()
|
D | CGLoopInfo.cpp | 610 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
|
D | TargetInfo.cpp | 7125 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes() 7134 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes() 8991 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes() 8994 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes() 9017 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setTargetAttributes() 9019 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 853 LoVal = Lo->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 969 HiVal = Hi->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1109 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1137 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1196 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
|
D | SemaInit.cpp | 2426 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2432 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2434 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 4910 (Initializer->EvaluateKnownConstInt(S.getASTContext()) != 0)) in TryOCLZeroEventInitialization()
|
D | SemaOpenMP.cpp | 5718 Hint = E->EvaluateKnownConstInt(Context); in ActOnOpenMPCriticalDirective() 5737 << C->getHint()->EvaluateKnownConstInt(Context).toString( in ActOnOpenMPCriticalDirective() 10146 TotalDepCount = OrderedCountExpr->EvaluateKnownConstInt(Context); in ActOnOpenMPDependClause()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 3511 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch() 3512 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch() 6851 E->getArg(1)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitCallExpr() 6925 int Operand = E->getArg(0)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitCallExpr() 9262 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt() function in Expr 9585 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 9589 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 9617 (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0)) in CheckICE() 9671 Exp->getCommon()->EvaluateKnownConstInt(Ctx) != 0) return NoDiag(); in CheckICE() 9702 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) in CheckICE()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaStmt.cpp | 985 llvm::APSInt LoVal = LoBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1088 llvm::APSInt HiVal = HiBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1220 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1265 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1324 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
|
D | SemaInit.cpp | 2814 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2820 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2822 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 5522 (Initializer->EvaluateKnownConstInt(S.getASTContext()) == 0); in IsZeroInitializer()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineC.cpp | 779 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
|
D | ExprEngine.cpp | 1830 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch() 1836 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
|
D | BugReporter.cpp | 689 os << LHS->EvaluateKnownConstInt(PDB.getASTContext()); in GenerateMinimalPathDiagnostic()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngineC.cpp | 908 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
|
D | ExprEngine.cpp | 2467 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch() 2473 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
|
D | BugReporter.cpp | 784 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
|
/external/llvm-project/clang/lib/AST/ |
D | Stmt.cpp | 995 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
D | ExprConstant.cpp | 4944 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch() 4945 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch() 11472 E->getArg(1)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 11658 int Operand = E->getArg(0)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 14939 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt() function in Expr 15303 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 15307 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 15335 (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0)) in CheckICE() 15390 Exp->getCommon()->EvaluateKnownConstInt(Ctx) != 0) return NoDiag(); in CheckICE() 15421 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) in CheckICE()
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 3193 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase() 3203 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()
|
/external/clang/include/clang/AST/ |
D | Expr.h | 626 llvm::APSInt EvaluateKnownConstInt(const ASTContext &Ctx, 3475 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
|
/external/llvm-project/clang/include/clang/AST/ |
D | Expr.h | 681 llvm::APSInt EvaluateKnownConstInt( 4370 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
|
/external/llvm-project/clang/lib/Analysis/ |
D | CFG.cpp | 4167 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase() 4177 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()
|