This is an initial implementation for GFX7 swizzle modes.
GFX8/9 has additional swizzle modes; these features will be added by a separate fix.
See Bug 28601: https://bugs.llvm.org//show_bug.cgi?id=28601
Paths
| Differential D33542
[AMDGPU][MC] New syntax for ds_swizzle_b32 offset ClosedPublic Authored by dp on May 25 2017, 4:23 AM.
Details Summary This is an initial implementation for GFX7 swizzle modes. See Bug 28601: https://bugs.llvm.org//show_bug.cgi?id=28601
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 5 others. · View Herald TranscriptMay 25 2017, 4:23 AM Comment Actions Good work, especially negative tests. The finishing touch is necessary: let's follow ODR. That would require some refactoring, but it seems that all the needed functionality is in place.
This revision now requires changes to proceed.May 25 2017, 6:06 AM dp added inline comments.
dp edited edge metadata. dp marked an inline comment as done. Comment ActionsCorrected as suggested by Artem This revision is now accepted and ready to land.May 29 2017, 6:59 AM Closed by commit rL304309: [AMDGPU][MC] New syntax for ds_swizzle_b32 offset (authored by dpreobra). · Explain WhyMay 31 2017, 9:27 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 100220 lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
lib/Target/AMDGPU/DSInstructions.td
lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.h
lib/Target/AMDGPU/InstPrinter/AMDGPUInstPrinter.cpp
lib/Target/AMDGPU/SIInstrInfo.td
test/CodeGen/AMDGPU/llvm.amdgcn.ds.swizzle.ll
test/MC/AMDGPU/ds-err.s
test/MC/AMDGPU/ds.s
test/MC/Disassembler/AMDGPU/gfx8_dasm_all.txt
|
I believe we shall use symbolic names instead of integer literals. Pls refer to sendmsg implementation. See .../lib/Target/AMDGPU/SIDefines.h,