The backend should only emit data sharing code for the cases where it is needed.
A new function attribute is used by Clang to enable data sharing only for the cases where OpenMP semantics require it and there are variables that need to be shared.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/OpenMP/nvptx_data_sharing.cpp | ||
---|---|---|
25–43 ↗ | (On Diff #126583) | Not a good idea to use exact values as attributes, use macros instead. |