Define helpers for querying properties of VOPD components and VOPD validation.
The proposed helpers may also be used to simplify VOPD handling in codegen.
To minimize review size codegen changes will be added by a separate patch.
Paths
| Differential D134960
[AMDGPU][MC][GFX11] Add VOPD VGPR bank access validation ClosedPublic Authored by dp on Sep 30 2022, 6:53 AM.
Details Summary Define helpers for querying properties of VOPD components and VOPD validation. The proposed helpers may also be used to simplify VOPD handling in codegen.
Diff Detail Event TimelineComment Actions Except for a few nits and questions, this patch LGTM. The simplification in AsmParser is quite elegant. @foad please take a look at the interface design in AMDGPUBaseInfo.h
This revision is now accepted and ready to land.Oct 3 2022, 9:37 AM dp marked 9 inline comments as done. Comment ActionsCorrected as suggested by Joe.
This revision was landed with ongoing or failed builds.Oct 7 2022, 5:53 AM Closed by commit rGfd7b0eeaf651: [AMDGPU][MC][GFX11] Add VOPD VGPR bank access validation (authored by dp). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 464758 llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
llvm/test/MC/AMDGPU/gfx11_asm_vopd_errs.s
llvm/test/MC/AMDGPU/gfx11_asm_vopd_features.s
|
This is checking reg bank constraints only, so rename to validateVOPDRegBankConstraints. We check constant bus limits elsewhere.