This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Handle llvm.amdgcn.buffer.{load|store}.v2i16 intrinsics
Needs RevisionPublic

Authored by kzhuravl on Jul 6 2020, 12:10 PM.

Details

Reviewers
arsenm
rampitec

Diff Detail

Event Timeline

kzhuravl created this revision.Jul 6 2020, 12:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2020, 12:10 PM
arsenm requested changes to this revision.Jul 6 2020, 12:13 PM

Can you also make sure this works with globalisel? I think it should already, but it would be good to double check the tests are there

llvm/test/CodeGen/AMDGPU/llvm.amdgcn.buffer.load-store.v2i16.ll
34–36

You can remove most of this setup code (also tests should use named values).

40

These are the legacy intrinsics. Only the .raw/.struct versions matter now. This should also add tests with <2 x half>

This revision now requires changes to proceed.Jul 6 2020, 12:13 PM
arsenm added inline comments.Jul 6 2020, 12:16 PM
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.buffer.load-store.v2i16.ll
85

Test should also go in the same file with the other cases

This is also probably emitting the incorrect format case for half