Adds support for the reserved locator 'omp_all_memory' for use
in depend clauses with 'out' or 'inout' dependence-types.
Details
Diff Detail
Event Timeline
clang/include/clang/AST/OpenMPClause.h | ||
---|---|---|
4762 | I think we need also to store the location of this modifier |
clang/include/clang/AST/OpenMPClause.h | ||
---|---|---|
4804 | setOmpAllMemory? | |
4857 | isOmpAllMemory? | |
clang/include/clang/Sema/Sema.h | ||
11436–11445 | Would be good this "fat" list of parameters to a structure. | |
11536–11541 | Same, worth trying to combine params to a struct | |
clang/lib/AST/OpenMPClause.cpp | ||
1040–1045 | Same, many params already | |
clang/lib/Parse/ParseOpenMP.cpp | ||
4360–4361 | Shall we add it to the list of modifiers, just like in, out, inout? |
Use dependency kind to represent 'omp_all_memory' which fits nicely for codegen.
Add struct to OMPDependClause to reduce parameter passing.
Move OpenMPVarListDataTy so it can be shared between parsing and sema to reduce parameters in calls.
clang/lib/Parse/ParseOpenMP.cpp | ||
---|---|---|
4360–4361 | Why cannot use getOpenMPSimpleClauseType or something like this? |
Add a function to parse reserved locators.
clang/lib/Parse/ParseOpenMP.cpp | ||
---|---|---|
4360–4361 | Since depend clauses would allow the modifiers differently based on context we'd need to modify and complicate getOpenMPSimpleClauseType to handle that. I kind of like a new routine to handle reserved modifiers instead, then it is more obvious what is happening in the code and new reserved locators can be easily added. What do you think? |
I think we need also to store the location of this modifier