Lines Matching refs:ELoc
1476 auto ELoc = E->getExprLoc(); in VisitDeclRefExpr() local
1502 SemaRef.Diag(ELoc, diag::err_omp_reduction_in_task); in VisitDeclRefExpr()
1526 auto ELoc = E->getExprLoc(); in VisitMemberExpr() local
1542 SemaRef.Diag(ELoc, diag::err_omp_reduction_in_task); in VisitMemberExpr()
8143 getPrivateItem(Sema &S, Expr *&RefExpr, SourceLocation &ELoc, in getPrivateItem() argument
8177 ELoc = RefExpr->getExprLoc(); in getPrivateItem()
8187 S.Diag(ELoc, diag::err_omp_expected_base_var_name) << IsArrayExpr in getPrivateItem()
8190 S.Diag(ELoc, in getPrivateItem()
8209 SourceLocation ELoc; in ActOnOpenMPPrivateClause() local
8212 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange); in ActOnOpenMPPrivateClause()
8228 if (RequireCompleteType(ELoc, Type, diag::err_omp_private_incomplete_type)) in ActOnOpenMPPrivateClause()
8241 Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind) in ActOnOpenMPPrivateClause()
8250 Diag(ELoc, diag::err_omp_variably_modified_type_not_supported) in ActOnOpenMPPrivateClause()
8270 Diag(ELoc, diag::err_omp_variable_in_map_and_dsa) in ActOnOpenMPPrivateClause()
8288 auto VDPrivate = buildVarDecl(*this, ELoc, Type, D->getName(), in ActOnOpenMPPrivateClause()
8294 *this, VDPrivate, RefExpr->getType().getUnqualifiedType(), ELoc); in ActOnOpenMPPrivateClause()
8350 SourceLocation ELoc; in ActOnOpenMPFirstprivateClause() local
8353 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange); in ActOnOpenMPFirstprivateClause()
8364 ELoc = IsImplicitClause ? ImplicitClauseLoc : ELoc; in ActOnOpenMPFirstprivateClause()
8371 if (RequireCompleteType(ELoc, Type, in ActOnOpenMPFirstprivateClause()
8394 Diag(ELoc, diag::err_omp_wrong_dsa) in ActOnOpenMPFirstprivateClause()
8414 Diag(ELoc, diag::err_omp_wrong_dsa) in ActOnOpenMPFirstprivateClause()
8433 Diag(ELoc, diag::err_omp_required_access) in ActOnOpenMPFirstprivateClause()
8462 Diag(ELoc, diag::err_omp_parallel_reduction_in_task_firstprivate) in ActOnOpenMPFirstprivateClause()
8490 Diag(ELoc, diag::err_omp_firstprivate_distribute_private_teams); in ActOnOpenMPFirstprivateClause()
8502 Diag(ELoc, diag::err_omp_firstprivate_distribute_in_teams_reduction); in ActOnOpenMPFirstprivateClause()
8508 Diag(ELoc, diag::err_omp_firstprivate_and_lastprivate_in_distribute); in ActOnOpenMPFirstprivateClause()
8521 Diag(ELoc, diag::err_omp_variable_in_map_and_dsa) in ActOnOpenMPFirstprivateClause()
8533 Diag(ELoc, diag::err_omp_variably_modified_type_not_supported) in ActOnOpenMPFirstprivateClause()
8546 auto VDPrivate = buildVarDecl(*this, ELoc, Type, D->getName(), in ActOnOpenMPFirstprivateClause()
8559 VDInitRefExpr = buildDeclRefExpr(*this, VDInit, ElemType, ELoc); in ActOnOpenMPFirstprivateClause()
8566 InitializationKind Kind = InitializationKind::CreateCopy(ELoc, ELoc); in ActOnOpenMPFirstprivateClause()
8634 SourceLocation ELoc; in ActOnOpenMPLastprivateClause() local
8637 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange); in ActOnOpenMPLastprivateClause()
8655 if (RequireCompleteType(ELoc, Type, in ActOnOpenMPLastprivateClause()
8669 Diag(ELoc, diag::err_omp_wrong_dsa) in ActOnOpenMPLastprivateClause()
8688 Diag(ELoc, diag::err_omp_required_access) in ActOnOpenMPLastprivateClause()
8702 Diag(ELoc, diag::err_omp_firstprivate_and_lastprivate_in_distribute); in ActOnOpenMPLastprivateClause()
8721 buildDeclRefExpr(*this, SrcVD, Type.getUnqualifiedType(), ELoc); in ActOnOpenMPLastprivateClause()
8725 auto *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPLastprivateClause()
8728 auto AssignmentOp = BuildBinOp(/*S=*/nullptr, ELoc, BO_Assign, in ActOnOpenMPLastprivateClause()
8732 AssignmentOp = ActOnFinishFullExpr(AssignmentOp.get(), ELoc, in ActOnOpenMPLastprivateClause()
8753 BuildBinOp(DSAStack->getCurScope(), ELoc, BO_Assign, SimpleRefExpr, in ActOnOpenMPLastprivateClause()
8786 SourceLocation ELoc; in ActOnOpenMPSharedClause() local
8789 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange); in ActOnOpenMPSharedClause()
8809 Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind) in ActOnOpenMPSharedClause()
9101 SourceLocation ELoc; in ActOnOpenMPReductionClause() local
9104 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange, in ActOnOpenMPReductionClause()
9117 *this, ELoc, ERange, DSAStack->getCurScope(), ReductionIdScopeSpec, in ActOnOpenMPReductionClause()
9149 if (RequireCompleteType(ELoc, Type, in ActOnOpenMPReductionClause()
9156 Diag(ELoc, diag::err_omp_const_reduction_list_item) in ActOnOpenMPReductionClause()
9176 Diag(ELoc, diag::err_omp_reduction_ref_type_arg) << ERange; in ActOnOpenMPReductionClause()
9197 Diag(ELoc, diag::err_omp_once_referenced) in ActOnOpenMPReductionClause()
9202 Diag(ELoc, diag::err_omp_wrong_dsa) in ActOnOpenMPReductionClause()
9218 Diag(ELoc, diag::err_omp_required_access) in ActOnOpenMPReductionClause()
9230 *this, ELoc, ERange, DSAStack->getCurScope(), ReductionIdScopeSpec, in ActOnOpenMPReductionClause()
9264 Diag(ELoc, diag::err_omp_clause_not_arithmetic_type_arg) in ActOnOpenMPReductionClause()
9278 Diag(ELoc, diag::err_omp_clause_floating_type_arg); in ActOnOpenMPReductionClause()
9292 auto *LHSVD = buildVarDecl(*this, ELoc, Type, ".reduction.lhs", in ActOnOpenMPReductionClause()
9294 auto *RHSVD = buildVarDecl(*this, ELoc, Type, D->getName(), in ActOnOpenMPReductionClause()
9313 auto *PrivateVD = buildVarDecl(*this, ELoc, PrivateTy, D->getName(), in ActOnOpenMPReductionClause()
9317 auto *LHSDRE = buildDeclRefExpr(*this, LHSVD, Type, ELoc); in ActOnOpenMPReductionClause()
9318 auto *RHSDRE = buildDeclRefExpr(*this, RHSVD, Type, ELoc); in ActOnOpenMPReductionClause()
9335 Init = ActOnIntegerConstant(ELoc, /*Val=*/0).get(); in ActOnOpenMPReductionClause()
9341 Init = ActOnIntegerConstant(ELoc, /*Val=*/1).get(); in ActOnOpenMPReductionClause()
9354 Type, ELoc); in ActOnOpenMPReductionClause()
9359 Init = IntegerLiteral::Create(Context, InitValue, IntTy, ELoc); in ActOnOpenMPReductionClause()
9364 Init = CreateBuiltinBinOp(ELoc, BO_Add, Init, Im).get(); in ActOnOpenMPReductionClause()
9386 Init = IntegerLiteral::Create(Context, InitValue, IntTy, ELoc); in ActOnOpenMPReductionClause()
9390 SourceLocation(), Context.getTrivialTypeSourceInfo(Type, ELoc), in ActOnOpenMPReductionClause()
9400 Type, ELoc); in ActOnOpenMPReductionClause()
9438 Diag(ELoc, diag::err_omp_reduction_id_not_compatible) << Type in ActOnOpenMPReductionClause()
9452 auto *PrivateDRE = buildDeclRefExpr(*this, PrivateVD, PrivateTy, ELoc); in ActOnOpenMPReductionClause()
9457 ExprResult LHS = CreateBuiltinUnaryOp(ELoc, UO_AddrOf, LHSDRE); in ActOnOpenMPReductionClause()
9458 ExprResult RHS = CreateBuiltinUnaryOp(ELoc, UO_AddrOf, RHSDRE); in ActOnOpenMPReductionClause()
9473 ELoc, Context.getPointerType(FnTy), VK_RValue, OK_Ordinary, in ActOnOpenMPReductionClause()
9477 CallExpr(Context, OVE, Args, Context.VoidTy, VK_RValue, ELoc); in ActOnOpenMPReductionClause()
9519 BuildBinOp(DSAStack->getCurScope(), ELoc, BO_Assign, in ActOnOpenMPReductionClause()
9556 bool Sema::CheckOpenMPLinearDecl(ValueDecl *D, SourceLocation ELoc, in CheckOpenMPLinearDecl() argument
9561 if (RequireCompleteType(ELoc, Type, diag::err_omp_linear_incomplete_type)) in CheckOpenMPLinearDecl()
9565 Diag(ELoc, diag::err_omp_wrong_linear_modifier_non_reference) in CheckOpenMPLinearDecl()
9573 Diag(ELoc, diag::err_omp_const_variable) in CheckOpenMPLinearDecl()
9591 Diag(ELoc, diag::err_omp_linear_expected_int_or_ptr) << Type; in CheckOpenMPLinearDecl()
9618 SourceLocation ELoc; in ActOnOpenMPLinearClause() local
9621 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange, in ActOnOpenMPLinearClause()
9642 Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind) in ActOnOpenMPLinearClause()
9648 if (CheckOpenMPLinearDecl(D, ELoc, LinKind, Type)) in ActOnOpenMPLinearClause()
9653 auto *Private = buildVarDecl(*this, ELoc, Type, D->getName(), in ActOnOpenMPLinearClause()
9655 auto *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc); in ActOnOpenMPLinearClause()
9657 VarDecl *Init = buildVarDecl(*this, ELoc, Type, ".linear.start"); in ActOnOpenMPLinearClause()
9669 BuildBinOp(DSAStack->getCurScope(), ELoc, BO_Assign, in ActOnOpenMPLinearClause()
9684 auto InitRef = buildDeclRefExpr(*this, Init, Type, ELoc); in ActOnOpenMPLinearClause()
9758 SourceLocation ELoc; in FinishOpenMPLinearClause() local
9761 auto Res = getPrivateItem(SemaRef, SimpleRefExpr, ELoc, ERange, in FinishOpenMPLinearClause()
9833 SourceLocation ELoc; in ActOnOpenMPAlignedClause() local
9836 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange, in ActOnOpenMPAlignedClause()
9855 Diag(ELoc, diag::err_omp_aligned_expected_array_or_ptr) in ActOnOpenMPAlignedClause()
9869 Diag(ELoc, diag::err_omp_aligned_twice) << 0 << ERange; in ActOnOpenMPAlignedClause()
9921 SourceLocation ELoc = RefExpr->getExprLoc(); in ActOnOpenMPCopyinClause() local
9928 Diag(ELoc, diag::err_omp_expected_var_name_member_expr) in ActOnOpenMPCopyinClause()
9949 Diag(ELoc, diag::err_omp_required_access) in ActOnOpenMPCopyinClause()
10005 SourceLocation ELoc; in ActOnOpenMPCopyprivateClause() local
10008 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange, in ActOnOpenMPCopyprivateClause()
10031 Diag(ELoc, diag::err_omp_wrong_dsa) in ActOnOpenMPCopyprivateClause()
10044 Diag(ELoc, diag::err_omp_required_access) in ActOnOpenMPCopyprivateClause()
10055 Diag(ELoc, diag::err_omp_variably_modified_type_not_supported) in ActOnOpenMPCopyprivateClause()
10076 auto *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
10081 buildDeclRefExpr(*this, DstVD, Type, ELoc); in ActOnOpenMPCopyprivateClause()
10082 auto AssignmentOp = BuildBinOp(DSAStack->getCurScope(), ELoc, BO_Assign, in ActOnOpenMPCopyprivateClause()
10086 AssignmentOp = ActOnFinishFullExpr(AssignmentOp.get(), ELoc, in ActOnOpenMPCopyprivateClause()
10160 SourceLocation ELoc = RefExpr->getExprLoc(); in ActOnOpenMPDependClause() local
10164 Diag(ELoc, diag::err_omp_depend_sink_unexpected_expr); in ActOnOpenMPDependClause()
10205 SourceLocation ELoc; in ActOnOpenMPDependClause() local
10207 auto Res = getPrivateItem(*this, LHS, ELoc, ERange, in ActOnOpenMPDependClause()
10230 Diag(ELoc, diag::err_omp_depend_sink_expected_loop_iteration) in ActOnOpenMPDependClause()
10252 Diag(ELoc, diag::err_omp_expected_var_name_member_expr_or_array_item) in ActOnOpenMPDependClause()
10445 SourceLocation ELoc = E->getExprLoc(); in CheckMapClauseExpressionBase() local
10519 SemaRef.Diag(ELoc, diag::err_omp_expected_access_to_data_field) in CheckMapClauseExpressionBase()
10530 SemaRef.Diag(ELoc, diag::err_omp_bit_fields_forbidden_in_clause) in CheckMapClauseExpressionBase()
10546 SemaRef.Diag(ELoc, diag::err_omp_union_type_not_allowed) in CheckMapClauseExpressionBase()
10571 SemaRef.Diag(ELoc, diag::err_omp_expected_base_var_name) in CheckMapClauseExpressionBase()
10604 SemaRef.Diag(ELoc, diag::err_omp_expected_base_var_name) in CheckMapClauseExpressionBase()
10627 ELoc, diag::err_array_section_does_not_specify_contiguous_storage) in CheckMapClauseExpressionBase()
10639 SemaRef.Diag(ELoc, in CheckMapClauseExpressionBase()
10656 SourceLocation ELoc = E->getExprLoc(); in CheckMapConflicts() local
10730 SemaRef.Diag(ELoc, diag::err_omp_map_shared_storage) << ERange; in CheckMapConflicts()
10733 SemaRef.Diag(ELoc, diag::err_omp_once_referenced_in_target_update) in CheckMapConflicts()
10791 SemaRef.Diag(ELoc, diag::err_omp_map_shared_storage) << ERange; in CheckMapConflicts()
10794 SemaRef.Diag(ELoc, diag::err_omp_once_referenced_in_target_update) in CheckMapConflicts()
10830 SemaRef.Diag(ELoc, in CheckMapConflicts()
10886 SourceLocation ELoc = RE->getExprLoc(); in checkMappableExpressionList() local
10902 SemaRef.Diag(ELoc, in checkMappableExpressionList()
10942 SemaRef.Diag(ELoc, diag::err_omp_threadprivate_in_clause) in checkMappableExpressionList()
11013 SemaRef.Diag(ELoc, diag::err_omp_variable_in_map_and_dsa) in checkMappableExpressionList()
11695 SourceLocation ELoc; in ActOnOpenMPUseDevicePtrClause() local
11698 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange); in ActOnOpenMPUseDevicePtrClause()
11710 Diag(ELoc, diag::err_omp_usedeviceptr_not_a_pointer) in ActOnOpenMPUseDevicePtrClause()
11731 SourceLocation ELoc; in ActOnOpenMPIsDevicePtrClause() local
11734 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange); in ActOnOpenMPIsDevicePtrClause()
11747 Diag(ELoc, diag::err_omp_argument_type_isdeviceptr) in ActOnOpenMPIsDevicePtrClause()