@@ -2431,10 +2431,10 @@ class VBUFFER_MTBUF_Real_gfx12<bits<4> op, MTBUF_Pseudo ps,
2431
2431
// MUBUF - GFX11, GFX12.
2432
2432
//===----------------------------------------------------------------------===//
2433
2433
2434
- // Shortcut to default Mnemonic from MUBUF_Pseudo . Hides the cast to the
2434
+ // Shortcut to default Mnemonic from BUF_Pseudo . Hides the cast to the
2435
2435
// specific pseudo (bothen in this case) since any of them will work.
2436
- class get_MUBUF_ps <string name> {
2437
- string Mnemonic = !cast<MUBUF_Pseudo >(name # "_BOTHEN").Mnemonic;
2436
+ class get_BUF_ps <string name> {
2437
+ string Mnemonic = !cast<BUF_Pseudo >(name # "_BOTHEN").Mnemonic;
2438
2438
}
2439
2439
2440
2440
// gfx11 instruction that accept both old and new assembler name.
@@ -2487,14 +2487,14 @@ multiclass MUBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<bits<8> op, string real_n
2487
2487
2488
2488
// Non-renamed, non-atomic gfx11/gfx12 mubuf instructions.
2489
2489
multiclass MUBUF_Real_AllAddr_gfx11<bits<8> op, bit hasTFE = 1> :
2490
- MUBUF_Real_AllAddr_gfx11_Renamed_Impl<op, get_MUBUF_ps <NAME>.Mnemonic, hasTFE>;
2490
+ MUBUF_Real_AllAddr_gfx11_Renamed_Impl<op, get_BUF_ps <NAME>.Mnemonic, hasTFE>;
2491
2491
2492
2492
multiclass MUBUF_Real_AllAddr_gfx11_gfx12<bits<8> op, bit hasTFE = 1> :
2493
- MUBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<op, get_MUBUF_ps <NAME>.Mnemonic, hasTFE>;
2493
+ MUBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<op, get_BUF_ps <NAME>.Mnemonic, hasTFE>;
2494
2494
2495
2495
multiclass MUBUF_Real_AllAddr_gfx11_gfx12_Renamed<bits<8> op, string real_name> :
2496
2496
MUBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<op, real_name> {
2497
- def : Mnem_gfx11_gfx12<get_MUBUF_ps <NAME>.Mnemonic, real_name>;
2497
+ def : Mnem_gfx11_gfx12<get_BUF_ps <NAME>.Mnemonic, real_name>;
2498
2498
}
2499
2499
2500
2500
class MUBUF_Real_Atomic_gfx11_impl<bits<8> op, string ps_name,
@@ -2538,32 +2538,32 @@ multiclass MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<bits<8> op, bit is_return,
2538
2538
2539
2539
// Non-renamed gfx11/gfx12 mubuf atomic.
2540
2540
multiclass MUBUF_Real_Atomic_gfx11_gfx12<bits<8> op> :
2541
- MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<op, 0, get_MUBUF_ps <NAME>.Mnemonic>,
2542
- MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<op, 1, get_MUBUF_ps <NAME>.Mnemonic>;
2541
+ MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<op, 0, get_BUF_ps <NAME>.Mnemonic>,
2542
+ MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<op, 1, get_BUF_ps <NAME>.Mnemonic>;
2543
2543
2544
2544
multiclass MUBUF_Real_Atomic_gfx12<bits<8> op> :
2545
- MUBUF_Real_Atomic_gfx12_Renamed_impl<op, 0, get_MUBUF_ps <NAME>.Mnemonic>,
2546
- MUBUF_Real_Atomic_gfx12_Renamed_impl<op, 1, get_MUBUF_ps <NAME>.Mnemonic>;
2545
+ MUBUF_Real_Atomic_gfx12_Renamed_impl<op, 0, get_BUF_ps <NAME>.Mnemonic>,
2546
+ MUBUF_Real_Atomic_gfx12_Renamed_impl<op, 1, get_BUF_ps <NAME>.Mnemonic>;
2547
2547
2548
2548
multiclass MUBUF_Real_Atomic_gfx11_Renamed<bits<8> op, string real_name> :
2549
2549
MUBUF_Real_Atomic_gfx11_Renamed_impl<op, 0, real_name>,
2550
2550
MUBUF_Real_Atomic_gfx11_Renamed_impl<op, 1, real_name> {
2551
- def : Mnem_gfx11_gfx12<get_MUBUF_ps <NAME>.Mnemonic, real_name>;
2551
+ def : Mnem_gfx11_gfx12<get_BUF_ps <NAME>.Mnemonic, real_name>;
2552
2552
}
2553
2553
2554
2554
multiclass MUBUF_Real_Atomic_gfx11_gfx12_Renamed<bits<8> op, string real_name> :
2555
2555
MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<op, 0, real_name>,
2556
2556
MUBUF_Real_Atomic_gfx11_gfx12_Renamed_impl<op, 1, real_name> {
2557
- def : Mnem_gfx11_gfx12<get_MUBUF_ps <NAME>.Mnemonic, real_name>;
2557
+ def : Mnem_gfx11_gfx12<get_BUF_ps <NAME>.Mnemonic, real_name>;
2558
2558
}
2559
2559
2560
2560
multiclass MUBUF_Real_Atomic_gfx11_gfx12_Renamed_gfx12_Renamed<bits<8> op, string gfx12_name, string gfx11_name> :
2561
2561
MUBUF_Real_Atomic_gfx11_Renamed_impl<op, 0, gfx11_name>,
2562
2562
MUBUF_Real_Atomic_gfx11_Renamed_impl<op, 1, gfx11_name>,
2563
2563
MUBUF_Real_Atomic_gfx12_Renamed_impl<op, 0, gfx12_name>,
2564
2564
MUBUF_Real_Atomic_gfx12_Renamed_impl<op, 1, gfx12_name> {
2565
- def : Mnem_gfx11<get_MUBUF_ps <NAME>.Mnemonic, gfx11_name>;
2566
- def : Mnem_gfx12<get_MUBUF_ps <NAME>.Mnemonic, gfx12_name>;
2565
+ def : Mnem_gfx11<get_BUF_ps <NAME>.Mnemonic, gfx11_name>;
2566
+ def : Mnem_gfx12<get_BUF_ps <NAME>.Mnemonic, gfx12_name>;
2567
2567
def : Mnem_gfx12<gfx11_name, gfx12_name>;
2568
2568
}
2569
2569
@@ -2944,17 +2944,14 @@ multiclass MTBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<bits<4> op, string real_n
2944
2944
VBUFFER_MTBUF_Real_gfx12<op, !cast<MTBUF_Pseudo>(NAME#"_VBUFFER_OFFSET"), real_name>;
2945
2945
}
2946
2946
2947
- multiclass MTBUF_Real_AllAddr_gfx11_gfx12_Impl<bits<4> op, MTBUF_Pseudo ps>
2948
- : MTBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<op, ps.Mnemonic>;
2949
2947
multiclass MTBUF_Real_AllAddr_gfx11_gfx12<bits<4> op>
2950
- : MTBUF_Real_AllAddr_gfx11_gfx12_Impl <op, !cast<MTBUF_Pseudo>( NAME#"_BOTHEN") >;
2948
+ : MTBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl <op, get_BUF_ps< NAME>.Mnemonic >;
2951
2949
2952
2950
2953
- class Pre_gfx11_MTBUF_Name <MTBUF_Pseudo ps, string real_name>
2954
- : MnemonicAlias<ps.Mnemonic, real_name>, Requires<[isGFX11Plus]>;
2955
2951
multiclass MTBUF_Real_AllAddr_gfx11_gfx12_Renamed<bits<4> op, string real_name>
2956
2952
: MTBUF_Real_AllAddr_gfx11_gfx12_Renamed_Impl<op, real_name> {
2957
- def : Pre_gfx11_MTBUF_Name<!cast<MTBUF_Pseudo>(NAME#"_BOTHEN"), real_name>;
2953
+ defvar ps = get_BUF_ps<NAME>;
2954
+ def : MnemonicAlias<ps.Mnemonic, real_name>, Requires<[isGFX11Plus]>;
2958
2955
}
2959
2956
2960
2957
defm TBUFFER_LOAD_FORMAT_D16_X : MTBUF_Real_AllAddr_gfx11_gfx12_Renamed<0x008, "tbuffer_load_d16_format_x">;
0 commit comments