This patch migrates the UseDevicePtr and UseDeviceAddr clause related code for handling privatisation from Clang codegen to the OMPIRBuilder
Depends on D150860
| Paths 
 |  Differential  D152554  
[OpenMP] Migrate device code privatisation from Clang CodeGen to OMPIRBuilder ClosedPublic Authored by TIFitis on Jun 9 2023, 9:38 AM. 
Details Summary This patch migrates the UseDevicePtr and UseDeviceAddr clause related code for handling privatisation from Clang codegen to the OMPIRBuilder Depends on D150860 
Diff Detail 
 Event TimelineHerald added projects: Restricted Project, Restricted Project.  ·  View Herald TranscriptJun 9 2023, 9:38 AM 
 Comment Actions typo in the title. 
 TIFitis marked 4 inline comments as done.Comment Actions Addressed reviewer comments. 
 TIFitis retitled this revision from [OpenMP] Migrate deviice code privatization from Clang CodeGen to OMPIRBuilder to [OpenMP] Migrate device code privatisation from Clang CodeGen to OMPIRBuilder.Jun 30 2023, 7:00 AM This revision is now accepted and ready to land.Jul 11 2023, 10:51 AM This revision was landed with ongoing or failed builds.Jul 12 2023, 4:03 AM Closed by commit rG227012cbd71f: [OpenMP] Migrate device code privatisation from Clang CodeGen to OMPIRBuilder (authored by TIFitis).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
 
Diff 531395 clang/lib/CodeGen/CGOpenMPRuntime.h
 clang/lib/CodeGen/CGOpenMPRuntime.cpp
 
 clang/lib/CodeGen/CGStmtOpenMP.cpp
 
 clang/lib/CodeGen/CodeGenFunction.h
 clang/test/OpenMP/target_data_use_device_ptr_codegen.cpp
 llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
 llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
If it is an alloca (for sure) use llvm::AllocaInst.