[all-commits] [llvm/llvm-project] 7f9868: AMDGPU: Align the implicit kernel argument segment...

Changpeng Fang via All-commits all-commits at lists.llvm.org
Mon Apr 11 16:13:29 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f9868f9b76567e3c39498d874027f6233b5407d
      https://github.com/llvm/llvm-project/commit/7f9868f9b76567e3c39498d874027f6233b5407d
  Author: Changpeng Fang <Changpeng.Fang at amd.com>
  Date:   2022-04-11 (Mon, 11 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
    M llvm/test/CodeGen/AMDGPU/hsa-metadata-queue-ptr-v5.ll
    R llvm/test/CodeGen/AMDGPU/hsa-metadata-reduced-hidden-args-v5.ll
    A llvm/test/CodeGen/AMDGPU/implicit-kernel-argument-alignment.ll

  Log Message:
  -----------
  AMDGPU: Align the implicit kernel argument segment to 8 bytes for v5

Summary:
  In emitting metadata for implicit kernel arguments, we need to be in sync with the actual loads
to align the implicit kernel argument segment to 8 byte boundary. In this work, we simply force
this alignment through the first implicit argument.
In addition, we don't emit metadata for any implicit kernel argument if none of them is actually used.

Reviewers: arsenm, b-sumner

Differential Revision: https://reviews.llvm.org/D123346




More information about the All-commits mailing list