This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Expand frame indexes to be relative to scratch wave offset
ClosedPublic

Authored by arsenm on Apr 10 2017, 5:57 PM.

Details

Reviewers
tstellar
Summary

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.

Diff Detail

Event Timeline

arsenm created this revision.Apr 10 2017, 5:57 PM
tstellar accepted this revision.May 16 2017, 8:10 AM
This revision is now accepted and ready to land.May 16 2017, 8:10 AM
arsenm closed this revision.May 17 2017, 2:36 PM

r303303