This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Add support for llvm.amdgcn.kernarg.segment.ptr
ClosedPublic

Authored by arsenm on Jun 25 2018, 2:01 AM.

Details

Reviewers
tstellar
Summary

Note a normal select test is not currently possible because this
relies on input registers tracked in SIMachineFunctionInfo which are
not currently serializable in MIR, but this does work end-to-end
from the IR.

Diff Detail

Event Timeline

arsenm created this revision.Jun 25 2018, 2:01 AM
tstellar added inline comments.Jun 25 2018, 8:24 AM
test/CodeGen/AMDGPU/GlobalISel/inst-select-amdgcn.kernarg.segment.ptr.mir
4

What information is missing?

arsenm added inline comments.Jun 25 2018, 8:27 AM
test/CodeGen/AMDGPU/GlobalISel/inst-select-amdgcn.kernarg.segment.ptr.mir
4

The registers used for input arguments are computed during argument lowering and stored in SIMachineFunctionInfo, which isn't serialized in MIR currently

tstellar accepted this revision.Jun 25 2018, 8:51 AM

LGTM.

This revision is now accepted and ready to land.Jun 25 2018, 8:51 AM
arsenm closed this revision.Jun 25 2018, 1:02 PM

r335490