[all-commits] [llvm/llvm-project] 8dd3d1: [AMDGPU] Add symbolic names for gfx940 HWREGs

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Mon Mar 14 16:13:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8dd3d1cf1fec5e9c75bbf95b19d0c5099a592ac0
      https://github.com/llvm/llvm-project/commit/8dd3d1cf1fec5e9c75bbf95b19d0c5099a592ac0
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
    M llvm/lib/Target/AMDGPU/SIDefines.h
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.h
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
    M llvm/test/MC/AMDGPU/gfx940_asm_features.s
    M llvm/test/MC/AMDGPU/gfx940_err.s
    M llvm/test/MC/Disassembler/AMDGPU/gfx940_dasm_features.txt

  Log Message:
  -----------
  [AMDGPU] Add symbolic names for gfx940 HWREGs

The namespaces of HWREGs is now overlapping with gfx10. Thus the
patch is longer than necessary to just support new names. It also
need to handle proper error messages, i.e. to issue a "specified
hardware register is not supported on this GPU" message.

This may need a major refactoring in the future.

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




More information about the All-commits mailing list