This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Add support for non-void functions
ClosedPublic

Authored by mareko on Jan 9 2016, 3:27 PM.

Details

Summary

Return values can be stored in SGPRs (i32) and VGPRs (f32).

This will be used by functions which expect some bytecode or other binary to
be appended at the end. It allows defining in which registers the return
values will be stored.

v2: don't do this for compute shaders

Diff Detail

Event Timeline

mareko updated this revision to Diff 44411.Jan 9 2016, 3:27 PM
mareko retitled this revision from to AMDGPU/SI: Add support for non-void functions.
mareko updated this object.
mareko added reviewers: tstellarAMD, arsenm.
tstellarAMD accepted this revision.Jan 13 2016, 8:27 AM
tstellarAMD edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jan 13 2016, 8:27 AM
This revision was automatically updated to reflect the committed changes.