[all-commits] [llvm/llvm-project] fc28f6: [AMDGPU] Restore the s_memtime instruction in gfx1030

Jay Foad via All-commits all-commits at lists.llvm.org
Fri Mar 5 12:36:26 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fc28f600e558c1344618bda149a068d6162b6f0b
      https://github.com/llvm/llvm-project/commit/fc28f600e558c1344618bda149a068d6162b6f0b
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M clang/lib/Basic/Targets/AMDGPU.cpp
    M clang/test/CodeGenOpenCL/amdgpu-features.cl
    R clang/test/SemaOpenCL/builtins-amdgcn-error-gfx1030.cl
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/GCNSubtarget.h
    M llvm/lib/Target/AMDGPU/SMInstructions.td
    M llvm/test/CodeGen/AMDGPU/llvm.amdgcn.s.memtime.ll
    M llvm/test/MC/AMDGPU/gfx1030_err.s

  Log Message:
  -----------
  [AMDGPU] Restore the s_memtime instruction in gfx1030

gfx1030 added a new way to implement readcyclecounter using the
SHADER_CYCLES hardware register, but the s_memtime instruction still
exists, so the MC layer should still accept it and the
llvm.amdgcn.s.memtime intrinsic should still work.

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




More information about the All-commits mailing list