/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | AMDGPU.cpp | 379 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes() 384 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes() 389 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes() 651 Min = FlatWGS->getMin()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUFlatWorkGroupSizeAttr() 652 Max = FlatWGS->getMax()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUFlatWorkGroupSizeAttr() 674 Attr->getMin()->EvaluateKnownConstInt(getContext()).getExtValue(); in handleAMDGPUWavesPerEUAttr() 677 ? Attr->getMax()->EvaluateKnownConstInt(getContext()).getExtValue() in handleAMDGPUWavesPerEUAttr()
|
H A D | NVPTX.cpp | 321 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(getContext()); in handleCUDALaunchBoundsAttr() 337 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(getContext()); in handleCUDALaunchBoundsAttr() 350 MaxBlocks = Attr->getMaxBlocks()->EvaluateKnownConstInt(getContext()); in handleCUDALaunchBoundsAttr()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | MallocOverflowSecurityChecker.cpp | 95 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument() 100 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | AttrImpl.cpp | 267 return alignmentExpr->EvaluateKnownConstInt(Ctx).getZExtValue() * in getAlignment()
|
H A D | TypePrinter.cpp | 2247 return llvm::APSInt::isSameValue(pattern_expr->EvaluateKnownConstInt(Ctx), in templateArgumentExpressionsEqual() 2255 return llvm::APSInt::isSameValue(args_expr->EvaluateKnownConstInt(Ctx), in templateArgumentExpressionsEqual() 2256 pattern_expr->EvaluateKnownConstInt(Ctx)); in templateArgumentExpressionsEqual()
|
H A D | ExprConstant.cpp | 5124 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch() 5125 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch() 12419 E->getArg(1)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 12645 int Operand = E->getArg(0)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitBuiltinCallExpr() 16262 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt() function in Expr 16635 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 16639 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE() 16667 (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0)) in CheckICE() 16722 Exp->getCommon()->EvaluateKnownConstInt(Ctx) != 0) return NoDiag(); in CheckICE() 16753 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) in CheckICE()
|
H A D | Stmt.cpp | 1010 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
H A D | Decl.cpp | 4586 return getBitWidth()->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGStmt.cpp | 1619 llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1620 llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange() 1719 Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 1788 Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt() 2040 if (CS->getLHS()->EvaluateKnownConstInt(C) == ConstantCondValue) in FindCaseStatementsForValue()
|
H A D | CGLoopInfo.cpp | 652 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
|
H A D | CoverageMappingGen.cpp | 1957 ->EvaluateKnownConstInt(CVM.getCodeGenModule().getContext()) in coverIfConstexpr()
|
H A D | CGExprConstant.cpp | 2271 return E->EvaluateKnownConstInt(CGM.getContext()).getZExtValue(); in emitPointerAuthKey()
|
H A D | CGDecl.cpp | 2851 Alignment->EvaluateKnownConstInt(getContext()).getExtValue(); in getOMPAllocateAlignment()
|
H A D | CGStmtOpenMP.cpp | 2807 Factor = FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective() 2836 FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 1336 llvm::APSInt LoVal = LoBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1440 llvm::APSInt HiVal = HiBeforePromotion->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1573 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1618 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt() 1677 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
|
H A D | SemaConcept.cpp | 1267 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr() 1278 BO->getRHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
|
H A D | SemaStmtAttr.cpp | 115 auto Value = ValueExpr->EvaluateKnownConstInt(S.getASTContext()); in handleLoopHintAttr()
|
H A D | SemaInit.cpp | 3144 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 3150 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 3152 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer() 6179 (Initializer->EvaluateKnownConstInt(S.getASTContext()) == 0); in IsZeroInitializer()
|
H A D | SemaTemplateInstantiate.cpp | 2135 TransformedExpr->EvaluateKnownConstInt(getSema().getASTContext()); in TransformLoopHintAttr()
|
H A D | SemaChecking.cpp | 2381 if (!SizeOp->EvaluateKnownConstInt(Context).isZero()) { in CheckBuiltinFunctionCall() 2394 if (!SizeOp->EvaluateKnownConstInt(Context).isZero()) in CheckBuiltinFunctionCall() 5162 llvm::APSInt Result = Arg->EvaluateKnownConstInt(Context); in BuiltinAllocaWithAlign()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngineC.cpp | 895 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
|
H A D | ExprEngine.cpp | 3012 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch() 3018 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
|
H A D | BugReporter.cpp | 797 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CFG.cpp | 4450 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase() 4460 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Expr.h | 715 llvm::APSInt EvaluateKnownConstInt( 4508 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
|