Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaExpr.cpp | ||
---|---|---|
4909 | Not in this patch |
- Remove a commit that is not on master branch
- Add a rule in Sema to avoid non-contiguous array section for map clause
- Add tests
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | Seems to me, it is too broad. According to the standard, it must be allowed only in to/from clauses. |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | I did the check in Sema, I'll move the check here. Thanks |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | We didn't pass OpenMP clause information here. Do you think I should put the analysis in ParseOpenMPVarList or put the check in SemaOpenMP? |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | Try to pass it somehow. Maybe, create a parser data member with the current kind of the clause we trying to parse? |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1944–1951 | No, for non-to/from clauses the stride expression should not be allowed at all if I read the standard correctly. |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | You need to insert an additional check for OMPClauseKind == llvm::omp::Clause::OMPC_to || OMPClauseKind == llvm::omp::Clause::OMPC_from here. I.e. we shall expect stride not only if the version is 5.0, but also if the current clauses is to or from | |
1938–1947 | No, what I meant, that ParseExpression() should be called only if OMPClauseKind == llvm::omp::Clause::OMPC_to || OMPClauseKind == llvm::omp::Clause::OMPC_from |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | Got it, I was thinking that we might want to emit diagnostic message for OpenMP version < 50. Thanks for your explaination. |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | Just want to make sure the error message for OpenMP5.0, for this case: #pragma omp target data map(to: marr[10][0:2:2]). OpenMP45: OpenMP50: Thanks. |
clang/lib/Parse/ParseExpr.cpp | ||
---|---|---|
1933 | I think, the same behavior just like for OpenMP 4.5 should be fine here since stride is not allowed. |
Must be removed