[AMDGPU][MC] Refactored exp tgt handling
authorDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>
Tue, 26 Jan 2021 11:52:24 +0000 (14:52 +0300)
committerDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>
Tue, 26 Jan 2021 11:54:15 +0000 (14:54 +0300)
commit745064e36b8751548061cc72039dc039c566d175
treebfb1c8b053054b6bf92bef3ad17476384d5ca9dc
parent25f80e16d10318a52eac085f590acc6940a8918b
[AMDGPU][MC] Refactored exp tgt handling

Summary:
- Separated tgt encoding from parsing;
- Separated tgt decoding from printing;
- Improved errors handling;
- Disabled leading zeroes in index. The following code is no longer accepted: exp pos00 v3, v2, v1, v0

Reviewers: arsenm, rampitec, foad

Differential Revision: https://reviews.llvm.org/D95216
llvm/lib/Target/AMDGPU/AMDGPUExportClustering.cpp
llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
llvm/lib/Target/AMDGPU/SIDefines.h
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
llvm/test/MC/AMDGPU/exp-err.s
llvm/test/MC/AMDGPU/exp-gfx10.s
llvm/test/MC/AMDGPU/gfx10_err_pos.s
llvm/test/MC/AMDGPU/gfx9_err_pos.s