Searched refs:EvaluateKnownConstInt (Results 1 – 22 of 22) sorted by relevance
94 maxVal = rhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()99 maxVal = lhs->EvaluateKnownConstInt(Context); in CheckMallocArgument()
1105 llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange()1106 llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext()); in EmitCaseStmtRange()1198 Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt()1246 Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext())); in EmitCaseStmt()1447 if (CS->getLHS()->EvaluateKnownConstInt(C) == ConstantCondValue) in FindCaseStatementsForValue()
164 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()
6443 (*NI) ? (*NI)->EvaluateKnownConstInt(C) in emitDeclareSimdFunction()6481 VLENVal = VLEN->EvaluateKnownConstInt(C); in emitDeclareSimdFunction()
5747 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()5756 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
2033 return Builder.getInt(E->EvaluateKnownConstInt(CGF.getContext())); in VisitUnaryExprOrTypeTraitExpr()
755 E->getArg(1)->EvaluateKnownConstInt(getContext()).getZExtValue(); in EmitBuiltinExpr()
853 LoVal = Lo->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt()969 HiVal = Hi->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt()1109 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt()1137 RI->second->getRHS()->EvaluateKnownConstInt(Context); in ActOnFinishSwitchStmt()1196 llvm::APSInt RhsVal = SrcExpr->EvaluateKnownConstInt(Context); in DiagnoseAssignmentEnum()
2426 DesignatedStartIndex = IndexExpr->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()2432 DIE->getArrayRangeStart(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()2434 DIE->getArrayRangeEnd(*D)->EvaluateKnownConstInt(SemaRef.Context); in CheckDesignatedInitializer()4910 (Initializer->EvaluateKnownConstInt(S.getASTContext()) != 0)) in TryOCLZeroEventInitialization()
5718 Hint = E->EvaluateKnownConstInt(Context); in ActOnOpenMPCriticalDirective()5737 << C->getHint()->EvaluateKnownConstInt(Context).toString( in ActOnOpenMPCriticalDirective()10146 TotalDepCount = OrderedCountExpr->EvaluateKnownConstInt(Context); in ActOnOpenMPDependClause()
1738 From->EvaluateKnownConstInt(S.getASTContext()) == 0) { in IsStandardConversion()
12709 *Result = E->EvaluateKnownConstInt(Context); in VerifyIntegerConstantExpression()
3511 APSInt LHS = CS->getLHS()->EvaluateKnownConstInt(Info.Ctx); in EvaluateSwitch()3512 APSInt RHS = CS->getRHS() ? CS->getRHS()->EvaluateKnownConstInt(Info.Ctx) in EvaluateSwitch()6851 E->getArg(1)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitCallExpr()6925 int Operand = E->getArg(0)->EvaluateKnownConstInt(Info.Ctx).getZExtValue(); in VisitCallExpr()9262 APSInt Expr::EvaluateKnownConstInt(const ASTContext &Ctx, in EvaluateKnownConstInt() function in Expr9585 llvm::APSInt REval = Exp->getRHS()->EvaluateKnownConstInt(Ctx); in CheckICE()9589 llvm::APSInt LEval = Exp->getLHS()->EvaluateKnownConstInt(Ctx); in CheckICE()9617 (Exp->getLHS()->EvaluateKnownConstInt(Ctx) == 0)) in CheckICE()9671 Exp->getCommon()->EvaluateKnownConstInt(Ctx) != 0) return NoDiag(); in CheckICE()9702 if (Exp->getCond()->EvaluateKnownConstInt(Ctx) == 0) in CheckICE()
3471 return BitWidth->EvaluateKnownConstInt(Ctx).getZExtValue(); in getBitWidthValue()
3541 llvm::APSInt V = SAE->EvaluateKnownConstInt(Context.getASTContext()); in mangleExpression()
3240 if (EvaluateKnownConstInt(Ctx) != 0) in isNullPointerConstant()
779 APSInt Value = Ex->EvaluateKnownConstInt(getContext()); in VisitUnaryExprOrTypeTraitExpr()
1830 llvm::APSInt V1 = Case->getLHS()->EvaluateKnownConstInt(getContext()); in processSwitch()1836 V2 = E->EvaluateKnownConstInt(getContext()); in processSwitch()
689 os << LHS->EvaluateKnownConstInt(PDB.getASTContext()); in GenerateMinimalPathDiagnostic()
3193 const llvm::APSInt &lhsInt = CS->getLHS()->EvaluateKnownConstInt(Ctx); in shouldAddCase()3203 const llvm::APSInt &V2 = RHS->EvaluateKnownConstInt(Ctx); in shouldAddCase()
626 llvm::APSInt EvaluateKnownConstInt(const ASTContext &Ctx,3475 return getExpr(N+2)->EvaluateKnownConstInt(Ctx); in getShuffleMaskIdx()
8985 !!Condition.get()->EvaluateKnownConstInt(S.Context)) {} in ConditionResult()