This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Assembler: support v_mac_f32 DPP and SDWA. Move getNamedOperandIdx to AMDGPUBaseInfo.h
ClosedPublic

Authored by SamWot on Sep 30 2016, 2:20 AM.

Event Timeline

SamWot updated this revision to Diff 73015.Sep 30 2016, 2:20 AM
SamWot retitled this revision from to [AMDGPU] Assembler: support v_mac_f32 DPP and SDWA. Move getNamedOperandIdx to AMDGPUBaseInfo.h.
SamWot updated this object.
SamWot added a reviewer: artem.tamazov.
SamWot edited edge metadata.Sep 30 2016, 2:21 AM
SamWot added a subscriber: Restricted Project.
artem.tamazov accepted this revision.Sep 30 2016, 7:43 AM
artem.tamazov edited edge metadata.

LGTM except small style/clarity issues.

lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
2686

Function name suggests that the function performs conversion, but it doesn't

2687–2690

I would move these comments in-line with code, and explain *why* we need these checks here.

2719

It seems important to explain (in comments) *why* we need this special case for V_MAC_F32

2894

Pls comment out *why* we need this special case.

3037

*why* again...

This revision is now accepted and ready to land.Sep 30 2016, 7:43 AM
SamWot added a comment.Oct 5 2016, 6:15 AM

Ping.
Tom, Matt, I moved getNamedOperandIdx() to AMDGPUBaseInfo.h so that assembler would be able to access it. What do you think about it?

Ping. Laurent needs this.

vpykhtin edited edge metadata.Oct 7 2016, 6:27 AM

LGTM, if Arthem comments are addressed.

vpykhtin accepted this revision.Oct 7 2016, 7:59 AM
vpykhtin edited edge metadata.
SamWot closed this revision.Oct 7 2016, 8:00 AM

Submitted in r283560