[PATCH] D24614: AMDGPU: Refactor kernel argument lowering

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 15 09:15:59 PDT 2016


tstellarAMD created this revision.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
Herald added subscribers: yaxunl, nhaehnle, wdng, arsenm.

The main challenge in lowering kernel arguments for AMDGPU is determing the
memory type of the argument.  The generic calling convention code assumes
that only legal register types can be stored in memory, but this is not the
case for AMDGPU.

This consolidates all the logic AMDGPU uses for deducing memory types into a single
function.  This will make it much easier to support different ABIs in the future.

https://reviews.llvm.org/D24614

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  lib/Target/AMDGPU/AMDGPUISelLowering.h
  lib/Target/AMDGPU/R600ISelLowering.cpp
  lib/Target/AMDGPU/SIISelLowering.cpp
  test/CodeGen/AMDGPU/v1i64-kernel-arg.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24614.71514.patch
Type: text/x-patch
Size: 10938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160915/5347d885/attachment.bin>


More information about the llvm-commits mailing list