This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalIsel: Legalize SI.load.const by lowering to G_LOAD
Needs ReviewPublic

Authored by tstellar on Oct 4 2018, 9:04 PM.
This revision needs review, but all reviewers have resigned.

Details

Reviewers
arsenm
Summary

Lower SI.const to G_LOAD that takes a 128-bit resource descriptor as
its pointer.

Diff Detail

Event Timeline

tstellar created this revision.Oct 4 2018, 9:04 PM
tstellar retitled this revision from AMDGPU/GlobalIsel: Legalize SI.const by lowering to G_LOAD to AMDGPU/GlobalIsel: Legalize SI.load.const by lowering to G_LOAD.Oct 4 2018, 9:10 PM
arsenm added inline comments.Oct 9 2018, 7:16 PM
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
51

This should get a new enum value?

274

Should we really be adding support for the old/broken intrinsics here?

tstellar added inline comments.Oct 10 2018, 12:37 PM
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
274

It's necessary as a transition step for Mesa to global-isel. Mesa still emits these and we can't change mesa to emit actual load instructions, because then if we need to fallback to SelectionDAG, we will fail.

arsenm resigned from this revision.Feb 21 2019, 5:44 PM

SI.load.const is gone now, so this needs to be re-done with s.buffer.load intrinsics

Herald added a project: Restricted Project. · View Herald TranscriptFeb 21 2019, 5:44 PM