Skip to content

Commit 550501f

Browse files
authored
[AMDGPU] Simplify GFX12 VBUFFER definitions. NFC. (#114403)
For GFX12 hasTFE is always true because it does not have the buffer load to LDS instructions.
1 parent 659c369 commit 550501f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/AMDGPU/BUFInstructions.td

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,11 +2546,9 @@ multiclass MUBUF_Real_AllAddr_gfx11_Impl<bits<8> op, bit hasTFE,
25462546
defm _TFE : MUBUF_Real_AllAddr_gfx11_Impl2<op, real_name>;
25472547
}
25482548

2549-
multiclass MUBUF_Real_AllAddr_gfx11_gfx12_Impl<bits<8> op, bit hasTFE,
2550-
string real_name> {
2549+
multiclass MUBUF_Real_AllAddr_gfx11_gfx12_Impl<bits<8> op, string real_name> {
25512550
defm NAME : MUBUF_Real_AllAddr_gfx11_gfx12_Impl2<op, real_name>;
2552-
if hasTFE then
2553-
defm _TFE : MUBUF_Real_AllAddr_gfx11_gfx12_Impl2<op, real_name>;
2551+
defm _TFE : MUBUF_Real_AllAddr_gfx11_gfx12_Impl2<op, real_name>;
25542552
}
25552553

25562554
// Non-renamed, non-atomic gfx11/gfx12 mubuf instructions.
@@ -2559,7 +2557,7 @@ multiclass MUBUF_Real_AllAddr_gfx11<bits<8> op, bit hasTFE = 1> :
25592557

25602558
multiclass MUBUF_Real_AllAddr_gfx11_gfx12<bits<8> op,
25612559
string real_name = get_BUF_ps<NAME>.Mnemonic> :
2562-
MUBUF_Real_AllAddr_gfx11_gfx12_Impl<op, /*hasTFE=*/1, real_name> {
2560+
MUBUF_Real_AllAddr_gfx11_gfx12_Impl<op, real_name> {
25632561
defvar ps = get_BUF_ps<NAME>;
25642562
if !ne(ps.Mnemonic, real_name) then
25652563
def : Mnem_gfx11_gfx12<ps.Mnemonic, real_name>;

0 commit comments

Comments
 (0)