Lines Matching refs:OASE

5306     } else if (auto *OASE = dyn_cast_or_null<OMPArraySectionExpr>(RefExpr)) {  in getPrivateItem()  local
5307 Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in getPrivateItem()
5931 const auto *OASE = cast<OMPArraySectionExpr>(E->IgnoreParenImpCasts()); in processImplicitMapsWithDefaultMappers() local
5933 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in processImplicitMapsWithDefaultMappers()
18707 ASTContext &Context, const OMPArraySectionExpr *OASE, bool &SingleElement, in checkOMPArraySectionConstantForReduction() argument
18709 const Expr *Length = OASE->getLength(); in checkOMPArraySectionConstantForReduction()
18713 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
18730 const Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); in checkOMPArraySectionConstantForReduction()
18739 if (OASE->getColonLocFirst().isValid()) in checkOMPArraySectionConstantForReduction()
18925 auto *OASE = dyn_cast<OMPArraySectionExpr>(RefExpr->IgnoreParens()); in actOnOMPReductionKindClause() local
18928 } else if (OASE) { in actOnOMPReductionKindClause()
18930 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in actOnOMPReductionKindClause()
18951 /*AcceptIfMutable*/ false, ASE || OASE)) in actOnOMPReductionKindClause()
18958 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19064 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19077 if (!ASE && !OASE) { in actOnOMPReductionKindClause()
19098 if (OASE) { in actOnOMPReductionKindClause()
19102 Context, OASE, SingleElement, ArraySizes); in actOnOMPReductionKindClause()
19113 if ((OASE && !ConstantLengthOASE) || in actOnOMPReductionKindClause()
19114 (!OASE && !ASE && in actOnOMPReductionKindClause()
19118 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
19122 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE; in actOnOMPReductionKindClause()
19136 } else if (!ASE && !OASE && in actOnOMPReductionKindClause()
19441 if (ASE || OASE) { in actOnOMPReductionKindClause()
19480 ASE || OASE); in actOnOMPReductionKindClause()
20387 const auto *OASE = dyn_cast<OMPArraySectionExpr>(SimpleExpr); in ActOnOpenMPDependClause() local
20388 if (OASE) { in ActOnOpenMPDependClause()
20390 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in ActOnOpenMPDependClause()
20396 const Expr *Length = OASE->getLength(); in ActOnOpenMPDependClause()
20546 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToWholeSize() local
20552 (OASE && OASE->getColonLocFirst().isInvalid())) { in checkArrayExpressionDoesNotReferToWholeSize()
20559 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToWholeSize()
20560 const Expr *LowerBound = OASE->getLowerBound(); in checkArrayExpressionDoesNotReferToWholeSize()
20561 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToWholeSize()
20604 const auto *OASE = dyn_cast<OMPArraySectionExpr>(E); in checkArrayExpressionDoesNotReferToUnitySize() local
20609 (OASE && OASE->getColonLocFirst().isInvalid())) in checkArrayExpressionDoesNotReferToUnitySize()
20612 assert(OASE && "Expecting array section if not an array subscript."); in checkArrayExpressionDoesNotReferToUnitySize()
20613 const Expr *Length = OASE->getLength(); in checkArrayExpressionDoesNotReferToUnitySize()
20819 bool VisitOMPArraySectionExpr(OMPArraySectionExpr *OASE) { in VisitOMPArraySectionExpr() argument
20824 Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in VisitOMPArraySectionExpr()
20838 << 0 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
20843 checkArrayExpressionDoesNotReferToWholeSize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
20845 checkArrayExpressionDoesNotReferToUnitySize(SemaRef, OASE, CurType); in VisitOMPArraySectionExpr()
20870 << OASE->getSourceRange(); in VisitOMPArraySectionExpr()
20880 if (!OASE->getLength()->isValueDependent() && in VisitOMPArraySectionExpr()
20881 OASE->getLength()->EvaluateAsInt(ResultR, SemaRef.getASTContext()) && in VisitOMPArraySectionExpr()
20883 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
20885 SemaRef.Diag(OASE->getLength()->getExprLoc(), in VisitOMPArraySectionExpr()
20888 if (OASE->getLowerBound() && !OASE->getLowerBound()->isValueDependent() && in VisitOMPArraySectionExpr()
20889 OASE->getLowerBound()->EvaluateAsInt(ResultL, in VisitOMPArraySectionExpr()
20892 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
20894 SemaRef.Diag(OASE->getLowerBound()->getExprLoc(), in VisitOMPArraySectionExpr()
20902 Components.emplace_back(OASE, nullptr, /*IsNonContiguous=*/false); in VisitOMPArraySectionExpr()
20998 const auto *OASE = in checkMapClauseExpressionBase() local
21000 if (!OASE) in checkMapClauseExpressionBase()
21002 if (OASE && OASE->getLength()) in checkMapClauseExpressionBase()
21100 } else if (const auto *OASE = dyn_cast<OMPArraySectionExpr>( in checkMapConflicts() local
21102 const Expr *E = OASE->getBase()->IgnoreParenImpCasts(); in checkMapConflicts()
21105 } else if (const auto *OASE = dyn_cast<OMPArrayShapingExpr>( in checkMapConflicts() local
21107 Type = OASE->getBase()->getType()->getPointeeType(); in checkMapConflicts()
21579 auto *OASE = dyn_cast<OMPArraySectionExpr>(VE->IgnoreParens()); in checkMappableExpressionList() local
21583 } else if (OASE) { in checkMappableExpressionList()
21585 OMPArraySectionExpr::getBaseOriginalType(OASE->getBase()); in checkMappableExpressionList()