Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DMallocOverflowSecurityChecker.cpp93 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
98 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp1350 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 DCGLoopInfo.cpp631 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
H A DTargetInfo.cpp7187 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 DCGExprScalar.cpp2943 return Builder.getInt(E->EvaluateKnownConstInt(CGF.getContext())); in VisitUnaryExprOrTypeTraitExpr()
H A DCGDebugInfo.cpp1923 templateType->getDefaultArgument()->EvaluateKnownConstInt( in CollectTemplateParams()
H A DCGOpenMPRuntime.cpp11883 ? (*NI)->EvaluateKnownConstInt(C) in emitDeclareSimdFunction()
11940 VLENVal = VLENExpr->EvaluateKnownConstInt(C); in emitDeclareSimdFunction()
H A DCGBuiltin.cpp2974 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 DCGStmtOpenMP.cpp2602 FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaConcept.cpp544 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
555 BO->getRHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
H A DSemaStmt.cpp1265 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 DSemaInit.cpp2843 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 DSemaOverload.cpp1939 From->EvaluateKnownConstInt(S.getASTContext()) == 0) { in IsStandardConversion()
1944 (From->EvaluateKnownConstInt(S.getASTContext()) == 0)) { in IsStandardConversion()
H A DSemaOpenMP.cpp9960 Hint = E->EvaluateKnownConstInt(Context); in ActOnOpenMPCriticalDirective()
9979 << toString(C->getHint()->EvaluateKnownConstInt(Context), in ActOnOpenMPCriticalDirective()
18191 TotalDepCount = OrderedCountExpr->EvaluateKnownConstInt(Context); in ActOnOpenMPDependClause()
H A DSemaChecking.cpp1718 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 DExprEngineC.cpp899 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
H A DExprEngine.cpp2474 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch()
2480 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
H A DBugReporter.cpp784 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DStmt.cpp1001 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
H A DExprConstant.cpp4952 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 DDecl.cpp4157 return getBitWidth()->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
H A DExpr.cpp3867 if (EvaluateKnownConstInt(Ctx) != 0) in isNullPointerConstant()
H A DItaniumMangle.cpp4568 llvm::APSInt V = SAE->EvaluateKnownConstInt(Context.getASTContext()); in mangleExpression()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp4174 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 DExpr.h679 llvm::APSInt EvaluateKnownConstInt(
4439 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()

12