This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Add 64-bit versions of v_nop and v_clrexcp
ClosedPublic

Authored by tstellarAMD on Oct 5 2015, 8:17 AM.

Details

Summary

The assembly printing of these is still missing the encoding size
suffix, but this will be fixed in a later commit.

Diff Detail

Repository
rL LLVM

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Add 64-bit versions of v_nop and v_clrexcp.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Oct 5 2015, 8:52 AM
arsenm edited edge metadata.

LGTM

lib/Target/AMDGPU/SIInstrFormats.td
72 ↗(On Diff #36520)

This could use a comment explaining it

lib/Target/AMDGPU/SIInstructions.td
1163 ↗(On Diff #36520)

Should it also be set here for v_mov_b32?

This revision is now accepted and ready to land.Oct 5 2015, 8:52 AM
tstellarAMD added inline comments.Oct 5 2015, 8:49 PM
lib/Target/AMDGPU/SIInstructions.td
1163 ↗(On Diff #36520)

No, because the assembler can infer the encoding size from the operands of V_MOV_B32. V_NOP needs that, otherwise it will default to using the 64-bit encoding.

This revision was automatically updated to reflect the committed changes.