Lines Matching refs:OASE
5401 } else if (auto *OASE = dyn_cast_or_null<OMPArraySectionExpr>(RefExpr)) { in getPrivateItem() local
5402 Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in getPrivateItem()
6033 const auto *OASE = cast<OMPArraySectionExpr>(E->IgnoreParenImpCasts()); in processImplicitMapsWithDefaultMappers() local
6035 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in processImplicitMapsWithDefaultMappers()
19329 ASTContext &Context, const OMPArraySectionExpr *OASE, bool &SingleElement, in checkOMPArraySectionConstantForReduction() argument
19331 const Expr *Length = OASE->getLength(); in checkOMPArraySectionConstantForReduction()
19335 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
19352 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in checkOMPArraySectionConstantForReduction()
19361 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
19561 auto *OASE = dyn_cast<OMPArraySectionExpr>(RefExpr->IgnoreParens()); in actOnOMPReductionKindClause() local
19564 } else if (OASE) { in actOnOMPReductionKindClause()
19566 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in actOnOMPReductionKindClause()
19587 /*AcceptIfMutable*/ false, ASE || OASE)) in actOnOMPReductionKindClause()
19594 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19705 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19718 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19739 if (OASE) { in actOnOMPReductionKindClause()
19743 Context, OASE, SingleElement, ArraySizes); in actOnOMPReductionKindClause()
19754 if ((OASE && !ConstantLengthOASE) || in actOnOMPReductionKindClause()
19755 (!OASE && !ASE && in actOnOMPReductionKindClause()
19759 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
19763 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
19777 } else if (!ASE && !OASE && in actOnOMPReductionKindClause()
20082 if (ASE || OASE) { in actOnOMPReductionKindClause()
20121 ASE || OASE); in actOnOMPReductionKindClause()
21086 const auto *OASE = dyn_cast<OMPArraySectionExpr>(SimpleExpr); in ActOnOpenMPDependClause() local
21087 if (OASE) { in ActOnOpenMPDependClause()
21089 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in ActOnOpenMPDependClause()
21097 const Expr *Length = OASE->getLength(); in ActOnOpenMPDependClause()
21244 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToWholeSize() local
21250 (OASE && OASE->getColonLocFirst().isInvalid())) { in checkArrayExpressionDoesNotReferToWholeSize()
21257 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToWholeSize()
21258 const Expr *LowerBound = OASE->getLowerBound(); in checkArrayExpressionDoesNotReferToWholeSize()
21259 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToWholeSize()
21302 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToUnitySize() local
21307 (OASE && OASE->getColonLocFirst().isInvalid())) in checkArrayExpressionDoesNotReferToUnitySize()
21310 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToUnitySize()
21311 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToUnitySize()
21517 bool VisitOMPArraySectionExpr(OMPArraySectionExpr *OASE) { in VisitOMPArraySectionExpr() argument
21522 Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in VisitOMPArraySectionExpr()
21536 << 0 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
21541 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
21543 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
21568 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
21578 if (!OASE->getLength()->isValueDependent() && in VisitOMPArraySectionExpr()
21579 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) && in VisitOMPArraySectionExpr()
21581 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
21583 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
21586 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() && in VisitOMPArraySectionExpr()
21587 OASE->getLowerBound()->EvaluateAsInt(ResultL, in VisitOMPArraySectionExpr()
21590 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
21592 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
21600 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false); in VisitOMPArraySectionExpr()
21696 const auto *OASE = in checkMapClauseExpressionBase() local
21698 if (!OASE) in checkMapClauseExpressionBase()
21700 if (OASE && OASE->getLength()) in checkMapClauseExpressionBase()
21798 } else if (const auto *OASE = dyn_cast<OMPArraySectionExpr>( in checkMapConflicts() local
21800 const Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in checkMapConflicts()
21803 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>( in checkMapConflicts() local
21805 Type = OASE->getBase()->getType()->getPointeeType(); in checkMapConflicts()
22277 auto *OASE = dyn_cast<OMPArraySectionExpr>(VE->IgnoreParens()); in checkMappableExpressionList() local
22281 } else if (OASE) { in checkMappableExpressionList()
22283 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in checkMappableExpressionList()