[llvm] [AMDGPU] Add VEXPORT encoding for gfx13 (PR #181788)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 03:34:07 PST 2026


================
@@ -114,25 +114,22 @@ multiclass EXP_Real_gfx11 {
   }
 }
 
-multiclass VEXPORT_Real_gfx12 {
+multiclass VEXPORT_Real<GFXGen Gen> {
   defvar ps = !cast<EXP_Pseudo>(NAME);
-  def _gfx12 : EXP_Real_Row<ps, SIEncodingFamily.GFX12, "export">,
-    EXPe_Row {
-    let AssemblerPredicate = isGFX12Only;
+  def Gen.Suffix : EXP_Real_Row<ps, Gen.Subtarget, "export">,
+    EXPe_Row, MnemonicAlias<"exp", "export">, Requires<[Gen.AssemblerPredicate]> {
+    let AssemblerPredicate = Gen.AssemblerPredicate;
----------------
jayfoad wrote:

For GFX12 I think you are changing this predicate to `isGFX12Not12_50`. I guess this is harmless because we also use the `HasExportInsts` predicate below, which eliminates GFX1250.

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


More information about the llvm-commits mailing list