| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MallocOverflowSecurityChecker.cpp | 94 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument() 99 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 1411 llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1412 llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1511 Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1580 Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1832 if (CS->getLHS()->EvaluateKnownConstInt(C) == ConstantCondValue) in FindCaseStatementsForValue()
|
| H A D | CGLoopInfo.cpp | 631 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
|
| H A D | TargetInfo.cpp | 7339 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes() 7348 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes() 9367 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes() 9370 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes() 9397 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setFunctionDeclAttributes() 9399 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
|
| H A D | CGDecl.cpp | 2703 Alignment->EvaluateKnownConstInt(getContext()).getExtValue(); in getOMPAllocateAlignment()
|
| H A D | CGStmtOpenMP.cpp | 2709 Factor = FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective() 2738 FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective()
|
| H A D | CGExprScalar.cpp | 3006 return Builder.getInt(E->EvaluateKnownConstInt(CGF.getContext())); in VisitUnaryExprOrTypeTraitExpr()
|
| H A D | CGBuiltin.cpp | 2905 E->getArg(1)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr() 3433 E->getArg(2)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr() 3517 E->getArg(2)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr() 9914 E->getArg(0)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitAArch64BuiltinExpr()
|
| H A D | CGDebugInfo.cpp | 2017 templateType->getDefaultArgument()->EvaluateKnownConstInt( in CollectTemplateParams()
|
| H A D | CGOpenMPRuntime.cpp | 11846 ? (*NI)->EvaluateKnownConstInt(C) in emitDeclareSimdFunction() 11928 VLENVal = VLENExpr->EvaluateKnownConstInt(C); in emitDeclareSimdFunction()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaConcept.cpp | 583 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr() 594 BO->getRHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
|
| H A D | SemaStmt.cpp | 1302 llvm::APSInt LoVal = LoBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1405 llvm::APSInt HiVal = HiBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1538 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1583 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1642 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
|
| H A D | SemaInit.cpp | 2871 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2877 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2879 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 5621 (Initializer->EvaluateKnownConstInt(S.getASTContext()) == 0); in IsZeroInitializer()
|
| H A D | SemaChecking.cpp | 2278 if (!SizeOp->EvaluateKnownConstInt(Context).isZero()) { in CheckBuiltinFunctionCall() 2291 if (!SizeOp->EvaluateKnownConstInt(Context).isZero()) in CheckBuiltinFunctionCall() 7626 llvm::APSInt Result = Arg->EvaluateKnownConstInt(Context); in SemaBuiltinAllocaWithAlign()
|
| H A D | SemaOverload.cpp | 1940 From->EvaluateKnownConstInt(S.getASTContext()) == 0) { in IsStandardConversion() 1945 (From->EvaluateKnownConstInt(S.getASTContext()) == 0)) { in IsStandardConversion()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineC.cpp | 902 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
|
| H A D | ExprEngine.cpp | 2658 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch() 2664 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
|
| H A D | BugReporter.cpp | 787 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 5005 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch() 5006 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch() 11797 E->getArg(1)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 11983 int Operand = E->getArg(0)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 15226 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt() function in Expr 15591 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 15595 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 15623 (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0)) in CheckICE() 15678 Exp->getCommon()->EvaluateKnownConstInt(Ctx) != 0) return NoDiag(); in CheckICE() 15709 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) in CheckICE()
|
| H A D | Stmt.cpp | 1007 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
| H A D | Decl.cpp | 4283 return getBitWidth()->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
|
| H A D | Expr.cpp | 3893 if (EvaluateKnownConstInt(Ctx) != 0) in isNullPointerConstant()
|
| H A D | ItaniumMangle.cpp | 4638 llvm::APSInt V = SAE->EvaluateKnownConstInt(Context.getASTContext()); in mangleExpression()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CFG.cpp | 4385 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase() 4395 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Expr.h | 685 llvm::APSInt EvaluateKnownConstInt( 4450 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
|