Commit 308efe8
[OpenMP] Fix target data region codegen being omitted for device pass (llvm#85218)
This patch enables the BodyCodeGen callback to still trigger for the
TargetData nested region during the device pass. There maybe Target code
nested within the TargetData region for which this is required.
Also add tests for the same.1 parent e88d716 commit 308efe8
File tree
3 files changed
+52
-1
lines changed- llvm
- lib/Frontend/OpenMP
- unittests/Frontend
- openmp/libomptarget/test/offloading/fortran
3 files changed
+52
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4883 | 4883 | | |
4884 | 4884 | | |
4885 | 4885 | | |
4886 | | - | |
| 4886 | + | |
| 4887 | + | |
| 4888 | + | |
4887 | 4889 | | |
| 4890 | + | |
4888 | 4891 | | |
4889 | 4892 | | |
4890 | 4893 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5856 | 5856 | | |
5857 | 5857 | | |
5858 | 5858 | | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
| 5862 | + | |
| 5863 | + | |
| 5864 | + | |
| 5865 | + | |
| 5866 | + | |
| 5867 | + | |
| 5868 | + | |
| 5869 | + | |
| 5870 | + | |
| 5871 | + | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
5859 | 5876 | | |
5860 | 5877 | | |
5861 | 5878 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments