[all-commits] [llvm/llvm-project] e4a9e4: [AMDGPU] Emit correct kernel descriptor on big-end...

Scott Linder via All-commits all-commits at lists.llvm.org
Tue Oct 6 10:31:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e4a9e4ef554a90637c53d4f10326c262df69b76c
      https://github.com/llvm/llvm-project/commit/e4a9e4ef554a90637c53d4f10326c262df69b76c
  Author: Scott Linder <Scott.Linder at amd.com>
  Date:   2020-10-06 (Tue, 06 Oct 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
    M llvm/test/MC/AMDGPU/hsa-sgpr-init-bug-v3.s
    M llvm/test/MC/AMDGPU/hsa-v3.s

  Log Message:
  -----------
  [AMDGPU] Emit correct kernel descriptor on big-endian hosts

Previously we wrote multi-byte values out as-is from host memory. Use
the `emitIntN` helpers in `MCStreamer` to produce a valid descriptor
irrespective of the host endianness.

Reviewed By: arsenm, rochauha

Differential Revision: https://reviews.llvm.org/D88858




More information about the All-commits mailing list