[llvm] [AMDGPU][MC] Improve error message for missing dim operand (PR #96588)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 07:34:39 PDT 2024


================
@@ -4006,6 +4007,29 @@ bool AMDGPUAsmParser::validateMIMGGatherDMask(const MCInst &Inst) {
   return DMask == 0x1 || DMask == 0x2 || DMask == 0x4 || DMask == 0x8;
 }
 
+bool AMDGPUAsmParser::validateMIMGDim(const MCInst &Inst,
+                                      const OperandVector &Operands) {
+  if (!isGFX10Plus())
----------------
arsenm wrote:

can this be a named feature instead of a generation check 

https://github.com/llvm/llvm-project/pull/96588


More information about the llvm-commits mailing list