This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Refactor kernel argument lowering
ClosedPublic

Authored by tstellarAMD on Sep 15 2016, 9:15 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU: Refactor kernel argument lowering.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Sep 15 2016, 4:19 PM
arsenm edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 15 2016, 4:19 PM
This revision was automatically updated to reflect the committed changes.