[PATCH] D31918: AMDGPU: Expand frame indexes to be relative to scratch wave offset

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 17:57:08 PDT 2017


arsenm created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

In order for an arbitrary callee to access an object
in a caller's stack frame, the 32-bit offset used as
the private pointer needs to be relative to the kernel's
 scratch wave offset register.

      

Convert to this by finding the difference from the current
stack frame and scaling by the wavefront size.

Test is for example purposes and needs to be committed separately
along with other calling convention changes.


https://reviews.llvm.org/D31918

Files:
  lib/Target/AMDGPU/SIRegisterInfo.cpp
  test/CodeGen/AMDGPU/frame-index-elimination.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31918.94767.patch
Type: text/x-patch
Size: 7286 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/ef8dded8/attachment.bin>


More information about the llvm-commits mailing list