| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | MallocOverflowSecurityChecker.cpp | 93 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument() 98 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGStmt.cpp | 1350 llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1351 llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1450 Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1504 Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1750 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 | 7187 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes() 7196 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes() 9173 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes() 9176 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes() 9203 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setTargetAttributes() 9205 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
|
| H A D | CGExprScalar.cpp | 2943 return Builder.getInt(E->EvaluateKnownConstInt(CGF.getContext())); in VisitUnaryExprOrTypeTraitExpr()
|
| H A D | CGDebugInfo.cpp | 1923 templateType->getDefaultArgument()->EvaluateKnownConstInt( in CollectTemplateParams()
|
| H A D | CGOpenMPRuntime.cpp | 11883 ? (*NI)->EvaluateKnownConstInt(C) in emitDeclareSimdFunction() 11940 VLENVal = VLENExpr->EvaluateKnownConstInt(C); in emitDeclareSimdFunction()
|
| H A D | CGBuiltin.cpp | 2974 E->getArg(1)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr() 3369 E->getArg(2)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr() 9695 E->getArg(0)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitAArch64BuiltinExpr()
|
| H A D | CGStmtOpenMP.cpp | 2602 FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaConcept.cpp | 544 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr() 555 BO->getRHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
|
| H A D | SemaStmt.cpp | 1265 llvm::APSInt LoVal = LoBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1368 llvm::APSInt HiVal = HiBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1501 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1546 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1605 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
|
| H A D | SemaInit.cpp | 2843 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2849 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 2851 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 5593 (Initializer->EvaluateKnownConstInt(S.getASTContext()) == 0); in IsZeroInitializer()
|
| H A D | SemaOverload.cpp | 1939 From->EvaluateKnownConstInt(S.getASTContext()) == 0) { in IsStandardConversion() 1944 (From->EvaluateKnownConstInt(S.getASTContext()) == 0)) { in IsStandardConversion()
|
| H A D | SemaOpenMP.cpp | 9960 Hint = E->EvaluateKnownConstInt(Context); in ActOnOpenMPCriticalDirective() 9979 << toString(C->getHint()->EvaluateKnownConstInt(Context), in ActOnOpenMPCriticalDirective() 18191 TotalDepCount = OrderedCountExpr->EvaluateKnownConstInt(Context); in ActOnOpenMPDependClause()
|
| H A D | SemaChecking.cpp | 1718 if (!SizeOp->EvaluateKnownConstInt(Context).isNullValue()) { in CheckBuiltinFunctionCall() 6715 llvm::APSInt Result = Arg->EvaluateKnownConstInt(Context); in SemaBuiltinAllocaWithAlign()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngineC.cpp | 899 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
|
| H A D | ExprEngine.cpp | 2474 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch() 2480 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
|
| H A D | BugReporter.cpp | 784 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/AST/ |
| H A D | Stmt.cpp | 1001 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
| H A D | ExprConstant.cpp | 4952 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch() 4953 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch() 11533 E->getArg(1)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 11719 int Operand = E->getArg(0)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 14992 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt() function in Expr 15357 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 15361 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 15389 (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0)) in CheckICE() 15444 Exp->getCommon()->EvaluateKnownConstInt(Ctx) != 0) return NoDiag(); in CheckICE() 15475 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) in CheckICE()
|
| H A D | Decl.cpp | 4157 return getBitWidth()->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
|
| H A D | Expr.cpp | 3867 if (EvaluateKnownConstInt(Ctx) != 0) in isNullPointerConstant()
|
| H A D | ItaniumMangle.cpp | 4568 llvm::APSInt V = SAE->EvaluateKnownConstInt(Context.getASTContext()); in mangleExpression()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CFG.cpp | 4174 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase() 4184 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Expr.h | 679 llvm::APSInt EvaluateKnownConstInt( 4439 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
|