[PATCH] D48819: AMDGPU/GlobalISel: Implement custom kernel arg lowering

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 2 00:56:43 PDT 2018


arsenm created this revision.
arsenm added reviewers: tstellar, rampitec.
Herald added subscribers: t-tye, tpr, dstuttard, kristof.beyls, rovka, yaxunl, nhaehnle, wdng, kzhuravl.

Avoid using allocateKernArg / AssignFn. We do not want any
of the type splitting properties of normal calling convention
lowering.

      

For now at least this exists alongside the IR argument lowering
pass. This is necessary to handle struct padding correctly while
some arguments are still skipped by the IR argument lowering
pass.


https://reviews.llvm.org/D48819

Files:
  lib/Target/AMDGPU/AMDGPUCallLowering.cpp
  lib/Target/AMDGPU/AMDGPUCallLowering.h
  lib/Target/AMDGPU/AMDGPUCallingConv.td
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  test/CodeGen/AMDGPU/GlobalISel/irtranslator-amdgpu_kernel.ll
  test/CodeGen/AMDGPU/kernel-args.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48819.153677.patch
Type: text/x-patch
Size: 52645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180702/cf45a0bb/attachment.bin>


More information about the llvm-commits mailing list