Home
last modified time | relevance | path

Searched refs:EvaluateKnownConstInt (Results 1 – 25 of 45) sorted by relevance

12

/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp93 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
98 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp94 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
99 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
/external/clang/lib/CodeGen/
DCGLoopInfo.cpp164 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
DCGStmt.cpp1105 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/
DCGStmt.cpp1284 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()
DCGLoopInfo.cpp610 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
DTargetInfo.cpp7125 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/
DSemaStmt.cpp853 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()
DSemaInit.cpp2426 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()
DSemaOpenMP.cpp5718 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/
DExprConstant.cpp3511 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/
DSemaStmt.cpp985 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()
DSemaInit.cpp2814 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/
DExprEngineC.cpp779 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
DExprEngine.cpp1830 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch()
1836 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
DBugReporter.cpp689 os << LHS->EvaluateKnownConstInt(PDB.getASTContext()); in GenerateMinimalPathDiagnostic()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp908 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
DExprEngine.cpp2467 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch()
2473 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
DBugReporter.cpp784 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
/external/llvm-project/clang/lib/AST/
DStmt.cpp995 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
DExprConstant.cpp4944 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/
DCFG.cpp3193 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/
DExpr.h626 llvm::APSInt EvaluateKnownConstInt(const ASTContext &Ctx,
3475 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
/external/llvm-project/clang/include/clang/AST/
DExpr.h681 llvm::APSInt EvaluateKnownConstInt(
4370 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
/external/llvm-project/clang/lib/Analysis/
DCFG.cpp4167 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase()
4177 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()

12