[all-commits] [llvm/llvm-project] 96b615: [AMDGPU] New helper functions to get a register cl...

jayfoad via All-commits all-commits at lists.llvm.org
Fri Apr 17 07:17:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 96b61571d03aa20183a7f3e7f6fcc9692e7a2a7d
      https://github.com/llvm/llvm-project/commit/96b61571d03aa20183a7f3e7f6fcc9692e7a2a7d
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-04-17 (Fri, 17 Apr 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.h

  Log Message:
  -----------
  [AMDGPU] New helper functions to get a register class of a given width

Summary:
Introduce new helper functions getVGPRClassForBitWidth,
getAGPRClassForBitWidth, getSGPRClassForBitWidth and use them to
refactor various other functions that all contained their own lists of
valid register class widths. NFC.

Reviewers: arsenm, rampitec

Subscribers: kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list