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

via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 11:22:58 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>;
----------------
sstipanovic wrote:

When making `IMAGE_ATOMIC_LOAD` a pseudo instr, it seems AsmParser is always parsing image_load as `IMAGE_ATOMIC_LOAD` which when made pseudo fails on MC layer. Is there a way to make AsmParser match `IMAGE_LOAD` first instead?

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


More information about the llvm-commits mailing list