OMP offload module metadata should be created only when module generation is finalized. If we finalize LLVM IR function we should not create omp offload metadata.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D156423
[OMPIRBuilder] Fix module finalization Needs ReviewPublic Authored by domada on Jul 27 2023, 5:31 AM.
Details Summary OMP offload module metadata should be created only when module generation is finalized. If we finalize LLVM IR function we should not create omp offload metadata.
Diff Detail Event TimelineHerald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptJul 27 2023, 5:31 AM
Revision Contents
Diff 544721 clang/lib/CodeGen/CodeGenFunction.cpp
clang/test/OpenMP/irbuilder_omp_offload_metadata.c
llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
|