[PATCH] D16747: AMDGPU: Fix emitting invalid workitem intrinsics for HSA
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 29 19:03:47 PST 2016
arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.
The AMDGPUPromoteAlloca pass was emitting the read.local.size
calls, which with HSA was incorrectly selected to reading from
the offset mesa uses off of the kernarg pointer.
Error on intrinsics which aren't supported by HSA, and start
emitting the correct IR to read the workgroup size
out of the dispatch pointer.
Also initialize the pass so it can be tested with opt, and
start moving towards not depending on the subtarget as an
Start emitting errors for the intrinsics not handled with HSA.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 29371 bytes
Desc: not available
More information about the llvm-commits