This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Legalize llvm.amdgcn.s.buffer.load
ClosedPublic

Authored by arsenm on Jan 30 2020, 6:38 PM.

Details

Summary

The 96-bit results need to be widened.

I find the interaction between LegalizerHelper and MIRBuilder somewhat
awkward. The custom legalization is called by the LegalizerHelper, but
then does not have access to the helper. You have to construct a new
helper, which then does not own the MachineIRBuilder, but does modify
it. Maybe custom legalization should be passed the helper?

Diff Detail

Event Timeline

arsenm created this revision.Jan 30 2020, 6:38 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2020, 6:38 PM

The AMDGPU aspect of this looks reasonable to me. But yeah, it might be better to pass a LegalizerHelper through to this function.

arsenm accepted this revision.Feb 5 2020, 9:01 AM

69cc9f3046cedcebabe2293de0acba408d181eb4. I'll look at changing the API here when I'm not in a state of continuous merge conflict with myself

This revision is now accepted and ready to land.Feb 5 2020, 9:01 AM
arsenm closed this revision.Feb 5 2020, 9:01 AM