[all-commits] [llvm/llvm-project] 61332c: [AMDGPU] Emit backend_stack_size PAL metadata (#72...

Diana via All-commits all-commits at lists.llvm.org
Mon Nov 20 01:01:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61332cb047faca2dffce9a0ae68bf0d1c0cdee39
      https://github.com/llvm/llvm-project/commit/61332cb047faca2dffce9a0ae68bf0d1c0cdee39
  Author: Diana <Diana-Magda.Picus at amd.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
    M llvm/test/CodeGen/AMDGPU/amdpal-callable.ll
    A llvm/test/CodeGen/AMDGPU/amdpal-chain-metadata.ll

  Log Message:
  -----------
  [AMDGPU] Emit backend_stack_size PAL metadata (#72509)

For chain functions, PAL uses a `backend_stack_size` metadata item,
which at the moment has the same meaning as `stack_frame_size_in_bytes`.
We emit both for now in order to simplify coordination with PAL.

The new item must be emitted in the `shader_functions` section, just as
the metadata for other module entry functions. For simplicity, we mark
chain functions as module entry functions and emit the same metadata for
all of them.




More information about the All-commits mailing list