Home | History | Annotate | Download | only in Sema

Lines Matching refs:ELoc

1574                                       SourceLocation ELoc,
1584 SemaRef.Diag(ELoc, Diag) << getOpenMPClauseName(CKind);
2534 getPrivateItem(Sema &S, Expr *&RefExpr, SourceLocation &ELoc,
2585 SourceLocation ELoc;
2588 auto Res = getPrivateItem(S, SimpleRefExpr, ELoc, ERange,
2663 SourceLocation ELoc;
2666 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
3505 SourceLocation ELoc = E->getExprLoc();
3635 SemaRef.Diag(ELoc, diag::err_omp_reduction_in_task);
3708 SourceLocation ELoc = E->getExprLoc();
3725 SemaRef.Diag(ELoc, diag::err_omp_reduction_in_task);
4975 SourceLocation &ELoc,
5010 ELoc = RefExpr->getExprLoc();
5020 S.Diag(ELoc, diag::err_omp_expected_base_var_name) << IsArrayExpr
5023 S.Diag(ELoc,
5115 SourceLocation ELoc;
5118 auto Res = getPrivateItem(S, SimpleRefExpr, ELoc, ERange,
5157 SourceLocation ELoc;
5160 auto Res = getPrivateItem(S, SimpleRefExpr, ELoc, ERange);
15227 SourceLocation ELoc;
15230 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
15246 if (RequireCompleteType(ELoc, Type, diag::err_omp_private_incomplete_type))
15258 if (rejectConstNotMutableType(*this, D, Type, OMPC_private, ELoc))
15270 Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind)
15280 Diag(ELoc, diag::err_omp_variably_modified_type_not_supported)
15310 Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
15330 buildVarDecl(*this, ELoc, Type, D->getName(),
15337 *this, VDPrivate, RefExpr->getType().getUnqualifiedType(), ELoc);
15393 SourceLocation ELoc;
15396 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
15407 ELoc = IsImplicitClause ? ImplicitClauseLoc : ELoc;
15414 if (RequireCompleteType(ELoc, Type,
15444 Diag(ELoc, diag::err_omp_wrong_dsa)
15464 Diag(ELoc, diag::err_omp_wrong_dsa)
15495 Diag(ELoc, diag::err_omp_required_access)
15529 Diag(ELoc, diag::err_omp_parallel_reduction_in_task_firstprivate)
15556 Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
15569 Diag(ELoc, diag::err_omp_variably_modified_type_not_supported)
15583 buildVarDecl(*this, ELoc, Type, D->getName(),
15597 VDInitRefExpr = buildDeclRefExpr(*this, VDInit, ElemType, ELoc);
15604 InitializationKind Kind = InitializationKind::CreateCopy(ELoc, ELoc);
15682 SourceLocation ELoc;
15685 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
15703 if (RequireCompleteType(ELoc, Type,
15716 if (rejectConstNotMutableType(*this, D, Type, OMPC_lastprivate, ELoc))
15723 Diag(ELoc, diag::err_omp_lastprivate_conditional_non_scalar);
15746 Diag(ELoc, diag::err_omp_wrong_dsa)
15765 Diag(ELoc, diag::err_omp_required_access)
15786 buildDeclRefExpr(*this, SrcVD, Type.getUnqualifiedType(), ELoc);
15790 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc);
15793 ExprResult AssignmentOp = BuildBinOp(/*S=*/nullptr, ELoc, BO_Assign,
15798 ActOnFinishFullExpr(AssignmentOp.get(), ELoc, /*DiscardedValue*/ false);
15818 BuildBinOp(DSAStack->getCurScope(), ELoc, BO_Assign, SimpleRefExpr,
15852 SourceLocation ELoc;
15855 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
15875 Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind)
16443 SourceLocation ELoc;
16446 auto Res = getPrivateItem(S, SimpleRefExpr, ELoc, ERange,
16454 S, ELoc, ERange, Stack->getCurScope(), ReductionIdScopeSpec,
16490 if (S.RequireCompleteType(ELoc, D->getType(),
16496 if (rejectConstNotMutableType(S, D, Type, ClauseKind, ELoc,
16510 S.Diag(ELoc, diag::err_omp_reduction_ref_type_arg)
16531 S.Diag(ELoc, diag::err_omp_once_referenced)
16538 S.Diag(ELoc, diag::err_omp_wrong_dsa)
16554 S.Diag(ELoc, diag::err_omp_required_access)
16566 S.Diag(ELoc, diag::err_omp_wrong_dsa)
16578 S, ELoc, ERange, Stack->getCurScope(), ReductionIdScopeSpec,
16608 S.Diag(ELoc, diag::err_omp_clause_not_arithmetic_type_arg)
16621 S.Diag(ELoc, diag::err_omp_clause_floating_type_arg)
16635 VarDecl *LHSVD = buildVarDecl(S, ELoc, Type, ".reduction.lhs",
16637 VarDecl *RHSVD = buildVarDecl(S, ELoc, Type, D->getName(),
16664 S.Diag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
16665 S.Diag(ELoc, diag::note_vla_unsupported);
16668 S.targetDiag(ELoc, diag::err_omp_reduction_vla_unsupported) << !!OASE;
16669 S.targetDiag(ELoc, diag::note_vla_unsupported);
16679 new (Context) OpaqueValueExpr(ELoc, Context.getSizeType(), VK_RValue),
16687 buildVarDecl(S, ELoc, PrivateTy, D->getName(),
16692 DeclRefExpr *LHSDRE = buildDeclRefExpr(S, LHSVD, Type, ELoc);
16693 DeclRefExpr *RHSDRE = buildDeclRefExpr(S, RHSVD, Type, ELoc);
16711 Init = S.ActOnIntegerConstant(ELoc, /*Val=*/0).get();
16717 Init = S.ActOnIntegerConstant(ELoc, /*Val=*/1).get();
16730 Type, ELoc);
16735 Init = IntegerLiteral::Create(Context, InitValue, IntTy, ELoc);
16740 Init = S.CreateBuiltinBinOp(ELoc, BO_Add, Init, Im).get();
16761 Init = IntegerLiteral::Create(Context, InitValue, IntTy, ELoc);
16765 ELoc, Context.getTrivialTypeSourceInfo(Type, ELoc), ELoc, Init);
16774 Type, ELoc);
16821 S.Diag(ELoc, diag::err_omp_reduction_id_not_compatible)
16830 DeclRefExpr *PrivateDRE = buildDeclRefExpr(S, PrivateVD, PrivateTy, ELoc);
16835 ExprResult LHS = S.CreateBuiltinUnaryOp(ELoc, UO_AddrOf, LHSDRE);
16836 ExprResult RHS = S.CreateBuiltinUnaryOp(ELoc, UO_AddrOf, RHSDRE);
16851 ELoc, Context.getPointerType(FnTy), VK_RValue, OK_Ordinary,
16855 CallExpr::Create(Context, OVE, Args, Context.VoidTy, VK_RValue, ELoc,
16876 ConditionalOperator(ReductionOp.get(), ELoc, LHSDRE, ELoc,
16897 CopyOpRes = S.BuildBinOp(Stack->getCurScope(), ELoc, BO_Assign, LHSDRE,
16911 buildVarDecl(S, ELoc, PrivateTy, D->getName(),
16915 TempArrayRes = buildDeclRefExpr(S, TempArrayVD, PrivateTy, ELoc);
16919 OpaqueValueExpr(ELoc, S.Context.getSizeType(), VK_RValue);
16922 /*IndexTypeQuals=*/0, {ELoc, ELoc});
16924 buildVarDecl(S, ELoc, ArrayTy, D->getName(),
16928 TempArrayRes = buildDeclRefExpr(S, TempArrayVD, ArrayTy, ELoc);
16932 OpaqueValueExpr(ELoc, S.Context.getSizeType(), VK_RValue);
16934 ELoc, Idx, ELoc);
17003 S.BuildBinOp(Stack->getCurScope(), ELoc, BO_Assign, SimpleRefExpr,
17140 bool Sema::CheckOpenMPLinearDecl(const ValueDecl *D, SourceLocation ELoc,
17145 if (RequireCompleteType(ELoc, Type, diag::err_omp_linear_incomplete_type))
17149 Diag(ELoc, diag::err_omp_wrong_linear_modifier_non_reference)
17161 rejectConstNotMutableType(*this, D, Type, OMPC_linear, ELoc))
17169 Diag(ELoc, diag::err_omp_linear_expected_int_or_ptr) << Type;
17196 SourceLocation ELoc;
17199 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
17219 Diag(ELoc, diag::err_omp_wrong_dsa) << getOpenMPClauseName(DVar.CKind)
17225 if (CheckOpenMPLinearDecl(D, ELoc, LinKind, Type))
17231 buildVarDecl(*this, ELoc, Type, D->getName(),
17234 DeclRefExpr *PrivateRef = buildDeclRefExpr(*this, Private, Type, ELoc);
17236 VarDecl *Init = buildVarDecl(*this, ELoc, Type, ".linear.start");
17248 BuildBinOp(DSAStack->getCurScope(), ELoc, BO_Assign,
17263 DeclRefExpr *InitRef = buildDeclRefExpr(*this, Init, Type, ELoc);
17337 SourceLocation ELoc;
17340 auto Res = getPrivateItem(SemaRef, SimpleRefExpr, ELoc, ERange);
17354 SemaRef.Diag(ELoc,
17427 SourceLocation ELoc;
17430 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
17448 Diag(ELoc, diag::err_omp_aligned_expected_array_or_ptr)
17462 Diag(ELoc, diag::err_omp_used_in_clause_twice)
17515 SourceLocation ELoc = RefExpr->getExprLoc();
17522 Diag(ELoc, diag::err_omp_expected_var_name_member_expr)
17543 Diag(ELoc, diag::err_omp_required_access)
17600 SourceLocation ELoc;
17603 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
17626 Diag(ELoc, diag::err_omp_wrong_dsa)
17639 Diag(ELoc, diag::err_omp_required_access)
17650 Diag(ELoc, diag::err_omp_variably_modified_type_not_supported)
17671 DeclRefExpr *PseudoSrcExpr = buildDeclRefExpr(*this, SrcVD, Type, ELoc);
17675 DeclRefExpr *PseudoDstExpr = buildDeclRefExpr(*this, DstVD, Type, ELoc);
17677 DSAStack->getCurScope(), ELoc, BO_Assign, PseudoDstExpr, PseudoSrcExpr);
17681 ActOnFinishFullExpr(AssignmentOp.get(), ELoc, /*DiscardedValue*/ false);
17820 SourceLocation ELoc = RefExpr->getExprLoc();
17825 Diag(ELoc, diag::err_omp_depend_sink_unexpected_expr);
17866 SourceLocation ELoc;
17868 auto Res = getPrivateItem(*this, LHS, ELoc, ERange);
17893 Diag(ELoc, diag::err_omp_depend_sink_expected_loop_iteration)
17896 Diag(ELoc, diag::err_omp_depend_sink_expected_loop_iteration) << 0;
17915 Diag(ELoc, diag::err_omp_expected_omp_depend_t_lvalue)
17920 Diag(ELoc, diag::err_omp_expected_omp_depend_t_lvalue)
17943 Diag(ELoc,
17959 Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)
17973 Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)
17982 Res = CreateBuiltinUnaryOp(ELoc, UO_AddrOf,
17987 Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)
18215 SourceLocation ELoc;
18221 SemaRef.Diag(ELoc,
18225 SemaRef.Diag(ELoc, diag::err_omp_non_lvalue_in_map_or_motion_clauses)
18257 SemaRef.Diag(ELoc, diag::err_omp_expected_access_to_data_field)
18273 SemaRef.Diag(ELoc, diag::err_omp_bit_fields_forbidden_in_clause)
18293 SemaRef.Diag(ELoc, diag::err_omp_union_type_not_allowed)
18320 SemaRef.Diag(ELoc, diag::err_omp_expected_base_var_name)
18369 SemaRef.Diag(ELoc, diag::err_omp_expected_base_var_name)
18391 SemaRef.Diag(ELoc, diag::err_omp_section_length_undefined)
18399 ELoc, diag::err_array_section_does_not_specify_contiguous_storage)
18505 bool NoDiagnose, SourceLocation &ELoc, SourceRange &ERange)
18507 NoDiagnose(NoDiagnose), ELoc(ELoc), ERange(ERange) {}
18519 SourceLocation ELoc = E->getExprLoc();
18521 MapBaseChecker Checker(SemaRef, CKind, DKind, CurComponents, NoDiagnose, ELoc,
18536 SemaRef.Diag(ELoc, diag::err_array_section_does_not_specify_length)
18553 SourceLocation ELoc = E->getExprLoc();
18570 [&IsEnclosedByDataEnvironmentExpr, &SemaRef, VD, CurrentRegionOnly, ELoc,
18656 SemaRef.Diag(ELoc, diag::err_omp_map_shared_storage) << ERange;
18659 SemaRef.Diag(ELoc, diag::err_omp_once_referenced_in_target_update)
18743 SemaRef.Diag(ELoc, diag::err_omp_map_shared_storage) << ERange;
18746 SemaRef.Diag(ELoc, diag::err_omp_once_referenced_in_target_update)
18782 SemaRef.Diag(ELoc,
18970 SourceLocation ELoc = RE->getExprLoc();
19006 ELoc, diag::err_omp_expected_named_var_member_or_array_expression)
19009 SemaRef.Diag(ELoc, diag::err_omp_non_lvalue_in_map_or_motion_clauses)
19069 SemaRef.Diag(ELoc, diag::err_omp_threadprivate_in_clause)
19188 SemaRef.Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
20292 SourceLocation ELoc;
20295 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
20313 Diag(ELoc, diag::err_omp_usedeviceptr_not_a_pointer)
20320 buildVarDecl(*this, ELoc, Type, D->getName(),
20328 *this, VDPrivate, RefExpr->getType().getUnqualifiedType(), ELoc);
20375 SourceLocation ELoc;
20378 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange,
20426 SourceLocation ELoc;
20429 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
20442 Diag(ELoc, diag::err_omp_argument_type_isdeviceptr)
20451 Diag(ELoc, diag::err_omp_variable_in_given_clause_and_dsa)
20468 Diag(ELoc, diag::err_omp_map_shared_storage) << RefExpr->getSourceRange();
20537 SourceLocation ELoc;
20540 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
20574 SourceLocation ELoc;
20577 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange);
20589 Diag(ELoc, diag::err_omp_used_in_clause_twice)
20613 SourceLocation ELoc;
20616 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange,
20633 Diag(ELoc, diag::err_omp_inclusive_exclusive_not_reduction)
20654 SourceLocation ELoc;
20657 auto Res = getPrivateItem(*this, SimpleRefExpr, ELoc, ERange,
20676 Diag(ELoc, diag::err_omp_inclusive_exclusive_not_reduction)
20842 SourceLocation ELoc = RefExpr->getExprLoc();
20846 Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)
20854 Res = CreateBuiltinUnaryOp(ELoc, UO_AddrOf, SimpleExpr);
20858 Diag(ELoc, diag::err_omp_expected_addressable_lvalue_or_array_item)