[all-commits] [llvm/llvm-project] c50d39: [PGO][Offload] Allow PGO flags to be used on GPU t...

Ethan Luis McDonough via All-commits all-commits at lists.llvm.org
Wed Mar 19 17:02:00 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c50d39f073f3b0143b781be80764d183ddab88d4
      https://github.com/llvm/llvm-project/commit/c50d39f073f3b0143b781be80764d183ddab88d4
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2025-03-19 (Wed, 19 Mar 2025)

  Changed paths:
    M clang/lib/CodeGen/CodeGenPGO.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    R clang/test/Driver/cuda-no-pgo-or-coverage.cu
    M compiler-rt/lib/profile/InstrProfiling.h
    M compiler-rt/lib/profile/InstrProfilingBuffer.c
    M compiler-rt/lib/profile/InstrProfilingFile.c
    M compiler-rt/lib/profile/InstrProfilingInternal.h
    M compiler-rt/lib/profile/InstrProfilingWriter.c
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M llvm/test/tools/llvm-profdata/malformed-ptr-to-counter-array.test
    M offload/plugins-nextgen/common/include/GlobalHandler.h
    M offload/plugins-nextgen/common/src/GlobalHandler.cpp
    A offload/test/offloading/gpupgo/pgo1.c
    A offload/test/offloading/gpupgo/pgo2.c
    R offload/test/offloading/pgo1.c

  Log Message:
  -----------
  [PGO][Offload] Allow PGO flags to be used on GPU targets (#94268)

This pull request is the third part of an ongoing effort to extends PGO
instrumentation to GPU device code and depends on
https://github.com/llvm/llvm-project/pull/93365. This PR makes the
following changes:

- Allows PGO flags to be supplied to GPU targets
- Pulls version global from device
- Modifies `__llvm_write_custom_profile` and `lprofWriteDataImpl` to
allow the PGO version to be overridden



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