[all-commits] [llvm/llvm-project] 9e5c13: [PGO][Offload] Profile profraw generation for GPU...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Feb 11 23:57:21 PST 2025


  Branch: refs/heads/users/vitalybuka/spr/ltopipelinescoro-handle-coroutines-in-lto-pipeline
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e
      https://github.com/llvm/llvm-project/commit/9e5c136d5a1a8acee9e7acfbe14cc6d4490dee2e
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfiling.h
    M compiler-rt/lib/profile/InstrProfilingFile.c
    M offload/include/Shared/Environment.h
    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/lit.cfg
    M offload/test/lit.site.cfg.in
    M offload/test/offloading/pgo1.c
    M openmp/docs/design/Runtimes.rst

  Log Message:
  -----------
   [PGO][Offload] Profile profraw generation for GPU instrumentation #76587  (#93365)

This pull request is the second part of an ongoing effort to extends PGO
instrumentation to GPU device code and depends on #76587. This PR makes
the following changes:

- Introduces `__llvm_write_custom_profile` to PGO compiler-rt library.
This is an external function that can be used to write profiles with
custom data to target-specific files.
- Adds `__llvm_write_custom_profile` as weak symbol to libomptarget so
that it can write the collected data to a profraw file.
- Adds `PGODump` debug flag and only displays dump when the
aforementioned flag is set


  Commit: 9c725ef368fb3e6f797833a2354533d1f1c4ad45
      https://github.com/llvm/llvm-project/commit/9c725ef368fb3e6f797833a2354533d1f1c4ad45
  Author: Vikram Hegde <115221833+vikramRH at users.noreply.github.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPU.h
    M llvm/lib/Target/AMDGPU/AMDGPUPassRegistry.def
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.cpp
    A llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.h
    M llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses-dbg.mir
    M llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses-gen.mir
    M llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses.mir

  Log Message:
  -----------
  [AMDGPU][NewPM] Port "GCNRewritePartialRegUses" pass to NPM (#126024)


  Commit: d222488007b294e897fb5c29971d87c3148ae33b
      https://github.com/llvm/llvm-project/commit/d222488007b294e897fb5c29971d87c3148ae33b
  Author: Sam Elliott <quic_aelliott at quicinc.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h

  Log Message:
  -----------
  [AsmParser] Remove OperandMatchResultTy (#126650)

This has been deprecated since a479be0f39a3301e9ca634d37cf6454b6d3865c6
from September 2023, before LLVM 18. Surely now enough release cycles
have happened that it can be removed upstream.


  Commit: ec28e9b7579347f0ba00882850fdc99218da7c20
      https://github.com/llvm/llvm-project/commit/ec28e9b7579347f0ba00882850fdc99218da7c20
  Author: Haohai Wen <haohai.wen at intel.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M llvm/include/llvm/MC/MCContext.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCParser/WasmAsmParser.cpp
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp

  Log Message:
  -----------
  [MC] Replace MCContext::GenericSectionID with MCSection::NonUniqueID (#126202)

They have same semantics. NonUniqueID is more friendly for isUnique
implementation in MCSectionELF.

History: 97837b7 added support for unique IDs in sections and added
GenericSectionID. Later, 1dc16c7 added NonUniqueID.


  Commit: 52ee06d2730ebcc6e97d63eea222901a3f3d71d8
      https://github.com/llvm/llvm-project/commit/52ee06d2730ebcc6e97d63eea222901a3f3d71d8
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M offload/test/offloading/pgo1.c

  Log Message:
  -----------
  [PGO][Offload] Fix pgo1.c (#126864)

pgo1.c had outdated test checks


  Commit: de968c8e1c711728b62c441fbaa518c958882882
      https://github.com/llvm/llvm-project/commit/de968c8e1c711728b62c441fbaa518c958882882
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.td

  Log Message:
  -----------
  AMDGPU: Use range to implement getSubRegs (#126861)

Fixes #126781


  Commit: be9842837486c674c9001732356a43b27d7cdba5
      https://github.com/llvm/llvm-project/commit/be9842837486c674c9001732356a43b27d7cdba5
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M llvm/lib/Passes/PassBuilderPipelines.cpp

  Log Message:
  -----------
  [NFC][Pipelines] Extract buildCoroConditionalWrapper (#126860)

Helper for #126168.

`Phase` will be used in followup patches.


  Commit: 7747d816c97391a739001d5bcaf34c2eb29cf0d4
      https://github.com/llvm/llvm-project/commit/7747d816c97391a739001d5bcaf34c2eb29cf0d4
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-02-11 (Tue, 11 Feb 2025)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfiling.h
    M compiler-rt/lib/profile/InstrProfilingFile.c
    M llvm/include/llvm/MC/MCContext.h
    M llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
    M llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    M llvm/lib/MC/MCContext.cpp
    M llvm/lib/MC/MCObjectFileInfo.cpp
    M llvm/lib/MC/MCParser/WasmAsmParser.cpp
    M llvm/lib/Target/AMDGPU/AMDGPU.h
    M llvm/lib/Target/AMDGPU/AMDGPUPassRegistry.def
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.cpp
    A llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.h
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.td
    M llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
    M llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses-dbg.mir
    M llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses-gen.mir
    M llvm/test/CodeGen/AMDGPU/rewrite-partial-reg-uses.mir
    M offload/include/Shared/Environment.h
    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/lit.cfg
    M offload/test/lit.site.cfg.in
    M offload/test/offloading/pgo1.c
    M openmp/docs/design/Runtimes.rst

  Log Message:
  -----------
  rebase

Created using spr 1.3.4


Compare: https://github.com/llvm/llvm-project/compare/baac1a7361ee...7747d816c973

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