Home
last modified time | relevance | path

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

/external/clang/lib/StaticAnalyzer/Checkers/
DMallocOverflowSecurityChecker.cpp94 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
99 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
/external/clang/lib/CodeGen/
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()
DCGLoopInfo.cpp164 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
DCGOpenMPRuntime.cpp6443 (*NI) ? (*NI)->EvaluateKnownConstInt(C) in emitDeclareSimdFunction()
6481 VLENVal = VLEN->EvaluateKnownConstInt(C); in emitDeclareSimdFunction()
DTargetInfo.cpp5747 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
5756 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
DCGExprScalar.cpp2033 return Builder.getInt(E->EvaluateKnownConstInt(CGF.getContext())); in VisitUnaryExprOrTypeTraitExpr()
DCGBuiltin.cpp755 E->getArg(1)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr()
/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()
DSemaOverload.cpp1738 From->EvaluateKnownConstInt(S.getASTContext()) == 0) { in IsStandardConversion()
DSemaExpr.cpp12709 *Result = E->EvaluateKnownConstInt(Context); in VerifyIntegerConstantExpression()
/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()
DDecl.cpp3471 return BitWidth->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
DItaniumMangle.cpp3541 llvm::APSInt V = SAE->EvaluateKnownConstInt(Context.getASTContext()); in mangleExpression()
DExpr.cpp3240 if (EvaluateKnownConstInt(Ctx) != 0) in isNullPointerConstant()
/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/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/clang/include/clang/Sema/
DSema.h8985 !!Condition.get()->EvaluateKnownConstInt(S.Context)) {} in ConditionResult()