Lines Matching refs:OASE

5175     } else if (auto *OASE = dyn_cast_or_null<ArraySectionExpr>(RefExpr)) {  in getPrivateItem()  local
5176 Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in getPrivateItem()
5808 const auto *OASE = cast<ArraySectionExpr>(E->IgnoreParenImpCasts()); in processImplicitMapsWithDefaultMappers() local
5810 ArraySectionExpr::getBaseOriginalType(OASE->getBase()); in processImplicitMapsWithDefaultMappers()
18131 ASTContext &Context, const ArraySectionExpr *OASE, bool &SingleElement, in checkOMPArraySectionConstantForReduction() argument
18133 const Expr *Length = OASE->getLength(); in checkOMPArraySectionConstantForReduction()
18137 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
18154 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in checkOMPArraySectionConstantForReduction()
18163 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
18363 auto *OASE = dyn_cast<ArraySectionExpr>(RefExpr->IgnoreParens()); in actOnOMPReductionKindClause() local
18366 } else if (OASE) { in actOnOMPReductionKindClause()
18368 ArraySectionExpr::getBaseOriginalType(OASE->getBase()); in actOnOMPReductionKindClause()
18389 /*AcceptIfMutable*/ false, ASE || OASE)) in actOnOMPReductionKindClause()
18396 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
18507 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
18520 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
18541 if (OASE) { in actOnOMPReductionKindClause()
18545 Context, OASE, SingleElement, ArraySizes); in actOnOMPReductionKindClause()
18556 if ((OASE && !ConstantLengthOASE) || in actOnOMPReductionKindClause()
18557 (!OASE && !ASE && in actOnOMPReductionKindClause()
18561 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
18565 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
18579 } else if (!ASE && !OASE && in actOnOMPReductionKindClause()
18884 if (ASE || OASE) { in actOnOMPReductionKindClause()
18923 ASE || OASE); in actOnOMPReductionKindClause()
19902 const auto *OASE = dyn_cast<ArraySectionExpr>(SimpleExpr); in ActOnOpenMPDependClause() local
19903 if (OASE) { in ActOnOpenMPDependClause()
19905 ArraySectionExpr::getBaseOriginalType(OASE->getBase()); in ActOnOpenMPDependClause()
19915 const Expr *Length = OASE->getLength(); in ActOnOpenMPDependClause()
20065 const auto *OASE = dyn_cast<ArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToWholeSize() local
20071 (OASE && OASE->getColonLocFirst().isInvalid())) { in checkArrayExpressionDoesNotReferToWholeSize()
20078 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToWholeSize()
20079 const Expr *LowerBound = OASE->getLowerBound(); in checkArrayExpressionDoesNotReferToWholeSize()
20080 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToWholeSize()
20123 const auto *OASE = dyn_cast<ArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToUnitySize() local
20128 (OASE && OASE->getColonLocFirst().isInvalid())) in checkArrayExpressionDoesNotReferToUnitySize()
20131 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToUnitySize()
20132 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToUnitySize()
20338 bool VisitArraySectionExpr(ArraySectionExpr *OASE) { in VisitArraySectionExpr() argument
20343 Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in VisitArraySectionExpr()
20357 << 0 << OASE->getSourceRange(); in VisitArraySectionExpr()
20362 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType); in VisitArraySectionExpr()
20364 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType); in VisitArraySectionExpr()
20389 << OASE->getSourceRange(); in VisitArraySectionExpr()
20399 if (!OASE->getLength()->isValueDependent() && in VisitArraySectionExpr()
20400 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) && in VisitArraySectionExpr()
20402 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitArraySectionExpr()
20404 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitArraySectionExpr()
20407 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() && in VisitArraySectionExpr()
20408 OASE->getLowerBound()->EvaluateAsInt(ResultL, in VisitArraySectionExpr()
20411 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitArraySectionExpr()
20413 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitArraySectionExpr()
20421 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false); in VisitArraySectionExpr()
20517 const auto *OASE = in checkMapClauseExpressionBase() local
20519 if (!OASE) in checkMapClauseExpressionBase()
20521 if (OASE && OASE->getLength()) in checkMapClauseExpressionBase()
20619 } else if (const auto *OASE = dyn_cast<ArraySectionExpr>( in checkMapConflicts() local
20621 const Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in checkMapConflicts()
20623 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>( in checkMapConflicts() local
20625 Type = OASE->getBase()->getType()->getPointeeType(); in checkMapConflicts()
21099 auto *OASE = dyn_cast<ArraySectionExpr>(VE->IgnoreParens()); in checkMappableExpressionList() local
21103 } else if (OASE) { in checkMappableExpressionList()
21105 ArraySectionExpr::getBaseOriginalType(OASE->getBase()); in checkMappableExpressionList()