Summary of changes:
- 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
Paths
| Differential D95216
[AMDGPU][MC] Refactored exp tgt handling ClosedPublic Authored by dp on Jan 22 2021, 1:53 AM.
Details
Summary Summary of changes:
Diff Detail Event TimelineHerald added subscribers: kerbowa, hiraditya, t-tye and 7 others. · View Herald TranscriptJan 22 2021, 1:53 AM Comment Actions
Is there a reason for this? Do you want to use the encoding/decoding logic from somewhere else? Comment Actions
No, this is an attempt to make code more manageable. I believe that encoding/decoding logic should be in one place rather than split between parser and instruction printer. I think that most encoding/decoding logic have already been moved to AMDGPUBaseInfo. This revision is now accepted and ready to land.Jan 22 2021, 12:23 PM Closed by commit rG745064e36b87: [AMDGPU][MC] Refactored exp tgt handling (authored by dp). · Explain WhyJan 26 2021, 3:55 AM This revision was automatically updated to reflect the committed changes. Comment Actions In your commit the message has just Reviewers:. The Reviewers: list does not necessarily mean all the people on the list have acknowledged the patch so Reviewers: is mostly useless. Many people agree that both Reviewed by: & Differential Revision: should be present. arc amend can fetch the Phabricator summary and amend the local description. You can install llvm/.git/hooks/pre-push to prevent accidental Summary:, Reviewers:, Subscribers: and Tags:. Comment Actions
"git log" seems to display the list of reviewers correctly: Reviewers: arsenm, rampitec, foad When I open this commit on github, the reviewer list seems to be present as well: What am I missing? Comment Actions
arc diff created message does not have Reviewers:. arc amend can drop the tag as well.
Revision Contents
Diff 318460 llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUInstPrinter.cpp
llvm/lib/Target/AMDGPU/SIDefines.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
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
|