Removed a restriction that list items for target update directive must have contiguous storage.
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 39920 Build 39978: arc lint + arc unit
Event Timeline
clang/lib/Sema/SemaOpenMP.cpp | ||
---|---|---|
14450 | Ad the check for the version of OpenMP standard, it must be allowed only for OpenMP >= 50. | |
14470–14471 | Same here, allow only for OpenMP >= 50. Also, split the patch into 2 parts, one for pointers stuff and another one for target update directive. |
What about codegen tests?
clang/test/OpenMP/target_update_ast_print.cpp | ||
---|---|---|
25 | It seems to me, the tests are not updated. All non-contiguous tests must pass only if OpenMP version is 50 |
clang/lib/Sema/SemaOpenMP.cpp | ||
---|---|---|
14470–14472 | SemaRef.getLangOpts().OpenMP < 50 || DKind != OMPD_target_update | |
clang/test/OpenMP/target_update_codegen.cpp | ||
325–326 ↗ | (On Diff #229922) | We still map the whole array here, right? |
Ad the check for the version of OpenMP standard, it must be allowed only for OpenMP >= 50.