Lines Matching refs:OASE
5011 } else if (auto *OASE = dyn_cast_or_null<OMPArraySectionExpr>(RefExpr)) { in getPrivateItem() local
5012 Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in getPrivateItem()
5613 const auto *OASE = cast<OMPArraySectionExpr>(E->IgnoreParenImpCasts()); in processImplicitMapsWithDefaultMappers() local
5615 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in processImplicitMapsWithDefaultMappers()
16636 ASTContext &Context, const OMPArraySectionExpr *OASE, bool &SingleElement, in checkOMPArraySectionConstantForReduction() argument
16638 const Expr *Length = OASE->getLength(); in checkOMPArraySectionConstantForReduction()
16642 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
16659 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in checkOMPArraySectionConstantForReduction()
16668 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
16854 auto *OASE = dyn_cast<OMPArraySectionExpr>(RefExpr->IgnoreParens()); in actOnOMPReductionKindClause() local
16857 } else if (OASE) { in actOnOMPReductionKindClause()
16859 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in actOnOMPReductionKindClause()
16880 /*AcceptIfMutable*/ false, ASE || OASE)) in actOnOMPReductionKindClause()
16887 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
16993 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
17006 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
17027 if (OASE) { in actOnOMPReductionKindClause()
17031 Context, OASE, SingleElement, ArraySizes); in actOnOMPReductionKindClause()
17042 if ((OASE && !ConstantLengthOASE) || in actOnOMPReductionKindClause()
17043 (!OASE && !ASE && in actOnOMPReductionKindClause()
17047 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
17051 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
17065 } else if (!ASE && !OASE && in actOnOMPReductionKindClause()
17371 if (ASE || OASE) { in actOnOMPReductionKindClause()
17410 ASE || OASE); in actOnOMPReductionKindClause()
18312 const auto *OASE = dyn_cast<OMPArraySectionExpr>(SimpleExpr); in ActOnOpenMPDependClause() local
18313 if (OASE) { in ActOnOpenMPDependClause()
18315 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in ActOnOpenMPDependClause()
18321 const Expr *Length = OASE->getLength(); in ActOnOpenMPDependClause()
18463 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToWholeSize() local
18469 (OASE && OASE->getColonLocFirst().isInvalid())) { in checkArrayExpressionDoesNotReferToWholeSize()
18476 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToWholeSize()
18477 const Expr *LowerBound = OASE->getLowerBound(); in checkArrayExpressionDoesNotReferToWholeSize()
18478 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToWholeSize()
18521 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToUnitySize() local
18526 (OASE && OASE->getColonLocFirst().isInvalid())) in checkArrayExpressionDoesNotReferToUnitySize()
18529 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToUnitySize()
18530 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToUnitySize()
18737 bool VisitOMPArraySectionExpr(OMPArraySectionExpr *OASE) { in VisitOMPArraySectionExpr() argument
18739 Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in VisitOMPArraySectionExpr()
18753 << 0 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
18758 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
18760 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
18783 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
18793 if (!OASE->getLength()->isValueDependent() && in VisitOMPArraySectionExpr()
18794 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) && in VisitOMPArraySectionExpr()
18796 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
18798 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
18801 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() && in VisitOMPArraySectionExpr()
18802 OASE->getLowerBound()->EvaluateAsInt(ResultL, in VisitOMPArraySectionExpr()
18805 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
18807 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
18815 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false); in VisitOMPArraySectionExpr()
18913 const auto *OASE = in checkMapClauseExpressionBase() local
18915 if (!OASE) in checkMapClauseExpressionBase()
18917 if (OASE && OASE->getLength()) in checkMapClauseExpressionBase()
19015 } else if (const auto *OASE = dyn_cast<OMPArraySectionExpr>( in checkMapConflicts() local
19017 const Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in checkMapConflicts()
19020 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>( in checkMapConflicts() local
19022 Type = OASE->getBase()->getType()->getPointeeType(); in checkMapConflicts()
19488 auto *OASE = dyn_cast<OMPArraySectionExpr>(VE->IgnoreParens()); in checkMappableExpressionList() local
19492 } else if (OASE) { in checkMappableExpressionList()
19494 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in checkMappableExpressionList()