[llvm] [amdgpu] Add HasBufferInv AMDGPUSubtargetFeature (PR #226254)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 12:51:29 PDT 2026


================
@@ -3660,10 +3660,12 @@ let AsmString = BUFFER_WBL2.Mnemonic, // drop flags
 defm BUFFER_WBL2  : MUBUF_Real_gfx90a<0x28>;
 defm BUFFER_INVL2 : MUBUF_Real_gfx90a<0x29>;
 
-let SubtargetPredicate = isGFX940Plus in {
+let SubtargetPredicate = isGFX940Plus in
 def BUFFER_WBL2_gfx940  : MUBUF_Real_gfx940<0x28, BUFFER_WBL2>;
+
+let SubtargetPredicate = HasBufferInvInst,
----------------
arsenm wrote:

The subtarget predicate should be inherited. The AssemblerPredicate shouldn't be the instruction predicate. The AssemblerPredicate system isn't great. If you can get away without it, that would be better, but that case probably would be isGFX940Plus

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


More information about the llvm-commits mailing list