summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/PatchableFunction.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-05-17 21:23:14 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-05-17 21:23:14 +0000
commit2525e4e4c21c1af3f0f3ed969fb42baa5e37d7e1 (patch)
tree1577a1371d71858c5a5eab8df99d9219384f779b /llvm/lib/CodeGen/PatchableFunction.cpp
parentaf3ffcc1f8d13b2b5f26e8283df25dd05ea1a3f0 (diff)
downloadbcm5719-llvm-2525e4e4c21c1af3f0f3ed969fb42baa5e37d7e1.tar.gz
bcm5719-llvm-2525e4e4c21c1af3f0f3ed969fb42baa5e37d7e1.zip
AMDGPU: Expand frame indexes to be relative to scratch wave offset
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. llvm-svn: 303303
Diffstat (limited to 'llvm/lib/CodeGen/PatchableFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud