[llvm] [AMDGPU] Introduce orderign parameter to atomic intrinsics and introduce new llvm.amdgcn.image.atomic.load intrinsic. (PR #73613)

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 12 12:23:13 PST 2023


================
@@ -1553,8 +1578,10 @@ defm IMAGE_ATOMIC_DEC           : MIMG_Atomic_Renamed <mimgopc<0x16, 0x16, 0x1c>
 defm IMAGE_ATOMIC_FCMPSWAP      : MIMG_Atomic <mimgopc<MIMG.NOP, MIMG.NOP, 0x1d, MIMG.NOP>, "image_atomic_fcmpswap", 1, 1>;
 defm IMAGE_ATOMIC_FMIN          : MIMG_Atomic <mimgopc<MIMG.NOP, MIMG.NOP, 0x1e, MIMG.NOP>, "image_atomic_fmin", 0, 1>;
 defm IMAGE_ATOMIC_FMAX          : MIMG_Atomic <mimgopc<MIMG.NOP, MIMG.NOP, 0x1f, MIMG.NOP>, "image_atomic_fmax", 0, 1>;
+defm IMAGE_ATOMIC_LOAD          : MIMG_NoSampler_NoDisasm <mimgopc<0x00, 0x00, 0x00>, "image_load", 1>;
----------------
nhaehnle wrote:

This is pretty hacky. "No disasm" is usually the realm of pseudo instructions, so can you make this a pseudo instruction?

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


More information about the llvm-commits mailing list