[PATCH] D103166: [AMDGPU] Fix function calls with flat scratch

Sebastian Neubauer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 26 07:13:44 PDT 2021


sebastian-ne created this revision.
sebastian-ne added reviewers: rampitec, arsenm.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
sebastian-ne requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

When flat scratch is used, the stack pointer needs to be added when
writing arguments to the stack.
For buffer instructions, this is done in SelectMUBUFScratchOffen
and SelectMUBUFScratchOffset.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103166

Files:
  llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
  llvm/test/CodeGen/AMDGPU/gfx-callable-argument-types.ll
  llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103166.347956.patch
Type: text/x-patch
Size: 25740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210526/259f2752/attachment.bin>


More information about the llvm-commits mailing list