This patch changes the emitTargetDataCalls function in clang to make use of the OpenMPIRBuilder::createTargetData function for Target Data directive code gen.
Depends on D146557
Paths
| Differential D150860
[OpenMP] Change clang emitTargetDataCalls to use OMPIRBuilder ClosedPublic Authored by TIFitis on May 18 2023, 4:16 AM.
Details Summary This patch changes the emitTargetDataCalls function in clang to make use of the OpenMPIRBuilder::createTargetData function for Target Data directive code gen. Depends on D146557
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 18 2023, 4:16 AM
TIFitis added inline comments.
Comment Actions This looks pretty good. The device vs if clause thing should be fixed while we are here.
TIFitis marked an inline comment as done. Comment ActionsAddressed reviewer comments
Comment Actions Let's move on. I described what this should look like, just for the record.
This revision is now accepted and ready to land.Jun 29 2023, 1:20 PM This revision was landed with ongoing or failed builds.Jun 30 2023, 7:12 AM Closed by commit rG0d8d71817119: [OpenMP] Change clang emitTargetDataCalls to use OMPIRBuilder (authored by TIFitis). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 536230 clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/test/OpenMP/target_data_codegen.cpp
clang/test/OpenMP/target_data_use_device_ptr_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
|
Why do you need to do this? I would expect EvaluateExprAsBool to handle the constant case for you