/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 477 Expr *CondExpr = in ActOnCaseExpr() local 479 if (!CondExpr) in ActOnCaseExpr() 481 QualType CondType = CondExpr->getType(); in ActOnCaseExpr() 921 Expr *CondExpr = Cond.get().second; in ActOnIfStmt() local 922 assert((CondExpr || ConstevalOrNegatedConsteval) && in ActOnIfStmt() 925 if (CondExpr && (getLangOpts().C99 || getLangOpts().CPlusPlus) && in ActOnIfStmt() 926 !Diags.isIgnored(diag::warn_comma_operator, CondExpr->getExprLoc())) in ActOnIfStmt() 927 CommaVisitor(*this).Visit(CondExpr); in ActOnIfStmt() 1125 Expr *CondExpr = Cond.get().second; in ActOnStartOfSwitchStmt() local 1126 assert((Cond.isInvalid() || CondExpr) && "switch with no condition"); in ActOnStartOfSwitchStmt() [all …]
|
H A D | SemaType.cpp | 2144 if (const auto *CondExpr = dyn_cast_if_present<ConditionalOperator>( in BuildArrayType() local 2147 CondExpr->getLHS()->getIntegerConstantExpr(Context); in BuildArrayType() 2149 CondExpr->getRHS()->getIntegerConstantExpr(Context); in BuildArrayType() 7488 Sema::ActOnEffectExpression(Expr *CondExpr, StringRef AttributeName) { in ActOnEffectExpression() argument 7489 if (CondExpr->isTypeDependent() || CondExpr->isValueDependent()) in ActOnEffectExpression() 7493 CondExpr->getIntegerConstantExpr(Context); in ActOnEffectExpression() 7497 Diag(CondExpr->getExprLoc(), diag::err_attribute_argument_type) in ActOnEffectExpression() 7499 << CondExpr->getSourceRange(); in ActOnEffectExpression() 7530 Expr *CondExpr = nullptr; // only valid if dependent in handleNonBlockingNonAllocatingTypeAttr() local 7541 CondExpr = PAttr.getArgAsExpr(0); in handleNonBlockingNonAllocatingTypeAttr() [all …]
|
H A D | SemaOpenMP.cpp | 8958 ExprResult CondExpr = in buildPreCond() local 8963 if (CondExpr.isUsable()) { in buildPreCond() 8964 if (!SemaRef.Context.hasSameUnqualifiedType(CondExpr.get()->getType(), in buildPreCond() 8966 CondExpr = SemaRef.PerformImplicitConversion( in buildPreCond() 8967 CondExpr.get(), SemaRef.Context.BoolTy, /*Action=*/Sema::AA_Casting, in buildPreCond() 8972 return CondExpr.isUsable() ? CondExpr.get() : Cond; in buildPreCond() 14303 ExprResult CondExpr = in ActOnOpenMPTileDirective() local 14306 if (!CondExpr.isUsable()) in ActOnOpenMPTileDirective() 14339 ForStmt(Context, InitStmt.get(), CondExpr.get(), nullptr, in ActOnOpenMPTileDirective() 14373 ExprResult CondExpr = in ActOnOpenMPTileDirective() local [all …]
|
H A D | SemaExpr.cpp | 8705 Expr *CondExpr, Expr *LHSExpr, in ActOnConditionalOp() argument 8711 ExprResult CondResult = CorrectDelayedTyposInExpr(CondExpr); in ActOnConditionalOp() 8726 CondExpr = CondResult.get(); in ActOnConditionalOp() 8736 commonExpr = CondExpr; in ActOnConditionalOp() 8775 LHSExpr = CondExpr = opaqueValue; in ActOnConditionalOp() 8781 ExprResult Cond = CondExpr, LHS = LHSExpr, RHS = RHSExpr; in ActOnConditionalOp() 15895 Expr *CondExpr, in ActOnChooseExpr() argument 15898 assert((CondExpr && LHSExpr && RHSExpr) && "Missing type argument(s)"); in ActOnChooseExpr() 15904 if (CondExpr->isTypeDependent() || CondExpr->isValueDependent()) { in ActOnChooseExpr() 15910 CondExpr, &condEval, diag::err_typecheck_choose_expr_requires_constant); in ActOnChooseExpr() [all …]
|
H A D | TreeTransform.h | 4372 ExprResult CondExpr = getDerived().TransformExpr(Expr); in TransformCondition() local 4374 if (CondExpr.isInvalid()) in TransformCondition() 4377 return getSema().ActOnCondition(nullptr, Loc, CondExpr.get(), Kind, in TransformCondition() 6284 if (Expr *CondExpr = PrevEC.Cond.getCondition()) { in TransformFunctionProtoType() local 6285 ExprResult NewExpr = getDerived().TransformExpr(CondExpr); in TransformFunctionProtoType()
|
H A D | SemaExprCXX.cpp | 4070 ExprResult Sema::CheckCXXBooleanCondition(Expr *CondExpr, bool IsConstexpr) { in CheckCXXBooleanCondition() argument 4085 ExprResult E = PerformContextuallyConvertToBool(CondExpr); in CheckCXXBooleanCondition()
|
/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseOpenACC.cpp | 908 ExprResult CondExpr = ParseOpenACCConditionExpr(); in ParseOpenACCClauseParams() local 909 ParsedClause.setConditionDetails(CondExpr.isUsable() ? CondExpr.get() in ParseOpenACCClauseParams() 912 if (CondExpr.isInvalid()) { in ParseOpenACCClauseParams() 1065 ExprResult CondExpr = ParseOpenACCConditionExpr(); in ParseOpenACCClauseParams() local 1066 ParsedClause.setConditionDetails(CondExpr.isUsable() ? CondExpr.get() in ParseOpenACCClauseParams() 1069 if (CondExpr.isInvalid()) { in ParseOpenACCClauseParams()
|
H A D | ParseStmt.cpp | 1351 ExprResult CondExpr = ParseExpression(); in ParseParenExprOrCondition() local 1354 if (CondExpr.isInvalid()) in ParseParenExprOrCondition() 1357 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition() 1373 ExprResult CondExpr = Actions.CreateRecoveryExpr( in ParseParenExprOrCondition() local 1376 if (!CondExpr.isInvalid()) in ParseParenExprOrCondition() 1377 Cond = Actions.ActOnCondition(getCurScope(), Loc, CondExpr.get(), CK, in ParseParenExprOrCondition() 2233 ExprResult CondExpr = Actions.CreateRecoveryExpr( in ParseForStatement() local 2238 if (!CondExpr.isInvalid()) in ParseForStatement() 2240 CondExpr.get(), CK, in ParseForStatement()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | OpenACCClause.cpp | 385 if (const Expr *CondExpr = C.getConditionExpr()) { in VisitSelfClause() local 387 printExpr(CondExpr); in VisitSelfClause()
|
H A D | ExprConstant.cpp | 5550 FullExpressionRAII CondExpr(Info); in EvaluateStmt() local
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGOpenMPRuntime.h | 661 llvm::Value **CondExpr = nullptr, const Expr **ThreadLimitExpr = nullptr);
|
H A D | CGOpenMPRuntime.cpp | 6223 const Expr *CondExpr = IfClause->getCondition(); in getNumThreads() local 6225 if (CondExpr->EvaluateAsBooleanCondition(Result, CGF.getContext())) { in getNumThreads() 6231 CodeGenFunction::LexicalScope Scope(CGF, CondExpr->getSourceRange()); in getNumThreads() 6243 *CondVal = CGF.EvaluateExprAsBool(CondExpr); in getNumThreads()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngine.cpp | 3053 const Expr *CondExpr = SS->getCond()->IgnoreParenImpCasts(); in processSwitch() local 3054 if (CondExpr->getType()->getAs<EnumType>()) { in processSwitch()
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | Sema.h | 898 ActOnEffectExpression(Expr *CondExpr, StringRef AttributeName); 7056 SourceLocation ColonLoc, Expr *CondExpr, 7094 ExprResult ActOnChooseExpr(SourceLocation BuiltinLoc, Expr *CondExpr, 8307 ExprResult CheckCXXBooleanCondition(Expr *CondExpr, bool IsConstexpr = false);
|
/freebsd/contrib/llvm-project/llvm/lib/MC/MCParser/ |
H A D | MasmParser.cpp | 6972 const MCExpr *CondExpr; in parseDirectiveWhile() local 6974 if (parseExpression(CondExpr)) in parseDirectiveWhile() 6987 if (!CondExpr->evaluateAsAbsolute(Condition, getStreamer().getAssemblerPtr())) in parseDirectiveWhile()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReader.cpp | 11897 Expr *CondExpr = readSubExpr(); in readOpenACCClause() local 11898 return OpenACCIfClause::Create(getContext(), BeginLoc, LParenLoc, CondExpr, in readOpenACCClause() 11903 Expr *CondExpr = readBool() ? readSubExpr() : nullptr; in readOpenACCClause() local 11905 CondExpr, EndLoc); in readOpenACCClause()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 6187 createNodeForSelectViaUMinSeq(ScalarEvolution *SE, const SCEV *CondExpr, in createNodeForSelectViaUMinSeq() argument 6189 assert(CondExpr->getType()->isIntegerTy(1) && in createNodeForSelectViaUMinSeq() 6208 CondExpr = SE->getNotSCEV(CondExpr); in createNodeForSelectViaUMinSeq() 6215 return SE->getAddExpr(C, SE->getUMinExpr(CondExpr, SE->getMinusSCEV(X, C), in createNodeForSelectViaUMinSeq()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 4570 ConditionalOperator *CondExpr = new (Context) ConditionalOperator( in SynthesizeBlockCall() local 4573 return CondExpr; in SynthesizeBlockCall()
|