[all-commits] [llvm/llvm-project] 5fd2af: [PGO][OpenMP] Instrumentation for GPU devices (#76...
Ethan Luis McDonough via All-commits
all-commits at lists.llvm.org
Fri Jun 28 08:42:41 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5fd2af38e461445c583d7ffc2fe23858966eee76
https://github.com/llvm/llvm-project/commit/5fd2af38e461445c583d7ffc2fe23858966eee76
Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
Date: 2024-06-28 (Fri, 28 Jun 2024)
Changed paths:
M clang/lib/CodeGen/CodeGenPGO.cpp
M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
M llvm/include/llvm/ProfileData/InstrProf.h
M llvm/lib/ProfileData/InstrProf.cpp
M llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
M offload/DeviceRTL/CMakeLists.txt
A offload/DeviceRTL/include/Profiling.h
A offload/DeviceRTL/src/Profiling.cpp
M offload/plugins-nextgen/common/include/GlobalHandler.h
M offload/plugins-nextgen/common/src/GlobalHandler.cpp
M offload/plugins-nextgen/common/src/PluginInterface.cpp
M offload/test/CMakeLists.txt
M offload/test/lit.cfg
M offload/test/lit.site.cfg.in
A offload/test/offloading/pgo1.c
Log Message:
-----------
[PGO][OpenMP] Instrumentation for GPU devices (#76587)
This pull request is the first part of an ongoing effort to extends PGO
instrumentation to GPU device code. This PR makes the following changes:
- Adds blank registration functions to device RTL
- Gives PGO globals protected visibility when targeting a supported GPU
- Handles any addrspace casts for PGO calls
- Implements PGO global extraction in GPU plugins (currently only dumps
info)
These changes can be tested by supplying `-fprofile-instrument=clang`
while targeting a GPU.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list