Skip to content

Commit e89a7c4

Browse files
committed
[AMDGPU] Update comment on SIInstrInfo::isLegalFLATOffset for GFX12
1 parent 1abf257 commit e89a7c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8968,8 +8968,9 @@ bool SIInstrInfo::splitMUBUFOffset(uint32_t Imm, uint32_t &SOffset,
89688968

89698969
// Depending on the used address space and instructions, some immediate offsets
89708970
// are allowed and some are not.
8971-
// In general, flat instruction offsets can only be non-negative, global and
8972-
// scratch instruction offsets can also be negative.
8971+
// Pre-GFX12, flat instruction offsets can only be non-negative, global and
8972+
// scratch instruction offsets can also be negative. On GFX12, offsets can be
8973+
// negative for all variants.
89738974
//
89748975
// There are several bugs related to these offsets:
89758976
// On gfx10.1, flat instructions that go into the global address space cannot

0 commit comments

Comments
 (0)