This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Assembler: Support DPP instructions.
ClosedPublic

Authored by SamWot on Mar 2 2016, 5:48 AM.

Details

Summary

Added support for DPP instruction in assembler for VOP1 and VOP2 formats. Added tests for assembler.

ToDo:

  • VOP2bInst:
    • vcc is considered as operand
    • AsmMatcher doesn't apply mnemonic aliases when parsing operands
  • v_mac_f32
  • v_nop
  • disable instructions with 64-bit operands
  • change dpp_ctrl assembler representation to conform sp3

Diff Detail

Event Timeline

SamWot updated this revision to Diff 49610.Mar 2 2016, 5:48 AM
SamWot retitled this revision from to [AMDGPU] Assembler: Support DPP instructions..
SamWot updated this object.
SamWot updated this object.Mar 2 2016, 5:51 AM
SamWot added a project: Restricted Project.
nhaustov added inline comments.Mar 2 2016, 5:55 AM
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
242

Use IsImmTy(...) here and below.

lib/Target/AMDGPU/VIInstrFormats.td
174

Missing space

SamWot updated this revision to Diff 49612.Mar 2 2016, 6:08 AM
Fixed IsImmTy and space
nhaustov accepted this revision.Mar 3 2016, 6:20 AM
nhaustov edited edge metadata.
This revision is now accepted and ready to land.Mar 3 2016, 6:20 AM
SamWot closed this revision.Mar 9 2016, 5:16 AM

Submitted r263008