[clang] [llvm] [AMDGPU] Validate prefetch length and cache policy operands (PR #232143)

Gheorghe-Teodor Bercea via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 9 15:46:26 PST 2026


================
@@ -4675,6 +4676,22 @@ bool AMDGPUAsmParser::validateSMEMOffset(const MCInst &Inst,
   return false;
 }
 
+// GFX12+ SMEM prefetches and probes encode an immediate sdata in 5 bits.
+bool AMDGPUAsmParser::validateSMEMSData(const MCInst &Inst,
+                                        const OperandVector &Operands) {
+  if (!isGFX12Plus() || !SIInstrFlags::isSMRD(MII, Inst))
----------------
doru1004 wrote:

Removed in https://github.com/llvm/llvm-project/pull/240624

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


More information about the cfe-commits mailing list