Device clause when it occurs with target enter data and target exit data must be declared with some non negative value. So some changes were made to evaluate the device clause argument to non negative value and throw the expected error when it takes negative value as argument.
Details
Diff Detail
Event Timeline
flang/lib/Semantics/check-omp-structure.cpp | ||
---|---|---|
39 | Please use RequiresPositiveParameter. It does the same check. |
flang/lib/Semantics/check-omp-structure.cpp | ||
---|---|---|
39 | If you want to accept 0 as well it probably better to add an argument to the current check |
flang/lib/Semantics/check-directive-structure.h | ||
---|---|---|
553 | The diff looks odd. Looks like you just uploaded the change over your previous patch. You should squash your commits so we can see the change compare to the current main. |
The precheck is still failing. Please have a look why the patch application fails.
flang/lib/Semantics/check-directive-structure.h | ||
---|---|---|
557 | Since you want to accept 0 please add a valid test with 0 so that we will catch any change in the future. | |
llvm/lib/Support/FormatVariadic.cpp | ||
21 ↗ | (On Diff #406775) | Unrelated change. Please remove. |
LGTM. Just move the valid test into the correct file.
flang/test/Semantics/omp-device-constructs.f90 | ||
---|---|---|
144 | Please move the valid test into this file instead. https://github.com/llvm/llvm-project/blob/main/flang/test/Semantics/omp-clause-validity01.f90 |
The diff looks odd. Looks like you just uploaded the change over your previous patch. You should squash your commits so we can see the change compare to the current main.