[llvm] [AMDGPU] Add VBUFFER encoding for gfx13 (PR #196262)

Mariusz Sikora via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 06:30:48 PDT 2026


================
@@ -359,9 +359,11 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
 
   bool hasAtomicCSub() const { return HasGFX10_BEncoding; }
 
-  bool hasMTBUFInsts() const { return !hasGFX1250Insts(); }
+  bool hasMTBUFInsts() const { return HasGFX13Insts || !hasGFX1250Insts(); }
 
-  bool hasFormattedMUBUFInsts() const { return !hasGFX1250Insts(); }
+  bool hasFormattedMUBUFInsts() const {
+    return HasGFX13Insts || !hasGFX1250Insts();
----------------
mariusz-sikora-at-amd wrote:

I would need to add this to almost all targets. What to do with generic target? Without `mattr=` it may crash : https://github.com/llvm/llvm-project/pull/196315

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


More information about the llvm-commits mailing list