lialan wrote: Missing the path for gfx9, as `S_GET_WAVEID_IN_WORKGROUP` is gfx10, and it is missing the handling of it in LLVM. Perhaps we should handle this waveid pseudo for gfx9 inside LLVM backend? https://github.com/llvm/llvm-project/pull/136405