[all-commits] [llvm/llvm-project] 43fd24: Reland "[AMDGPU] Add AMDGPU-specific module splitt...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Mon May 27 01:43:23 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 43fd244b3d5c08bfd3aad0913b0fe84339842f4e
      https://github.com/llvm/llvm-project/commit/43fd244b3d5c08bfd3aad0913b0fe84339842f4e
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2024-05-27 (Mon, 27 May 2024)

  Changed paths:
    A llvm/lib/Target/AMDGPU/AMDGPUSplitModule.cpp
    A llvm/lib/Target/AMDGPU/AMDGPUSplitModule.h
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
    M llvm/lib/Target/AMDGPU/CMakeLists.txt
    A llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize-with-call.ll
    A llvm/test/tools/llvm-split/AMDGPU/address-taken-externalize.ll
    A llvm/test/tools/llvm-split/AMDGPU/debug-name-hiding.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-alias-dependencies.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-cost-ranking.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-dependencies.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-dependency-duplication.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-dependency-external.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-dependency-indirect.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-dependency-overridable.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-global-variables-noexternal.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-global-variables.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-load-balancing.ll
    A llvm/test/tools/llvm-split/AMDGPU/kernels-no-dependencies.ll
    A llvm/test/tools/llvm-split/AMDGPU/large-kernels-merging.ll
    A llvm/test/tools/llvm-split/AMDGPU/lit.local.cfg

  Log Message:
  -----------
  Reland "[AMDGPU] Add AMDGPU-specific module splitting (#89245)"

(with fix for ubsan)

This enables the --lto-partitions option to work more consistently.

This module splitting logic is fully aware of AMDGPU modules and their
specificities and takes advantage of
them to split modules in a way that avoids compilation issue (such as
resource usage being incorrectly represented).

This also includes a logging system that's more elaborate than just
LLVM_DEBUG which allows
printing logs to uniquely named files, and optionally with all value
names hidden so they can be safely shared without leaking informatiton
about the source. Logs can also be enabled through an environment
variable, which avoids the sometimes complicated process of passing a
-mllvm option all the way from clang driver to the offload linker that
handles full LTO codegen.



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