[all-commits] [llvm/llvm-project] 67ff66: [PGO][Offload] Fix offload coverage mapping (#143...

Ethan Luis McDonough via All-commits all-commits at lists.llvm.org
Tue Jun 10 18:19:59 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67ff66e67734c0b283ec676899e5b89b67fdafcb
      https://github.com/llvm/llvm-project/commit/67ff66e67734c0b283ec676899e5b89b67fdafcb
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M clang/lib/CodeGen/CoverageMappingGen.cpp
    M llvm/lib/Transforms/Instrumentation/InstrProfiling.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

  Log Message:
  -----------
  [PGO][Offload] Fix offload coverage mapping  (#143490)

This pull request fixes coverage mapping on GPU targets. 

- It adds an address space cast to the coverage mapping generation pass.
- It reads the profiled function names from the ELF directly. Reading it
from public globals was causing issues in cases where multiple
device-code object files are linked together.



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