Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAMDGPU.cpp379 ->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 DNVPTX.cpp321 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 DMallocOverflowSecurityChecker.cpp95 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
100 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DAttrImpl.cpp267 return alignmentExpr->EvaluateKnownConstInt(Ctx).getZExtValue() * in getAlignment()
H A DTypePrinter.cpp2247 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 DExprConstant.cpp5124 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 DStmt.cpp1010 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
H A DDecl.cpp4586 return getBitWidth()->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGStmt.cpp1619 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 DCGLoopInfo.cpp652 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
H A DCoverageMappingGen.cpp1957 ->EvaluateKnownConstInt(CVM.getCodeGenModule().getContext()) in coverIfConstexpr()
H A DCGExprConstant.cpp2271 return E->EvaluateKnownConstInt(CGM.getContext()).getZExtValue(); in emitPointerAuthKey()
H A DCGDecl.cpp2851 Alignment->EvaluateKnownConstInt(getContext()).getExtValue(); in getOMPAllocateAlignment()
H A DCGStmtOpenMP.cpp2807 Factor = FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective()
2836 FactorExpr->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitOMPUnrollDirective()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp1336 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 DSemaConcept.cpp1267 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
1278 BO->getRHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr()
H A DSemaStmtAttr.cpp115 auto Value = ValueExpr->EvaluateKnownConstInt(S.getASTContext()); in handleLoopHintAttr()
H A DSemaInit.cpp3144 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 DSemaTemplateInstantiate.cpp2135 TransformedExpr->EvaluateKnownConstInt(getSema().getASTContext()); in TransformLoopHintAttr()
H A DSemaChecking.cpp2381 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 DExprEngineC.cpp895 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
H A DExprEngine.cpp3012 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch()
3018 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
H A DBugReporter.cpp797 os << LHS->EvaluateKnownConstInt(getASTContext()); in generateDiagForSwitchOP()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp4450 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 DExpr.h715 llvm::APSInt EvaluateKnownConstInt(
4508 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()

12