Lines Matching refs:OASE
5371 } else if (auto *OASE = dyn_cast_or_null<OMPArraySectionExpr>(RefExpr)) { in getPrivateItem() local
5372 Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in getPrivateItem()
6002 const auto *OASE = cast<OMPArraySectionExpr>(E->IgnoreParenImpCasts()); in processImplicitMapsWithDefaultMappers() local
6004 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in processImplicitMapsWithDefaultMappers()
18990 ASTContext &Context, const OMPArraySectionExpr *OASE, bool &SingleElement, in checkOMPArraySectionConstantForReduction() argument
18992 const Expr *Length = OASE->getLength(); in checkOMPArraySectionConstantForReduction()
18996 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
19013 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in checkOMPArraySectionConstantForReduction()
19022 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
19208 auto *OASE = dyn_cast<OMPArraySectionExpr>(RefExpr->IgnoreParens()); in actOnOMPReductionKindClause() local
19211 } else if (OASE) { in actOnOMPReductionKindClause()
19213 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in actOnOMPReductionKindClause()
19234 /*AcceptIfMutable*/ false, ASE || OASE)) in actOnOMPReductionKindClause()
19241 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19347 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19360 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19381 if (OASE) { in actOnOMPReductionKindClause()
19385 Context, OASE, SingleElement, ArraySizes); in actOnOMPReductionKindClause()
19396 if ((OASE && !ConstantLengthOASE) || in actOnOMPReductionKindClause()
19397 (!OASE && !ASE && in actOnOMPReductionKindClause()
19401 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
19405 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
19419 } else if (!ASE && !OASE && in actOnOMPReductionKindClause()
19724 if (ASE || OASE) { in actOnOMPReductionKindClause()
19763 ASE || OASE); in actOnOMPReductionKindClause()
20670 const auto *OASE = dyn_cast<OMPArraySectionExpr>(SimpleExpr); in ActOnOpenMPDependClause() local
20671 if (OASE) { in ActOnOpenMPDependClause()
20673 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in ActOnOpenMPDependClause()
20679 const Expr *Length = OASE->getLength(); in ActOnOpenMPDependClause()
20829 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToWholeSize() local
20835 (OASE && OASE->getColonLocFirst().isInvalid())) { in checkArrayExpressionDoesNotReferToWholeSize()
20842 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToWholeSize()
20843 const Expr *LowerBound = OASE->getLowerBound(); in checkArrayExpressionDoesNotReferToWholeSize()
20844 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToWholeSize()
20887 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToUnitySize() local
20892 (OASE && OASE->getColonLocFirst().isInvalid())) in checkArrayExpressionDoesNotReferToUnitySize()
20895 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToUnitySize()
20896 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToUnitySize()
21102 bool VisitOMPArraySectionExpr(OMPArraySectionExpr *OASE) { in VisitOMPArraySectionExpr() argument
21107 Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in VisitOMPArraySectionExpr()
21121 << 0 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
21126 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
21128 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
21153 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
21163 if (!OASE->getLength()->isValueDependent() && in VisitOMPArraySectionExpr()
21164 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) && in VisitOMPArraySectionExpr()
21166 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
21168 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
21171 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() && in VisitOMPArraySectionExpr()
21172 OASE->getLowerBound()->EvaluateAsInt(ResultL, in VisitOMPArraySectionExpr()
21175 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
21177 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
21185 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false); in VisitOMPArraySectionExpr()
21281 const auto *OASE = in checkMapClauseExpressionBase() local
21283 if (!OASE) in checkMapClauseExpressionBase()
21285 if (OASE && OASE->getLength()) in checkMapClauseExpressionBase()
21383 } else if (const auto *OASE = dyn_cast<OMPArraySectionExpr>( in checkMapConflicts() local
21385 const Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in checkMapConflicts()
21388 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>( in checkMapConflicts() local
21390 Type = OASE->getBase()->getType()->getPointeeType(); in checkMapConflicts()
21862 auto *OASE = dyn_cast<OMPArraySectionExpr>(VE->IgnoreParens()); in checkMappableExpressionList() local
21866 } else if (OASE) { in checkMappableExpressionList()
21868 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in checkMappableExpressionList()